diff --git a/src/pages/common/groupbuy/detail.vue b/src/pages/common/groupbuy/detail.vue index 3b24dc5..ac1b053 100644 --- a/src/pages/common/groupbuy/detail.vue +++ b/src/pages/common/groupbuy/detail.vue @@ -2,8 +2,8 @@ - - + + @@ -202,7 +202,7 @@ onLoad(async (e: any) => { countdown(); if(e.couponId === undefined) { groupBuyBean.value.goods.price = groupBuyBean.value?.price || 0; - bannerList.value = JSON.parse(groupBuyBean.value?.content).filter((item: any) => item.type === 2).map((item: any) => item.images); + bannerList.value = JSON.parse(groupBuyBean.value?.content)?.filter((item: any) => item.type === 2).map((item: any) => item.images); await fetchRecommendList(); await fetchBuyRecordList(); } @@ -241,7 +241,7 @@ const isEnded = () => { const getStockColorCount = computed(() => { const list = Array.from(new Set(groupBuyBean.value?.goods?.stocks?.map(item => item.colorName))) .map(colorName => groupBuyBean.value?.goods?.stocks?.find(item => item.colorName === colorName)!); - return (list?.length)||0; + return (list?.length) || 0; }); const fetchRecommendList = async () => { diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index c5fd84d..4a4b094 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -86,6 +86,7 @@ const submenuList = [ title: '注册有礼', icon: assetsUrl('ic_register_gift2.png'), path: '/pages/common/register/reward' + // path: '/pages/common/groupbuy/detail?id=1800768359753097217' // path: '/pages/common/groupbuy/detail?shareId=1797548579864748033' // path: '/pages/coupons/ticketsBuy/ticketsBuy?couponsId=1800381015472513026' //1799264392762138626