From 600a29b50bafa99c5ac9ac6d0c40b9a111a0c57b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 28 Apr 2025 23:05:16 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=A4=84=E7=90=86=20detail-activi?= =?UTF-8?q?ty-tip.vue=20=E7=9A=84=20type=20=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/components/detail/detail-activity-tip.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/goods/components/detail/detail-activity-tip.vue b/pages/goods/components/detail/detail-activity-tip.vue index 8424453..e80fe39 100644 --- a/pages/goods/components/detail/detail-activity-tip.vue +++ b/pages/goods/components/detail/detail-activity-tip.vue @@ -39,14 +39,16 @@ type: Array, default() { return []; - } - } + }, + }, }); function onActivity(activity) { const type = activity.type; - const typePath = type === 1 ? 'seckill' : - type === 2 ? 'TODO 拼团' : 'groupon'; + const typePath = type === 1 ? 'seckill' : type === 3 ? 'groupon' : undefined; + if (!typePath) { + return; + } sheep.$router.go(`/pages/goods/${typePath}`, { id: activity.id, });