...
|
...
|
@@ -250,16 +250,16 @@ seckillObj = { |
|
|
minute = parseInt(offsetTime % (60 * 60) / 60, 10),
|
|
|
second = offsetTime % 60;
|
|
|
|
|
|
$(elem).find('.tick.hour').text(hour < 0 ? '00' : (hour < 10 ? ('0' + hour) : hour));
|
|
|
$(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);
|
|
|
} else {
|
|
|
$el.currentTick = setTimeout(function() {
|
|
|
that.startTick(elem, --offsetTime);
|
|
|
}, 1000);
|
|
|
}
|
|
|
$(elem).find('.tick.hour').text(hour < 0 ? '00' : (hour < 10 ? ('0' + hour) : hour));
|
|
|
$(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);
|
|
|
} else {
|
|
|
$el.currentTick = setTimeout(function() {
|
|
|
that.startTick(elem, --offsetTime);
|
|
|
}, 1000);
|
|
|
}
|
|
|
},
|
|
|
|
|
|
bindEvents: function() {
|
...
|
...
|
@@ -348,7 +348,7 @@ seckillObj = { |
|
|
|
|
|
|
|
|
$(function() {
|
|
|
seckillObj.init();
|
|
|
!$('.seckill-list').hasClass('seckill-list-error') && seckillObj.init();
|
|
|
});
|
|
|
|
|
|
window.seckillRefresh = function() {
|
...
|
...
|
|