Authored by zzzzzzz

sale倒计时bug

... ... @@ -8,10 +8,12 @@
<img src="{{image src 269 360}}" alt="sale-limit" class="sale-floor-limit">
<div class="sale-floor-time" data-time={{end_time}}>
<p class="limit-title"><i class="icon"></i>限时特卖</p>
<div class="limit">
<span class="hour">00</span>:
<span class="minute">00</span>:
<span class="second">00</span>
</div>
</div>
</a>
{{/list.[0]}}
... ...
... ... @@ -349,7 +349,7 @@ var saleTime = function(elem, offsetTime) {
$(elem).find('.second').text(second < 0 ? '00' : (second < 10 ? ('0' + second) : second));
if (offsetTime <= -1) { // 结束倒计时刷新状态
console.log('time done!');
$(elem).find('.limit').hide();
} else {
setTimeout(function() {
saleTime(elem, --offsetTime);
... ...