From 2a69930eaabde7e82f6d045a7a6bdb78c1e26ac8 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 18:07:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=A2=E8=B4=AD=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E5=92=8C=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shop/groupPurchaseDetail/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/shop/groupPurchaseDetail/index.vue b/packages/shop/groupPurchaseDetail/index.vue index a343c572..4ae9b7a7 100644 --- a/packages/shop/groupPurchaseDetail/index.vue +++ b/packages/shop/groupPurchaseDetail/index.vue @@ -598,8 +598,8 @@ export default { // 过滤掉group_buy_activity_info为空的数据 if (res.commodity_goods_info_list && Array.isArray(res.commodity_goods_info_list)) { res.commodity_goods_info_list = res.commodity_goods_info_list.filter(item => { - const startTime = new Date(item.group_buy_goods_activity.group_buy_activity_info?.start_time).getTime(); - const endTime = new Date(item.group_buy_goods_activity.group_buy_activity_info?.end_time).getTime(); + const startTime = new Date(item.group_buy_activity_info?.start_time).getTime(); + const endTime = new Date(item.group_buy_activity_info?.end_time).getTime(); return item.group_buy_activity_info !== null && currentTime >= startTime && currentTime <= endTime }); } @@ -653,6 +653,7 @@ export default { // 切换规格 changeGG(item, index) { + console.log("🚀 ~ changeGG ~ item:", item) this.currentGG = item; this.currentGGIndex = index; if (this.currentGG.cart_count) {