Authored by lijing

秒杀详情页

... ... @@ -991,13 +991,14 @@ const getSeckillData = (productSkn) => {
}
data = {
productSkn: 512581470,
activityId: 4,
startTime: 1475192655,
endTime: 1475558971,
formatSecKillPrice: '¥50.00',
startTime: 1465194254,
endTime: 1475294254,
formatSecKillPrice: '¥123.00',
id: 4,
orderBy: 0,
productSkn: 512581470,
secKillPrice: 50,
status: 1,
secKillSku: [
{
activityId: 4,
... ... @@ -1013,7 +1014,10 @@ const getSeckillData = (productSkn) => {
productSku: 1384140,
storageNum: 5
}
]
],
secKillStatus: 0,
status: 2,
storageSum: 0
};
return data;
... ... @@ -1064,6 +1068,12 @@ let getProductData = (data) => {
comment.getConsults(result.productId, 1, 2),
getSeckillData(result.productSkn)
]).then((info) => {
// result.goodsList[0].sizeList[0].storageNumber = 1;
// result.goodsList[0].sizeList[1].storageNumber = 0;
// result.goodsList[0].sizeList[2].storageNumber = 0;
// result.goodsList[0].sizeList[3].storageNumber = 0;
// result.goodsList[0].sizeList[4].storageNumber = 0;
result.promotionBoList = info[1];
finalResult = _detailDataPkg(result, data.uid, data.vipLevel, data.ua);
finalResult.enterStore = info[0];
... ... @@ -1084,9 +1094,11 @@ let getProductData = (data) => {
if (!end) {
let notStart = nowDate < info[5].startTime ? true : false;
let notStart = info[5].status === 1 ? true : false;
let startIng = info[5].startTime < nowDate && info[5].endTime > nowDate ? true : false;
let startIng = info[5].status === 2 ? true : false;
let end = info[5].status === 3 ? true : false;
let leftCount = 0;
... ... @@ -1098,9 +1110,7 @@ let getProductData = (data) => {
isSecKill: {
notStart: notStart,
startIng: startIng,
// startTime: info[5].startTime,
// endTime: info[5].endTime,
end: end,
productSkn: data.productSkn,
secKillPrice: info[5].formatSecKillPrice,
noneLeft: leftCount === 0 ? true : false
... ...
... ... @@ -184,10 +184,10 @@
{{# notStart}}
<div class="seckill-count">
<div class="seckill-count-bg"></div>
<div class="seckill-count-num">距开抢
<i class="tick hour">00</i>:
<i class="tick minute">00</i>:
<i class="tick second">00</i>
<div class="seckill-count-num">距秒杀开始:
<i class="tick hour">00</i>
<i class="tick minute">00</i>
<i class="tick second">00</i>
</div>
</div>
{{/notStart}}
... ...
... ... @@ -74,7 +74,7 @@
</a>
{{/if}}
</div>
<span class="left-num"></span>
<span class="left-num {{#if ../isSecKill}}hide{{/if}}"></span>
<input id="left-num" type="hidden" value="0">
<input id="limitNum" type="hidden" value="{{limit}}">
</div>
... ...
... ... @@ -402,8 +402,8 @@ $basicBtnC: #eb0313;
font-size: 30px;
line-height: 80px;
position: absolute;
right: 0px;
bottom: 90px;
left: 380px;
bottom: 0;
}
.seckill-time-border {
... ...