From ad58591164a846c3884954fa2649c5f494ba5bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Fri, 5 Sep 2025 16:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E6=98=BE=E7=A4=BA=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shop/groupPurchase/index.vue | 5 ++++- packages/shop/groupPurchaseDetail/index.vue | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) 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) {