From 04f3f15c930c2b02187d0ce11d68978b65361d54 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期五, 31 三月 2023 09:26:29 +0800 Subject: [PATCH] 修复多数bug --- pages/tabbar-page/index-tabbar/index-tabbar.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/tabbar-page/index-tabbar/index-tabbar.vue b/pages/tabbar-page/index-tabbar/index-tabbar.vue index fa520ac..9a4b61a 100644 --- a/pages/tabbar-page/index-tabbar/index-tabbar.vue +++ b/pages/tabbar-page/index-tabbar/index-tabbar.vue @@ -40,16 +40,18 @@ } else if (this.roleType == 2) { this.$reqGet('huoDaiList').then(res => { this.indexHuoDaiOrderPlanData = res.data; + uni.hideLoading(); + uni.stopPullDownRefresh(); }); // 鑾峰彇鍘嗗彶鎻愮叅鍗� this.$reqGet('getJhOrderPlanDataPage', { current: 1, size: 10 }).then(res => { if (res.data.records) { - this.indexHistoryCoalData = [...this.historyCoalData, ...res.data.records]; + this.indexHistoryCoalData = res.data.records; uni.hideLoading(); uni.stopPullDownRefresh(); } }); - } else { + } else if (this.roleType == 3) { this.$reqGet('qiangDanList').then(res => { this.indexdriverBillOfLoadingData = res.data; uni.hideLoading(); @@ -80,7 +82,7 @@ orderPlanDataStore: [], indexHuoDaiOrderPlanData: [], indexHistoryCoalData: [], - indexdriverBillOfLoadingData: [] + indexdriverBillOfLoadingData: {} }; }, onShow() { -- Gitblit v1.9.1