From fe91157f6c60e6e03b36f9c08066c31aa1b2338e Mon Sep 17 00:00:00 2001 From: Waiting Date: Wed, 12 Jun 2024 16:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E8=B4=AD=E5=95=86=E5=93=81=E6=9C=AA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=9B=BE=E7=89=87=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/common/groupbuy/detail.vue | 8 ++++---- src/pages/home/index.vue | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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