From 17fdf1e265a93247fc698c62698fb1b763ef16c4 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Tue, 28 Apr 2026 16:31:20 +0800 Subject: [PATCH] 1 --- package2/partTimeJob/partTimeJobCenter.vue | 11 ++++++++++- package2/shop/merchantCenter.vue | 9 +++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/package2/partTimeJob/partTimeJobCenter.vue b/package2/partTimeJob/partTimeJobCenter.vue index e829be0..39c1263 100644 --- a/package2/partTimeJob/partTimeJobCenter.vue +++ b/package2/partTimeJob/partTimeJobCenter.vue @@ -195,6 +195,7 @@ pageSize:100, statusList:[0,3] }, + type:'worker', returnFormData:{}, groupOrderIdList:[], goodsList:[], @@ -219,7 +220,10 @@ this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() this.searchCountForm.linkId = uni.getStorageSync('worker').workerId }, - onLoad() { + onLoad(option) { + if(option.type){ + this.type = option.type + } this.getReturnCount() }, methods: { @@ -242,6 +246,11 @@ }, getReturnCount(){ let that = this + if(this.type == 'worker'){ + this.searchCountForm.linkId = uni.getStorageSync('worker').workerId + }else{ + this.searchCountForm.linkId = uni.getStorageSync('shopId') + } this.tui.request("/mall/refund/page", "POST", this.searchCountForm, false, false).then((res) => { if (res.code == 200 && res.result != null) { that.returnCount = res.result.records.length; diff --git a/package2/shop/merchantCenter.vue b/package2/shop/merchantCenter.vue index 6b6c196..d81c341 100644 --- a/package2/shop/merchantCenter.vue +++ b/package2/shop/merchantCenter.vue @@ -65,7 +65,7 @@ 待消费 - + {{shopData.refundCount == undefined?0:shopData.refundCount}} @@ -97,7 +97,7 @@ - {{shopData.orderRevenueAndCount.amount == undefined?0:shopData.orderRevenueAndCount.count}} + {{shopData.orderRevenueAndCount.count == undefined?0:shopData.orderRevenueAndCount.count}} 今日订单 @@ -275,6 +275,11 @@ case 'dd': url = '/package2/shop/shopOrderList' break; + case 'tui': + uni.navigateTo({ + url: '/package2/partTimeJob/partTimeJobCenter?type=shop' + }) + break; case 'zd': url = '/package2/shop/shopBill' break;