秒杀时间优化

h5
wangdong 5 months ago
parent d3cdfcd76f
commit ecbc73e2a8
  1. 4
      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 = []

Loading…
Cancel
Save