Authored by 陈轩

YH-5128

@@ -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;
@@ -382,7 +382,7 @@ seckillObj = { @@ -382,7 +382,7 @@ seckillObj = {
382 loading.show(); 382 loading.show();
383 $xhr = $.get(location.href) 383 $xhr = $.get(location.href)
384 .done(function(result) { 384 .done(function(result) {
385 - self.$container.html( 385 + self.$container.replaceWith(
386 self.pageTemplate($.extend(result, { 386 self.pageTemplate($.extend(result, {
387 isApp: yoho.isApp 387 isApp: yoho.isApp
388 })) 388 }))
1 @import "nav"; 1 @import "nav";
2 @import "product"; 2 @import "product";
3 @import "seckill"; 3 @import "seckill";
  4 +
  5 +.seckill-page {
  6 + background-color: #f0f0f0;
  7 +}
@@ -59,7 +59,8 @@ @@ -59,7 +59,8 @@
59 } 59 }
60 .selected { 60 .selected {
61 display: none; 61 display: none;
62 - color: #d0021b; 62 + color: #d0021b !important;
  63 + font-weight: bold;
63 height: 79px; 64 height: 79px;
64 } 65 }
65 .normal { 66 .normal {
@@ -70,7 +70,8 @@ @@ -70,7 +70,8 @@
70 position: relative; 70 position: relative;
71 z-index:2; 71 z-index:2;
72 display: inline-block; 72 display: inline-block;
73 - min-width: 200px; 73 + min-width: 160px;
  74 + padding: 0 8px;
74 height: 60px; 75 height: 60px;
75 line-height: 60px; 76 line-height: 60px;
76 text-align: center; 77 text-align: center;