From 9e4ae356ed626e3089f31d5b40fb10a476efe7c4 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期三, 13 八月 2025 16:34:51 +0800 Subject: [PATCH] 购物车点击事件,分享视频封面问题 --- pages/cusbar/cart/cartList.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pages/cusbar/cart/cartList.vue b/pages/cusbar/cart/cartList.vue index f1dfa7f..da6bd4a 100644 --- a/pages/cusbar/cart/cartList.vue +++ b/pages/cusbar/cart/cartList.vue @@ -7,14 +7,14 @@ </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> <!-- 搴楅摵鍟嗗搧淇℃伅 --> - <div class="content" :style="{height: windowHeight - marginBottom - 50 + 'px'}"> + <div class="content" :style="{height: windowHeight - marginBottom - 200 + 'px'}"> <div class="box box2" :class="{ invalid: isInvalid(item) }" v-for="(item, index) in cartDetail.cartList" :key="index"> <view class="tab"> @@ -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: { /** @@ -718,6 +719,7 @@ .content { padding: 20rpx 0 20rpx 0; margin-bottom: 80rpx; + overflow: auto; } .line { -- Gitblit v1.8.0