修改促销活动展示问题

This commit is contained in:
15386982806 2024-04-23 11:28:44 +08:00
parent 3471caf00a
commit 0c6703f04d

View File

@ -334,7 +334,7 @@ export default {
if (this.wholesaleList && this.wholesaleList.length > 0) { if (this.wholesaleList && this.wholesaleList.length > 0) {
this.count = this.wholesaleList[0].num; this.count = this.wholesaleList[0].num;
} }
this.promotion();
this.swiperGoodsImg(); this.swiperGoodsImg();
}, },
deep: true, deep: true,
@ -563,6 +563,7 @@ export default {
}); });
}, },
promotion() { promotion() {
this.promotionMap = {SECKILL: null, FULL_DISCOUNT: null, COUPON: []};
// //
if (!this.detail.promotionMap) return false; if (!this.detail.promotionMap) return false;
let keysArr = Object.keys(this.detail.promotionMap); let keysArr = Object.keys(this.detail.promotionMap);
@ -600,7 +601,7 @@ export default {
} }
this.formatSku(this.goodsSpecList); this.formatSku(this.goodsSpecList);
this.promotion(); // this.promotion();
document.title = this.skuDetail.goodsName; document.title = this.skuDetail.goodsName;
}, },
}; };