xuxueyang
2024-07-30 badafedccb814258fa54156b558458fa04191f8d
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()
         },
      }
   }