diff --git a/pages/index/index.vue b/pages/index/index.vue index 8a6742c..547f7ac 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -626,6 +626,7 @@ if(worker != '' && worker != undefined && worker != null){ this.worker = worker } + that.searchForm.workerId = uni.getStorageSync('worker') ? uni.getStorageSync('worker').workerId : '' // 获取用户当前位置 this.getUserLocation(); this.getUserOrders(); @@ -751,6 +752,7 @@ }, getDelivery(){ let that = this + console.log("1111111111111",this.searchForm) this.tui.request("/mall/delivery/page", "POST", this.searchForm, false, false).then((res) => { that.loadStatus = 'nomore'; if (res.code == 200) { @@ -764,11 +766,11 @@ }else if(res.result.orderCount[i].deliveryType == 3){ that.paotuiCount = res.result.orderCount[i].orderCount } - if(res.result.zhipaiCount != undefined && res.result.zhipaiCount != null){ - that.zhipaiCount = res.result.zhipaiCount - } } } + if(res.result.zhipaiCount != undefined && res.result.zhipaiCount != null){ + that.zhipaiCount = res.result.zhipaiCount + } that.$forceUpdate(); } else { that.tui.toast(res.message);