Authored by lijing

逛报错

... ... @@ -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);
});
... ...
... ... @@ -382,7 +382,7 @@ seckillObj = {
loading.show();
$xhr = $.get(location.href)
.done(function(result) {
self.$container.html(
self.$container.replaceWith(
self.pageTemplate($.extend(result, {
isApp: yoho.isApp
}))
... ...
@import "nav";
@import "product";
@import "seckill";
\ No newline at end of file
@import "seckill";
.seckill-page {
background-color: #f0f0f0;
}
\ No newline at end of file
... ...
... ... @@ -59,7 +59,8 @@
}
.selected {
display: none;
color: #d0021b;
color: #d0021b !important;
font-weight: bold;
height: 79px;
}
.normal {
... ...
... ... @@ -70,7 +70,8 @@
position: relative;
z-index:2;
display: inline-block;
min-width: 200px;
min-width: 160px;
padding: 0 8px;
height: 60px;
line-height: 60px;
text-align: center;
... ...