Browse Source

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

卢越 11 months ago
parent
commit
18484f7ee8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages/goods/seckill.vue

+ 3 - 1
pages/goods/seckill.vue

@@ -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