feat:处理 detail-activity-tip.vue 的 type 判断

pull/147/head
YunaiV 2025-04-28 23:05:16 +08:00
parent 791e99057c
commit 600a29b50b
1 changed files with 6 additions and 4 deletions

View File

@ -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,
});