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)}`) },