xuxueyang
2024-07-26 480a7eb5fa89aa602167a7b5f42df5c6d79053b2
sub_pages/customer/trade/list.vue
@@ -30,7 +30,7 @@
      </view>
    </view>
    <view class="" style="min-height: calc(100vh - 260rpx);">
      <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
      <no-data v-if="!list||list.length===0" style="width: 100%;"></no-data>
      <view v-else>
        <!-- 查询条件 -->
        <view class="component-filter-container">
@@ -157,6 +157,7 @@
  data() {
    return {
      query: {
        name:'',
        category: '',
        zoneId: '',
        levelStr: '',
@@ -181,6 +182,7 @@
    console.log('options', options)
    this.query.category = options.categoryId || ''
    this.query.zoneId = options.zoneId || ''
    this.query.name = options.name || ''
    this.listApi = '/api/customer/flower/list'
    this.getList('post')
    this.$http.request('get', '/api/code/value', {
@@ -290,7 +292,7 @@
      if (!this.currentInfo.id) {
        await this.$message.confirm('请前往登录')
        uni.navigateTo({
          url: '//pages/user/supplier-user'
          url: '/pages/user/supplier-user'
        })
        return
      }
@@ -303,7 +305,7 @@
        return
      }
      this.$message.showLoading()
      const {code} = await http.request('post', '/api/api/customer/flower/cart/change-num', {
      const {code} = await http.request('post', '/api/customer/flower/cart/change-num', {
            data: {
              id: item.id,
              num: addnum
@@ -314,12 +316,6 @@
      if (code === 0) {
        item.shopnum += addnum
      }
      // if (item.shopnum) {
      //   item.shopnum += 1
      // } else {
      //   item.shopnum = 1
      // }
      // this.shoptotal += 1
      this.$forceUpdate()
    },
  }