From 04124f1b768e034c92b486acf2801201a227c520 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Wed, 22 Jul 2026 10:53:57 +0800 Subject: [PATCH] 1 --- components/tab-bar/delivery.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index da85d17..ff1ad90 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -642,6 +642,16 @@ } uni.setStorageSync('deliveryStatusCounts', this.deliveryStatusCounts) }, + syncDeliveryStatusCountFromPage(total) { + const count = Number(total) || 0 + if (this.searchForm.status == 1) { + this.deliveryStatusCounts.daiqu = count + } else if (this.searchForm.status == 2) { + this.deliveryStatusCounts.daisong = count + } + uni.setStorageSync('deliveryStatusCounts', this.deliveryStatusCounts) + uni.$emit('deliveryStatusCountsChange', this.deliveryStatusCounts) + }, decreaseDeliveryStatusCount(status) { if (status == 2) { this.deliveryStatusCounts.daiqu = Math.max(0, Number(this.deliveryStatusCounts.daiqu) - 1) @@ -892,6 +902,7 @@ that.isLoadingPage = false; that.loadStatus = 'nomore'; if (res.code == 200) { + that.syncDeliveryStatusCountFromPage(res.result && res.result.total) if (this.searchForm.status == 1) { if (that.searchForm.pageNum == 1) { that.deliveryItem1 = res.result.records;