| | |
| | | </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"> |
| | |
| | | */ |
| | | 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: { |
| | | /** |
| | |
| | | .content { |
| | | padding: 20rpx 0 20rpx 0; |
| | | margin-bottom: 80rpx; |
| | | overflow: auto; |
| | | } |
| | | |
| | | .line { |