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.
@@ -238,6 +239,9 @@
         uni.stopPullDownRefresh()
      },
      methods: {
         async refreshShopNum() {
            this.shoptotal = await this.$store.dispatch('submitShopping', dto);
         },
         async getDetail() {
            this.$message.showLoading()
            //获取到分类的详情信息
@@ -356,8 +360,11 @@
            this.$message.hideLoading()
            if (code === 0) {
               item.shopnum += addnum
            }
            this.$forceUpdate()
               this.refreshShopNum()
            }
         },
      }
   }