修改花馍广告模块的购物车不显示数据的bug
This commit is contained in:
parent
b37a945e42
commit
d6b758a6bc
@ -228,7 +228,8 @@ export default {
|
|||||||
isDayshow: false,
|
isDayshow: false,
|
||||||
isParcelPostchecked: false,
|
isParcelPostchecked: false,
|
||||||
parcelPostshow: false,
|
parcelPostshow: false,
|
||||||
is_group_buy: ''
|
is_group_buy: '',
|
||||||
|
is_adver: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
@ -309,7 +310,8 @@ export default {
|
|||||||
// 获取购物车列表
|
// 获取购物车列表
|
||||||
getShopCar() {
|
getShopCar() {
|
||||||
const params = {
|
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) => {
|
request(apiArr.getCar, "POST", params).then((res) => {
|
||||||
if (res.normal_cart_list.length > 0) {
|
if (res.normal_cart_list.length > 0) {
|
||||||
@ -733,6 +735,7 @@ export default {
|
|||||||
this.top = meun.top;
|
this.top = meun.top;
|
||||||
this.localHeight = meun.height;
|
this.localHeight = meun.height;
|
||||||
this.is_group_buy = options.item ? JSON.parse(options.item).is_group_buy : ''
|
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();
|
this.getShopCar();
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user