Authored by 陈轩

fix

... ... @@ -158,6 +158,8 @@ const index = (req, res, next) => {
if (focusIndex !== -1) {
result.activitys[focusIndex].focus = true;
focusIndex = true;
} else {
focusIndex = false;
}
}
... ... @@ -179,13 +181,13 @@ const index = (req, res, next) => {
if (nowTime < nextTime) { // 下一个时间段与当前时间来区别是否正在抢购
activity.now = true;
focusIndex || (activity.focus = true);
focusIndex || (activity.focus = focusIndex = true);
} else {
activity.over = true;
}
} else { // 大于这个时间段但是后面没有秒抢时间端了,则依然显示抢购中
activity.now = true;
focusIndex || (activity.focus = true);
focusIndex || (activity.focus = focusIndex = true);
}
} else {
activity.wait = true;
... ...