From badafedccb814258fa54156b558458fa04191f8d Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期二, 30 七月 2024 11:42:48 +0800 Subject: [PATCH] update --- 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..9a5c027 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('submitShopping', dto); + }, 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