...
|
...
|
@@ -87,11 +87,23 @@ function convertTime(time) { |
|
|
}
|
|
|
|
|
|
function setPageTime() {
|
|
|
var i, showTime;
|
|
|
var i, text, showTime;
|
|
|
|
|
|
for (i = 0; i < limitTime.length; i++) {
|
|
|
if (limitTime[i].time < 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
limitTime[i].time -= 1000;
|
|
|
showTime = convertTime(limitTime[i].time);
|
|
|
if (showTime) {
|
|
|
text = showTime;
|
|
|
if (limitTime[i].pre) {
|
|
|
text = limitTime[i].pre + ' ' + text;
|
|
|
}
|
|
|
} else {
|
|
|
text = '活动已结束';
|
|
|
}
|
|
|
$('.time-calculate').removeClass('hidden');
|
|
|
$('.time-calculate').text(showTime);
|
|
|
}
|
...
|
...
|
|