购物车

This commit is contained in:
魏啾
2024-07-20 09:35:34 +08:00
parent 81f122c9fc
commit b6f84338dc

View File

@@ -78,9 +78,9 @@
<view class="name"> <view class="name">
{{ item1.name }} {{ item1.name }}
</view> </view>
<!-- <view class="namess" v-if="item1.suit>1"> <view class="namess" v-if="item1.suit>1">
{{ item1.suit }} {{ item1.suit }}
</view> --> </view>
<view class="price-wrap"> <view class="price-wrap">
<view class="price"> <view class="price">
<text class="i"></text> <text class="i"></text>
@@ -110,7 +110,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="cart-wrap"> <view class="cart-wrap" v-if="cartListsdatashow">
<view class="cart-content"> <view class="cart-content">
<view class="left"> <view class="left">
<image class="icon" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/icon_cart.png" <image class="icon" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/drder/icon_cart.png"
@@ -395,7 +395,6 @@
return false; return false;
} }
} else { } else {
// this.cartListsdatashow = msg.data.length == 0 ? false : true
switch (msg.type) { switch (msg.type) {
case 'sku': // sku 数量 查询这个商品的价格和数量 case 'sku': // sku 数量 查询这个商品的价格和数量
this.$set(this, 'amountcartNumber', msg.amount) this.$set(this, 'amountcartNumber', msg.amount)
@@ -453,6 +452,8 @@
} }
break; break;
} }
console.log(this.cartLists.data,1111111)
this.cartListsdatashow = this.cartLists.data.length == 0 ? false : true
} }
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception