Authored by lijing

倒计时缓存

... ... @@ -13,7 +13,7 @@ var timeObj = '';
var offsetTime = 0;
var nowTime = Date.parse(new Date()) / 1000;
var nowTime = 0;
var startTime = 0;
... ... @@ -190,6 +190,8 @@ $(
endTime = data.endTime;
nowTime = Date.parse(new Date()) / 1000;
if (startTime > nowTime) {
offsetTime = startTime - nowTime;
timeObj = $('.seckill-count-num');
... ... @@ -197,6 +199,7 @@ $(
offsetTime = endTime - nowTime;
timeObj = $('.end-time');
}
dateText = Number(data.startTime * 1000);
newDate = new Date(dateText);
newMonth = newDate.getMonth() + 1;
... ...