From f29b9dee3aa4c05fc36e8d89ec96f60efe71196e Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期二, 30 七月 2024 17:54:55 +0800 Subject: [PATCH] 1 --- sub_pages/customer/trade/list.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sub_pages/customer/trade/list.vue b/sub_pages/customer/trade/list.vue index 74f6d23..9e4cc2d 100644 --- a/sub_pages/customer/trade/list.vue +++ b/sub_pages/customer/trade/list.vue @@ -224,6 +224,7 @@ if (this.query.category) { await this.getDetail() } + this.refreshShopNum() // await this.getList('post') // this. @@ -237,7 +238,10 @@ await this.getList('post') uni.stopPullDownRefresh() }, - methods: { + methods: { + async refreshShopNum() { + this.shoptotal = await this.$store.dispatch('countShopping'); + }, async getDetail() { this.$message.showLoading() //获取到分类的详情信息 @@ -355,9 +359,12 @@ }) this.$message.hideLoading() if (code === 0) { - item.shopnum += addnum + item.shopnum += addnum + this.$forceUpdate() + + this.refreshShopNum() + } - this.$forceUpdate() }, } } -- Gitblit v1.9.3