Authored by 陈轩

YH-5128

... ... @@ -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;
... ...
... ... @@ -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";
.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;
... ...