修改团购部分不同页面加入购物车导致数据不对的bug

This commit is contained in:
赵毅 2025-09-15 17:59:51 +08:00
parent 398d1ef9c1
commit fd462f66bb
3 changed files with 12 additions and 4 deletions

View File

@ -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 {

View File

@ -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) => {

View File

@ -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: [],