...
|
...
|
@@ -119,6 +119,7 @@ const index = (req, res, next) => { |
|
|
return res.render('seckill', {
|
|
|
title: '秒杀活动',
|
|
|
pageHeader: headerData,
|
|
|
pageStyle: 'seckill-page',
|
|
|
pageFooter: true,
|
|
|
width750: true,
|
|
|
});
|
...
|
...
|
@@ -153,7 +154,7 @@ const index = (req, res, next) => { |
|
|
if (focusTime) {
|
|
|
focusTime = moment(focusTime, 'YYYYMMDDHHmmss').unix();
|
|
|
focusIndex = result.activitys.findIndex(activity=> activity.startTime === focusTime);
|
|
|
console.log(focusIndex)
|
|
|
|
|
|
if (focusIndex !== -1) {
|
|
|
result.activitys[focusIndex].focus = true;
|
|
|
focusIndex = true;
|
...
|
...
|
|