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