修改花馍广告模块的购物车不显示数据的bug

This commit is contained in:
赵毅 2025-09-24 16:17:24 +08:00
parent b37a945e42
commit d6b758a6bc

View File

@ -228,7 +228,8 @@ export default {
isDayshow: false,
isParcelPostchecked: false,
parcelPostshow: false,
is_group_buy: ''
is_group_buy: '',
is_adver: ''
};
},
// watch: {
@ -309,7 +310,8 @@ export default {
//
getShopCar() {
const params = {
is_group_buy: this.is_group_buy
is_group_buy: this.is_group_buy,
is_adver: this.is_adver
}
request(apiArr.getCar, "POST", params).then((res) => {
if (res.normal_cart_list.length > 0) {
@ -733,6 +735,7 @@ export default {
this.top = meun.top;
this.localHeight = meun.height;
this.is_group_buy = options.item ? JSON.parse(options.item).is_group_buy : ''
this.is_adver = options.item ? JSON.parse(options.item).is_adver : ''
this.getShopCar();
},
onShow() {