This commit is contained in:
赵毅 2025-10-08 15:15:02 +08:00
parent afd6b44644
commit 6738f0e5c9

View File

@ -298,6 +298,7 @@ export default {
boxshadow2: false,
id: "",
groupById: "",
promotional_price: "", //
info: "",
currentIndex: "1", //
@ -579,6 +580,8 @@ export default {
// 使itemObj
this.currentGG = this.info.commodity_goods_info_list[this.currentGGIndex];
// promotional_pricesales_price
this.currentGG.sales_price = this.promotional_price;
//
this.changeImg = this.currentGG.commodity_pic[0];
@ -611,6 +614,8 @@ export default {
//
changeGG(item, index) {
this.currentGG = item;
// promotional_pricesales_price
this.currentGG.sales_price = this.promotional_price;
this.currentGGIndex = index;
if (this.currentGG.cart_count) {
this.currentNum = this.currentGG.cart_count.count;
@ -619,7 +624,7 @@ export default {
}
this.changeImg = item.commodity_pic[0]
this.changeName = item.goods_alias
this.changePrice = item.sales_price
this.changePrice = this.currentGG.sales_price
},
car() {
const item = {
@ -662,6 +667,7 @@ export default {
goods_id:
this.info.commodity_goods_info_list[this.currentGGIndex].id,
count: countVal,
price: this.changePrice
},
],
group_buy_id: this.info.commodity_goods_info_list[this.currentGGIndex].group_buy_activity_id,
@ -774,6 +780,7 @@ export default {
this.localHeight = meun.height;
this.id = this.itemObj.commodity_id ? this.itemObj.commodity_id : this.itemObj.id;
this.groupById = this.itemObj.groupById
this.promotional_price = this.itemObj.promotional_price
this.getBuyRecord()
this.getEndTheCountdown(this.endTime)