diff --git a/packages/shop/groupPurchase/index.vue b/packages/shop/groupPurchase/index.vue index 4ef68a22..246444ad 100644 --- a/packages/shop/groupPurchase/index.vue +++ b/packages/shop/groupPurchase/index.vue @@ -177,7 +177,10 @@ export default { }) }, getShopdetail() { - return request(shopApi.getCar, "POST").then((res) => { + const params = { + is_group_buy: 1, + } + return request(shopApi.getCar, "POST", params).then((res) => { this.carNum = res.total; // 合并当日达和普通商品数据 this.goodsDetail = [].concat(res.same_day_cart_list, res.normal_cart_list) diff --git a/packages/shop/groupPurchaseDetail/index.vue b/packages/shop/groupPurchaseDetail/index.vue index b49c89f4..a343c572 100644 --- a/packages/shop/groupPurchaseDetail/index.vue +++ b/packages/shop/groupPurchaseDetail/index.vue @@ -677,7 +677,10 @@ export default { }, getShopCarList() { - return request(apiArr.getCar, "POST", {}).then((res) => { + const params = { + is_group_buy: 1, + } + return request(apiArr.getCar, "POST", params).then((res) => { // 合并当日达和普通商品数据 this.carOrderList = [].concat(res.same_day_cart_list, res.normal_cart_list) .flatMap(supplier => supplier.commodity_cart_and_goods_model); @@ -813,8 +816,8 @@ export default { onLoad(options) { this.itemObj = JSON.parse(decodeURIComponent(options.item)); const meun = menuButtonInfo(); - this.top = meun.top; - this.localHeight = meun.height; + this.top = meun.top; + this.localHeight = meun.height; this.id = this.itemObj.commodity_id ? this.itemObj.commodity_id : this.itemObj.id; this.groupById = this.itemObj.groupById if (this.itemObj.commodity_id) {