...
|
...
|
@@ -212,10 +212,11 @@ seckillObj = { |
|
|
var focusElem = $el.$navUl.find('>li.focus');
|
|
|
|
|
|
if (focusElem.length) {
|
|
|
that.refreshProductList(
|
|
|
focusElem.find('input.activityId').val(),
|
|
|
focusElem.find('input.date').val()
|
|
|
);
|
|
|
location.reload();
|
|
|
// that.refreshProductList(
|
|
|
// focusElem.find('input.activityId').val(),
|
|
|
// focusElem.find('input.date').val()
|
|
|
// );
|
|
|
}
|
|
|
},
|
|
|
|
...
|
...
|
@@ -280,8 +281,7 @@ seckillObj = { |
|
|
second = offsetTime % 60;
|
|
|
|
|
|
if (offsetTime <= 0) { // 结束倒计时刷新状态
|
|
|
// that.refreshList(elem);
|
|
|
location.reload();
|
|
|
that.refreshList(elem);
|
|
|
} else {
|
|
|
$(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));
|
...
|
...
|
@@ -290,7 +290,7 @@ seckillObj = { |
|
|
$el.currentTick = setTimeout(function() {
|
|
|
var curSec = Math.floor(Date.now() / 1000);
|
|
|
|
|
|
offsetTime = offsetTime - (curSec - nowTime) - that.diff;
|
|
|
offsetTime = offsetTime - (curSec - nowTime);
|
|
|
that.startTick(elem, offsetTime, curSec);
|
|
|
}, 1000);
|
|
|
}
|
...
|
...
|
@@ -391,9 +391,10 @@ seckillObj = { |
|
|
isApp: yoho.isApp
|
|
|
}))
|
|
|
);
|
|
|
if (result && result.currentTime) {
|
|
|
self.diff = Math.round((Date.now() - result.currentTime) / 1000);
|
|
|
}
|
|
|
|
|
|
// if (result && result.currentTime) {
|
|
|
// self.diff = Math.round((Date.now() - result.currentTime) / 1000);
|
|
|
// }
|
|
|
|
|
|
lazyload('img.lazy');
|
|
|
window.rePosFooter();
|
...
|
...
|
|