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) => {});
+ }
}
}
}