绿满眶商城微信小程序-uniapp
zxl
2025-08-08 446c4afd5d84bc9d330940665629d1d11d75476a
pages/cusbar/cart/cartList.vue
@@ -7,10 +7,10 @@
    </u-navbar> 
    <!-- 空白页-->
    <view v-if="!loading && (cartDetail.cartList == '' || cartDetail.cartList == [] || !cartDetail)" class="empty"  :style="{height: windowHeight - marginBottom - 50 + 'px'}">
      <image src="/static/emptyCart.png" mode="aspectFit"></image>
      <image src="/pages/subComponents/static/emptyCart.png" mode="aspectFit"></image>
      <view class="empty-tips">
        空空如也
        <navigator class="navigator" url="/pages/tabbar/home/index" open-type="switchTab">随便逛逛></navigator>
        <navigator class="navigator" url="/pages/commodity-square/commoditySquare" open-type="navigate">随便逛逛></navigator>
      </view>
    </view>
    <!-- 店铺商品信息 -->
@@ -240,15 +240,16 @@
   */
  onShow() {
    this.deleteShow ? (this.deleteShow = false) : true;
    if (this.$refs.swiperAction) {
      this.$refs.swiperAction.forEach((item, index) => {
        item.show = false;
      });
   this.getCardData();
      // if (this.$refs.swiperAction) {
      //   this.$refs.swiperAction.forEach((item, index) => {
      //     item.show = false;
      //   });
      //   this.getCardData();
      // } else {
      //   this.getCardData();
      // }
      this.getCardData();
    } else {
      this.getCardData();
    }
  },
  methods: {
    /**