Authored by lijing

秒杀倒计时结束,刷新页面

... ... @@ -5,6 +5,7 @@
*/
var $ = require('yoho-jquery'),
tip = require('../plugin/tip'),
seckillObj = {};
var timeObj = '';
... ... @@ -44,7 +45,7 @@ seckillObj = {
$(elem).find('.tick.minute').text(minute < 0 ? '00' : (minute < 10 ? ('0' + minute) : minute));
$(elem).find('.tick.second').text(second < 0 ? '00' : (second < 10 ? ('0' + second) : second));
if (offsetTime <= 0) { // 结束倒计时刷新状态
// that.refreshList(elem);
window.location.reload();
} else {
$el.currentTick = setTimeout(function() {
that.startTick(elem, --offsetTime);
... ...