From 71b708ef035a01880bd5405eec96e915edc6863a Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Thu, 23 Apr 2026 18:02:55 +0800 Subject: [PATCH] 11 --- components/tab-bar/delivery.vue | 2 +- components/tab-bar/tab-bar.vue | 39 ++++++++++++++++----------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index d276246..218585e 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -187,7 +187,7 @@ alt="" style="width: 100%;height: 100rpx;background-size: 100%;" @tap="changeStatus(item,1)"/> + alt="" style="width: 100%;height: 100rpx;background-size: 100%;" @tap="changeStatus(item,2)"/> diff --git a/components/tab-bar/tab-bar.vue b/components/tab-bar/tab-bar.vue index a9ca84a..5c39e13 100644 --- a/components/tab-bar/tab-bar.vue +++ b/components/tab-bar/tab-bar.vue @@ -122,29 +122,28 @@ let that = this let shopId = uni.getStorageSync('shopId') let worker = uni.getStorageSync('worker') - if(!shopId && !worker){ - return - } - 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 { + if (res.code == 200) { + if(res.result != null){ + for(let i = 0;i {}); + uni.hideLoading(); + }).catch((res) => {}); + } } } }