...
|
...
|
@@ -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;
|
...
|
...
|
@@ -262,13 +263,13 @@ const remind = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
return seckillModel.remind({
|
|
|
on_off: req.body.on_off === 'true' ? true : false,
|
|
|
activity_id: Number.parseInt(req.body.activity_id, 10),
|
|
|
product_skn: Number.parseInt(req.body.product_skn, 10),
|
|
|
uid: Number.parseInt(req.body.uid, 10),
|
|
|
sec_kill_id: Number.parseInt(req.body.sec_kill_id, 10),
|
|
|
app_type: 0
|
|
|
})
|
|
|
on_off: req.body.on_off === 'true' ? true : false,
|
|
|
activity_id: Number.parseInt(req.body.activity_id, 10),
|
|
|
product_skn: Number.parseInt(req.body.product_skn, 10),
|
|
|
uid: Number.parseInt(req.body.uid, 10),
|
|
|
sec_kill_id: Number.parseInt(req.body.sec_kill_id, 10),
|
|
|
app_type: 0
|
|
|
})
|
|
|
.then(result => {
|
|
|
return res.json(result);
|
|
|
});
|
...
|
...
|
|