修改团购列表有些数据不跳转到详情页的bug
This commit is contained in:
parent
00f8634dcd
commit
e9488a2777
@ -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)}`)
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user