seckill 列表页 已抢光 逻辑: 1. 确实抢光 2.过了活动时间
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -35,7 +35,7 @@ function _productAddFlag(productList) { | @@ -35,7 +35,7 @@ function _productAddFlag(productList) { | ||
35 | productList.forEach(product => { | 35 | productList.forEach(product => { |
36 | if (now < product.startTime * 1000) { // 未开抢 | 36 | if (now < product.startTime * 1000) { // 未开抢 |
37 | product.wait = true; | 37 | product.wait = true; |
38 | - } else if (product.secKillStatus === 0) { // 已开抢-已抢光 | 38 | + } else if (product.secKillStatus === 0 || (now > product.endTime * 1000)) { // 确实已抢光, 过了秒杀时间 |
39 | product.over = true; | 39 | product.over = true; |
40 | } | 40 | } |
41 | }); | 41 | }); |
-
Please register or login to post a comment