Showing
1 changed file
with
11 additions
and
10 deletions
@@ -212,10 +212,11 @@ seckillObj = { | @@ -212,10 +212,11 @@ seckillObj = { | ||
212 | var focusElem = $el.$navUl.find('>li.focus'); | 212 | var focusElem = $el.$navUl.find('>li.focus'); |
213 | 213 | ||
214 | if (focusElem.length) { | 214 | if (focusElem.length) { |
215 | - that.refreshProductList( | ||
216 | - focusElem.find('input.activityId').val(), | ||
217 | - focusElem.find('input.date').val() | ||
218 | - ); | 215 | + location.reload(); |
216 | + // that.refreshProductList( | ||
217 | + // focusElem.find('input.activityId').val(), | ||
218 | + // focusElem.find('input.date').val() | ||
219 | + // ); | ||
219 | } | 220 | } |
220 | }, | 221 | }, |
221 | 222 | ||
@@ -280,8 +281,7 @@ seckillObj = { | @@ -280,8 +281,7 @@ seckillObj = { | ||
280 | second = offsetTime % 60; | 281 | second = offsetTime % 60; |
281 | 282 | ||
282 | if (offsetTime <= 0) { // 结束倒计时刷新状态 | 283 | if (offsetTime <= 0) { // 结束倒计时刷新状态 |
283 | - // that.refreshList(elem); | ||
284 | - location.reload(); | 284 | + that.refreshList(elem); |
285 | } else { | 285 | } else { |
286 | $(elem).find('.tick.hour').text(hour < 0 ? '00' : (hour < 10 ? ('0' + hour) : hour)); | 286 | $(elem).find('.tick.hour').text(hour < 0 ? '00' : (hour < 10 ? ('0' + hour) : hour)); |
287 | $(elem).find('.tick.minute').text(minute < 0 ? '00' : (minute < 10 ? ('0' + minute) : minute)); | 287 | $(elem).find('.tick.minute').text(minute < 0 ? '00' : (minute < 10 ? ('0' + minute) : minute)); |
@@ -290,7 +290,7 @@ seckillObj = { | @@ -290,7 +290,7 @@ seckillObj = { | ||
290 | $el.currentTick = setTimeout(function() { | 290 | $el.currentTick = setTimeout(function() { |
291 | var curSec = Math.floor(Date.now() / 1000); | 291 | var curSec = Math.floor(Date.now() / 1000); |
292 | 292 | ||
293 | - offsetTime = offsetTime - (curSec - nowTime) - that.diff; | 293 | + offsetTime = offsetTime - (curSec - nowTime); |
294 | that.startTick(elem, offsetTime, curSec); | 294 | that.startTick(elem, offsetTime, curSec); |
295 | }, 1000); | 295 | }, 1000); |
296 | } | 296 | } |
@@ -391,9 +391,10 @@ seckillObj = { | @@ -391,9 +391,10 @@ seckillObj = { | ||
391 | isApp: yoho.isApp | 391 | isApp: yoho.isApp |
392 | })) | 392 | })) |
393 | ); | 393 | ); |
394 | - if (result && result.currentTime) { | ||
395 | - self.diff = Math.round((Date.now() - result.currentTime) / 1000); | ||
396 | - } | 394 | + |
395 | + // if (result && result.currentTime) { | ||
396 | + // self.diff = Math.round((Date.now() - result.currentTime) / 1000); | ||
397 | + // } | ||
397 | 398 | ||
398 | lazyload('img.lazy'); | 399 | lazyload('img.lazy'); |
399 | window.rePosFooter(); | 400 | window.rePosFooter(); |
-
Please register or login to post a comment