修改团购部分不同页面加入购物车导致数据不对的bug
This commit is contained in:
parent
398d1ef9c1
commit
fd462f66bb
@ -98,7 +98,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 8rpx;
|
margin-bottom: 8rpx;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@ -107,6 +107,10 @@
|
|||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 1;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.goods-price {
|
.goods-price {
|
||||||
|
|||||||
@ -653,7 +653,6 @@ export default {
|
|||||||
|
|
||||||
// 切换规格
|
// 切换规格
|
||||||
changeGG(item, index) {
|
changeGG(item, index) {
|
||||||
console.log("🚀 ~ changeGG ~ item:", item)
|
|
||||||
this.currentGG = item;
|
this.currentGG = item;
|
||||||
this.currentGGIndex = index;
|
this.currentGGIndex = index;
|
||||||
if (this.currentGG.cart_count) {
|
if (this.currentGG.cart_count) {
|
||||||
@ -666,7 +665,10 @@ export default {
|
|||||||
this.changePrice = item.sales_price
|
this.changePrice = item.sales_price
|
||||||
},
|
},
|
||||||
car() {
|
car() {
|
||||||
NavgateTo("../shopCar/index");
|
const item = {
|
||||||
|
is_group_buy: 1,
|
||||||
|
}
|
||||||
|
NavgateTo("../shopCar/index?item=" + JSON.stringify(item));
|
||||||
},
|
},
|
||||||
|
|
||||||
//获取购物车数量
|
//获取购物车数量
|
||||||
@ -712,6 +714,7 @@ export default {
|
|||||||
count: countVal,
|
count: countVal,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
group_buy_id: this.info.commodity_goods_info_list[this.currentGGIndex].group_buy_activity_id,
|
||||||
}
|
}
|
||||||
request(apiArr.updateCar, "POST", params).then((res) => {
|
request(apiArr.updateCar, "POST", params).then((res) => {
|
||||||
that.getShopCar();
|
that.getShopCar();
|
||||||
@ -734,6 +737,7 @@ export default {
|
|||||||
count: newCount,
|
count: newCount,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
group_buy_id: this.info.commodity_goods_info_list[this.currentGGIndex].group_buy_activity_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
request(apiArr.updateCar, "POST", params).then((res) => {
|
request(apiArr.updateCar, "POST", params).then((res) => {
|
||||||
|
|||||||
@ -306,7 +306,7 @@ export default {
|
|||||||
activeTab: 'pickup', // 默认选中自提
|
activeTab: 'pickup', // 默认选中自提
|
||||||
quantity: 1, // 商品数量
|
quantity: 1, // 商品数量
|
||||||
selectedPayment: 'wechat',
|
selectedPayment: 'wechat',
|
||||||
boxshadow1: true,
|
boxshadow1: false,
|
||||||
boxshadow2: false,
|
boxshadow2: false,
|
||||||
defAddress: {},
|
defAddress: {},
|
||||||
defZTAddress: [],
|
defZTAddress: [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user