From bed053bcc321992e18cb791ab8ec65e6fa90924e Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Sat, 9 May 2026 16:19:27 +0800 Subject: [PATCH] 1 --- package2/partTimeJob/partTimeJobCenter.vue | 77 ++++++++++++---------- 1 file changed, 42 insertions(+), 35 deletions(-) diff --git a/package2/partTimeJob/partTimeJobCenter.vue b/package2/partTimeJob/partTimeJobCenter.vue index 299f116..5443f79 100644 --- a/package2/partTimeJob/partTimeJobCenter.vue +++ b/package2/partTimeJob/partTimeJobCenter.vue @@ -19,8 +19,12 @@ {{worker.workerName}} - - + + @@ -35,10 +39,10 @@ - + - {{daiquhuo}} + {{daiquCount}} 待取货 @@ -46,7 +50,7 @@ - {{daisongda}} + {{daisongCount}} 待送达 @@ -54,7 +58,7 @@ - {{shopData.refundCount == undefined?0:shopData.refundCount}} + {{shouhouCount}} 待退款/售后 @@ -62,7 +66,7 @@ - {{shopData.pendingBadReviewCount == undefined?0:shopData.pendingBadReviewCount}} + {{chapingCount}} 待回复差评 @@ -84,7 +88,7 @@ - {{shopData.orderRevenueAndCount.count == undefined?0:shopData.orderRevenueAndCount.count}} + {{orderData.orderCount == undefined?0:orderData.orderCount}} 完成订单 @@ -92,7 +96,7 @@ - {{shopData.orderRevenueAndCount.amount == undefined?0:shopData.orderRevenueAndCount.amount}} + {{orderData.amount == undefined?0:orderData.amount}} 配送佣金 @@ -105,7 +109,7 @@ 必备工具 - + @@ -158,12 +162,12 @@ return { menuButtonInfo: {}, worker: {}, - shopData: {}, - daixiaofei: 0, - daichucan: 0, - daiquhuo: 0, - daisongda: 0, - isBaozhang:false + orderData: {}, + chapingCount: 0, + shouhouCount: 0, + daiquCount: 0, + daisongCount: 0, + isBaozhang: false } }, onShow() { @@ -176,28 +180,30 @@ }, methods: { getData() { - this.tui.request("/mall/order/countByShop/" + uni.getStorageSync('shopId'), "GET", {}, false, true).then(( - res) => { + this.tui.request("/mall/delivery/countOrderByStatusIndex", "POST", {workerId:uni.getStorageSync('worker').workerId,regionId:JSON.parse(uni.getStorageSync('area')).id}, false, true).then((res) => { if (res.code == 200) { - this.shopData = res.result - for (let i = 0; i < this.shopData.orderStatusCount.length; i++) { - if (this.shopData.orderStatusCount[i].counttype) { - if (this.shopData.orderStatusCount[i].counttype == 'daisong') { - this.daisongda = this.shopData.orderStatusCount[i].count - } else if (this.shopData.orderStatusCount[i].counttype == 'daiqu') { - this.daiquhuo = this.shopData.orderStatusCount[i].count - } else if (this.shopData.orderStatusCount[i].counttype == 'daixiaofei') { - this.daixiaofei = this.shopData.orderStatusCount[i].count - } else if (this.shopData.orderStatusCount[i].counttype == 'daichucan') { - this.daichucan = this.shopData.orderStatusCount[i].count + if(res.result != null){ + for(let i = 0;i {}) + uni.hideLoading(); + }).catch((res) => {}); }, goDetail(type, index) { let url = '' @@ -227,10 +233,11 @@ break; case 'pj': let item = { - shopScore:uni.getStorageSync('worker').score, - id:uni.getStorageSync('worker').workerId + shopScore: uni.getStorageSync('worker').score, + id: uni.getStorageSync('worker').workerId } - url = '/package1/group/shopEvaluate?item=' + JSON.stringify(item) + '&isMerchant=2&isCha=' + (index =='cha'?1:0) + url = '/package1/group/shopEvaluate?item=' + JSON.stringify(item) + '&isMerchant=2&isCha=' + ( + index == 'cha' ? 1 : 0) break; default: }