diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 49ed287..7a9a56c 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -1009,14 +1009,14 @@ if (item.sec_start_time) { that.seckillCountTime = new Date(item.sec_start_time .replace(/-/g, '/')) - .getTime() - new Date().getTime() + .getTime() + item.sec_hour * 60 * 60 * 1000 - new Date().getTime() } else { that.seckillCountTime = 0 } } else { that.seckillCountTime = 0 } - that.seckillCountTime = that.seckillCountTime > 0 ? that.seckillCountTime : 0 + that.seckillCountTime = that.seckillCountTime > 0 && that.seckillCountTime <= item.sec_hour * 60 * 60 * 1000 ? that.seckillCountTime : 0 that.goods.skuList = []; that.godds = {} info.goods_images1 = []