|
|
@ -508,8 +508,6 @@ |
|
|
lastScrollTop: 0, |
|
|
lastScrollTop: 0, |
|
|
worker:null, |
|
|
worker:null, |
|
|
isSwitching: true, |
|
|
isSwitching: true, |
|
|
indexZhipaiCount:0, |
|
|
|
|
|
indexWorkerCount:0, |
|
|
|
|
|
getAreaData:{}, |
|
|
getAreaData:{}, |
|
|
putAreaData:{}, |
|
|
putAreaData:{}, |
|
|
yongjin:false, |
|
|
yongjin:false, |
|
|
@ -617,7 +615,6 @@ |
|
|
} |
|
|
} |
|
|
this.getDelivery(); |
|
|
this.getDelivery(); |
|
|
this.getShopArea(); |
|
|
this.getShopArea(); |
|
|
this.getWorkerCounts(); |
|
|
|
|
|
} |
|
|
} |
|
|
// 计算导航栏高度用于sticky offset:statusBarHeight + 40px内容区 |
|
|
// 计算导航栏高度用于sticky offset:statusBarHeight + 40px内容区 |
|
|
const info = uni.getSystemInfoSync(); |
|
|
const info = uni.getSystemInfoSync(); |
|
|
@ -710,30 +707,6 @@ |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
}).catch((res) => {}); |
|
|
}).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<res.result.length;i++){ |
|
|
|
|
|
if(res.result[i].status == 0){ |
|
|
|
|
|
this.indexZhipaiCount = Number(res.result[i].orderCount) |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.indexWorkerCount += Number(res.result[i].orderCount) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
that.$forceUpdate(); |
|
|
|
|
|
} else { |
|
|
|
|
|
that.tui.toast(res.message); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
|
}).catch((res) => {}); |
|
|
|
|
|
}, |
|
|
|
|
|
checkTab(index) { |
|
|
checkTab(index) { |
|
|
for (let i = 0; i < this.menuList.length; i++) { |
|
|
for (let i = 0; i < this.menuList.length; i++) { |
|
|
this.menuList[i].checked = (i === index); |
|
|
this.menuList[i].checked = (i === index); |
|
|
|