购物车

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