From e9488a27770e9397248b7770d9f3caa9e92a6f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Fri, 7 Nov 2025 15:28:31 +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=E6=9C=89=E4=BA=9B=E6=95=B0=E6=8D=AE=E4=B8=8D=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E8=AF=A6=E6=83=85=E9=A1=B5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shop/groupPurchase/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/shop/groupPurchase/index.vue b/packages/shop/groupPurchase/index.vue index aa7d9558..f7642a6a 100644 --- a/packages/shop/groupPurchase/index.vue +++ b/packages/shop/groupPurchase/index.vue @@ -210,9 +210,13 @@ export default { }); }, toDetail(itemObj) { + let targetItem = itemObj; + if(!targetItem.group_buy_activity_info && targetItem.group_buy_goods_list && targetItem.group_buy_goods_list.length > 0){ + targetItem = targetItem.group_buy_goods_list[0]; + } const item = { - ...itemObj, - groupById: itemObj.group_buy_activity_info.id + ...targetItem, + groupById: targetItem.group_buy_activity_info.id }; NavgateTo(`/packages/shop/groupPurchaseDetail/index?item=${JSON.stringify(item)}`) },