!104 【功能优化】秒杀详情页过期活动处理

Merge pull request !104 from 卢越/master
pull/111/head
芋道源码 2024-10-01 10:57:24 +00:00 committed by Gitee
commit 146f9ddc88
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,9 @@
<detailSkeleton v-if="state.skeletonLoading" />
<!-- 下架/售罄提醒 -->
<s-empty
v-else-if="state.goodsInfo === null || state.goodsInfo.activity_type !== 'seckill'"
v-else-if="
state.goodsInfo === null || state.goodsInfo.activity_type !== 'seckill' || endTime.ms <= 0
"
text="活动不存在或已结束"
icon="/static/soldout-empty.png"
showAction

View File

@ -261,6 +261,8 @@
// spu
const spu = state.spuList.find((spu) => activity.spuId === spu.id);
if (spu) {
//
spu.name = activity.name;
//
spu.price = Math.min(combinationPrice, spu.price);
// ID

View File

@ -261,6 +261,8 @@
// spu
const spu = state.spuList.find((spu) => activity.spuId === spu.id);
if (spu) {
//
spu.name = activity.name;
//
spu.price = Math.min(seckillPrice, spu.price);
// ID