区分团购和易购的购物车数据
This commit is contained in:
parent
f2983a3de5
commit
15afc855fc
@ -206,7 +206,11 @@ export default {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
toDetail(item) {
|
toDetail(itemObj) {
|
||||||
|
const item = {
|
||||||
|
...itemObj,
|
||||||
|
groupById: itemObj.group_buy_activity_info.id
|
||||||
|
};
|
||||||
NavgateTo(`/packages/shop/groupPurchaseDetail/index?item=${JSON.stringify(item)}`)
|
NavgateTo(`/packages/shop/groupPurchaseDetail/index?item=${JSON.stringify(item)}`)
|
||||||
},
|
},
|
||||||
// 获取商品价格范围
|
// 获取商品价格范围
|
||||||
@ -295,7 +299,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 跳转到购物车
|
// 跳转到购物车
|
||||||
shopCar() {
|
shopCar() {
|
||||||
NavgateTo("../shopCar/index");
|
const item = {
|
||||||
|
is_group_buy: 1,
|
||||||
|
}
|
||||||
|
NavgateTo("../shopCar/index?item=" + JSON.stringify(item));
|
||||||
},
|
},
|
||||||
// 计算距离结束日期的剩余时间
|
// 计算距离结束日期的剩余时间
|
||||||
getEndTheCountdown(endTime) {
|
getEndTheCountdown(endTime) {
|
||||||
|
|||||||
@ -228,7 +228,7 @@ export default {
|
|||||||
isDayshow: false,
|
isDayshow: false,
|
||||||
isParcelPostchecked: false,
|
isParcelPostchecked: false,
|
||||||
parcelPostshow: false,
|
parcelPostshow: false,
|
||||||
|
is_group_buy: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
@ -303,7 +303,10 @@ export default {
|
|||||||
|
|
||||||
// 获取购物车列表
|
// 获取购物车列表
|
||||||
getShopCar() {
|
getShopCar() {
|
||||||
request(apiArr.getCar, "POST", {}).then((res) => {
|
const params = {
|
||||||
|
is_group_buy: this.is_group_buy
|
||||||
|
}
|
||||||
|
request(apiArr.getCar, "POST", params).then((res) => {
|
||||||
if (res.normal_cart_list.length > 0) {
|
if (res.normal_cart_list.length > 0) {
|
||||||
res.normal_cart_list.forEach((item) => {
|
res.normal_cart_list.forEach((item) => {
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
@ -717,6 +720,7 @@ export default {
|
|||||||
const meun = menuButtonInfo();
|
const meun = menuButtonInfo();
|
||||||
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.getShopCar();
|
this.getShopCar();
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user