区分团购和易购的购物车数据

This commit is contained in:
赵毅 2025-09-05 14:27:47 +08:00
parent f2983a3de5
commit 15afc855fc
2 changed files with 15 additions and 4 deletions

View File

@ -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)}`)
},
//
@ -295,7 +299,10 @@ export default {
},
//
shopCar() {
NavgateTo("../shopCar/index");
const item = {
is_group_buy: 1,
}
NavgateTo("../shopCar/index?item=" + JSON.stringify(item));
},
//
getEndTheCountdown(endTime) {

View File

@ -228,7 +228,7 @@ export default {
isDayshow: false,
isParcelPostchecked: false,
parcelPostshow: false,
is_group_buy: ''
};
},
// watch: {
@ -303,7 +303,10 @@ export default {
//
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) {
res.normal_cart_list.forEach((item) => {
item.checked = false;
@ -717,6 +720,7 @@ export default {
const meun = menuButtonInfo();
this.top = meun.top;
this.localHeight = meun.height;
this.is_group_buy = options.item ? JSON.parse(options.item).is_group_buy : ''
this.getShopCar();
},
onShow() {