Authored by lijing

秒杀详情页

@@ -991,13 +991,14 @@ const getSeckillData = (productSkn) => { @@ -991,13 +991,14 @@ const getSeckillData = (productSkn) => {
991 } 991 }
992 992
993 data = { 993 data = {
994 - productSkn: 512581470,  
995 activityId: 4, 994 activityId: 4,
996 - startTime: 1475192655,  
997 - endTime: 1475558971,  
998 - formatSecKillPrice: '¥50.00', 995 + startTime: 1465194254,
  996 + endTime: 1475294254,
  997 + formatSecKillPrice: '¥123.00',
  998 + id: 4,
  999 + orderBy: 0,
  1000 + productSkn: 512581470,
999 secKillPrice: 50, 1001 secKillPrice: 50,
1000 - status: 1,  
1001 secKillSku: [ 1002 secKillSku: [
1002 { 1003 {
1003 activityId: 4, 1004 activityId: 4,
@@ -1013,7 +1014,10 @@ const getSeckillData = (productSkn) => { @@ -1013,7 +1014,10 @@ const getSeckillData = (productSkn) => {
1013 productSku: 1384140, 1014 productSku: 1384140,
1014 storageNum: 5 1015 storageNum: 5
1015 } 1016 }
1016 - ] 1017 + ],
  1018 + secKillStatus: 0,
  1019 + status: 2,
  1020 + storageSum: 0
1017 }; 1021 };
1018 1022
1019 return data; 1023 return data;
@@ -1064,6 +1068,12 @@ let getProductData = (data) => { @@ -1064,6 +1068,12 @@ let getProductData = (data) => {
1064 comment.getConsults(result.productId, 1, 2), 1068 comment.getConsults(result.productId, 1, 2),
1065 getSeckillData(result.productSkn) 1069 getSeckillData(result.productSkn)
1066 ]).then((info) => { 1070 ]).then((info) => {
  1071 +
  1072 + // result.goodsList[0].sizeList[0].storageNumber = 1;
  1073 + // result.goodsList[0].sizeList[1].storageNumber = 0;
  1074 + // result.goodsList[0].sizeList[2].storageNumber = 0;
  1075 + // result.goodsList[0].sizeList[3].storageNumber = 0;
  1076 + // result.goodsList[0].sizeList[4].storageNumber = 0;
1067 result.promotionBoList = info[1]; 1077 result.promotionBoList = info[1];
1068 finalResult = _detailDataPkg(result, data.uid, data.vipLevel, data.ua); 1078 finalResult = _detailDataPkg(result, data.uid, data.vipLevel, data.ua);
1069 finalResult.enterStore = info[0]; 1079 finalResult.enterStore = info[0];
@@ -1084,9 +1094,11 @@ let getProductData = (data) => { @@ -1084,9 +1094,11 @@ let getProductData = (data) => {
1084 1094
1085 if (!end) { 1095 if (!end) {
1086 1096
1087 - let notStart = nowDate < info[5].startTime ? true : false; 1097 + let notStart = info[5].status === 1 ? true : false;
1088 1098
1089 - let startIng = info[5].startTime < nowDate && info[5].endTime > nowDate ? true : false; 1099 + let startIng = info[5].status === 2 ? true : false;
  1100 +
  1101 + let end = info[5].status === 3 ? true : false;
1090 1102
1091 let leftCount = 0; 1103 let leftCount = 0;
1092 1104
@@ -1098,9 +1110,7 @@ let getProductData = (data) => { @@ -1098,9 +1110,7 @@ let getProductData = (data) => {
1098 isSecKill: { 1110 isSecKill: {
1099 notStart: notStart, 1111 notStart: notStart,
1100 startIng: startIng, 1112 startIng: startIng,
1101 -  
1102 - // startTime: info[5].startTime,  
1103 - // endTime: info[5].endTime, 1113 + end: end,
1104 productSkn: data.productSkn, 1114 productSkn: data.productSkn,
1105 secKillPrice: info[5].formatSecKillPrice, 1115 secKillPrice: info[5].formatSecKillPrice,
1106 noneLeft: leftCount === 0 ? true : false 1116 noneLeft: leftCount === 0 ? true : false
@@ -184,10 +184,10 @@ @@ -184,10 +184,10 @@
184 {{# notStart}} 184 {{# notStart}}
185 <div class="seckill-count"> 185 <div class="seckill-count">
186 <div class="seckill-count-bg"></div> 186 <div class="seckill-count-bg"></div>
187 - <div class="seckill-count-num">距开抢  
188 - <i class="tick hour">00</i>:  
189 - <i class="tick minute">00</i>:  
190 - <i class="tick second">00</i> 187 + <div class="seckill-count-num">距秒杀开始:
  188 + <i class="tick hour">00</i>
  189 + <i class="tick minute">00</i>
  190 + <i class="tick second">00</i>
191 </div> 191 </div>
192 </div> 192 </div>
193 {{/notStart}} 193 {{/notStart}}
@@ -74,7 +74,7 @@ @@ -74,7 +74,7 @@
74 </a> 74 </a>
75 {{/if}} 75 {{/if}}
76 </div> 76 </div>
77 - <span class="left-num"></span> 77 + <span class="left-num {{#if ../isSecKill}}hide{{/if}}"></span>
78 <input id="left-num" type="hidden" value="0"> 78 <input id="left-num" type="hidden" value="0">
79 <input id="limitNum" type="hidden" value="{{limit}}"> 79 <input id="limitNum" type="hidden" value="{{limit}}">
80 </div> 80 </div>
@@ -402,8 +402,8 @@ $basicBtnC: #eb0313; @@ -402,8 +402,8 @@ $basicBtnC: #eb0313;
402 font-size: 30px; 402 font-size: 30px;
403 line-height: 80px; 403 line-height: 80px;
404 position: absolute; 404 position: absolute;
405 - right: 0px;  
406 - bottom: 90px; 405 + left: 380px;
  406 + bottom: 0;
407 } 407 }
408 408
409 .seckill-time-border { 409 .seckill-time-border {