MrShi
2026-05-12 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd
mini-program/pages/special-zone/special-zone.vue
@@ -16,7 +16,7 @@
         </view>
      </view>
      <view class="list">
         <image class="list-notfund" src="/static/images/default_search@2x.png" mode="widthFix" v-if="goodsList.length === 0"></image>
         <image class="list-notfund" src="/static/images/default_nodata_grey.png" mode="widthFix" v-if="goodsList.length === 0"></image>
         <view class="commodity-item" v-for="(item, i) in goodsList" :key="i" v-else @click="jumpDetails(item)">
            <view class="commodity-item-image">
               <image :src="item.imgurl" mode="widthFix"></image>
@@ -35,7 +35,7 @@
                  </view>
               </view>
               <view class="commodity-item-shou">
                  <text>已售{{item.saleNum + item.realSaleNum}}</text>
                  <text>已售{{(item.saleNum || 0) + (item.realSaleNum || 0) }}</text>
                  <view class="commodity-item-shou-add" @click.stop="addCard(item)">+</view>
               </view>
            </view>
@@ -98,12 +98,12 @@
            }
            this.$u.api.addCart({
               goodsId: e.id,
               goodsSkuId: e.skuResponsesList[0].id,
               goodsSkuId: e.goodsSkuResponseList[0].id,
               num: 1
            }).then(res => {
               if (res.code === 200) {
                  this.cardNum()
                  uni.showToast({ title: '添加成功', icon: 'none' })
                  uni.showToast({ title: '添加成功', icon: 'success', mask: true })
               }
            })
         },
@@ -284,6 +284,7 @@
               justify-content: center;
               image {
                  width: 100%;
                  max-height: 330rpx;
               }
            }
            .commodity-item-box {