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