diff --git a/pages/index/index.vue b/pages/index/index.vue index 0ed4071..8370e2f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -508,8 +508,6 @@ lastScrollTop: 0, worker:null, isSwitching: true, - indexZhipaiCount:0, - indexWorkerCount:0, getAreaData:{}, putAreaData:{}, yongjin:false, @@ -617,7 +615,6 @@ } this.getDelivery(); this.getShopArea(); - this.getWorkerCounts(); } // 计算导航栏高度用于sticky offset:statusBarHeight + 40px内容区 const info = uni.getSystemInfoSync(); @@ -710,30 +707,6 @@ uni.hideLoading(); }).catch((res) => {}); }, - getWorkerCounts(){ - if(!uni.getStorageSync('worker')){ - return; - } - let that = this - this.tui.request("/mall/delivery/countOrderByStatus", "POST", {workerId:uni.getStorageSync('worker').workerId}, false, true).then((res) => { - if (res.code == 200) { - if(res.result != null){ - for(let i = 0;i {}); - }, checkTab(index) { for (let i = 0; i < this.menuList.length; i++) { this.menuList[i].checked = (i === index);