...
|
...
|
@@ -981,7 +981,6 @@ const getSeckillData = (param) => { |
|
|
method: 'app.seckill.data',
|
|
|
product_skn: param.productskn
|
|
|
};
|
|
|
|
|
|
return api.get('', params, {
|
|
|
code: 200
|
|
|
})
|
...
|
...
|
@@ -994,44 +993,6 @@ const getSeckillData = (param) => { |
|
|
if (result.data) {
|
|
|
data = result.data;
|
|
|
}
|
|
|
data = {
|
|
|
'activityId': 226,
|
|
|
'currentTime': 1476265949,
|
|
|
'endTime': 1476343557,
|
|
|
'formatSecKillPrice': '¥5.00',
|
|
|
'id': 512,
|
|
|
'orderBy': 1,
|
|
|
'productSkn': 51165112,
|
|
|
'remindFlag': false,
|
|
|
'secKillPrice': 5646545,
|
|
|
'secKillSku': [
|
|
|
{
|
|
|
'activityId': 226,
|
|
|
'id': 199,
|
|
|
'productSkn': 51165112,
|
|
|
'productSku': 555,
|
|
|
'storageNum': 2
|
|
|
},
|
|
|
{
|
|
|
'activityId': 226,
|
|
|
'id': 200,
|
|
|
'productSkn': 51165112,
|
|
|
'productSku': 222,
|
|
|
'storageNum': 2
|
|
|
},
|
|
|
{
|
|
|
'activityId': 226,
|
|
|
'id': 200,
|
|
|
'productSkn': 51165112,
|
|
|
'productSku': 444,
|
|
|
'storageNum': 2
|
|
|
}
|
|
|
],
|
|
|
'secKillStatus': 0,
|
|
|
'startTime': 1476261000,
|
|
|
'status': 2,
|
|
|
'storageSum': 2
|
|
|
};
|
|
|
return data;
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -1070,64 +1031,6 @@ let getProductData = (data) => { |
|
|
return {};
|
|
|
}
|
|
|
result = result.data;
|
|
|
result.goodsList[1] = {
|
|
|
status: 1,
|
|
|
colorCode: '47ba17',
|
|
|
colorId: 10,
|
|
|
colorImage: 'http://img10.static.yhbimg.com/goodsimg/2015/11/02/06/01361c1986f1dd2eaff70e1f85a35bfacd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
|
|
|
colorName: '白色',
|
|
|
colorValue: '',
|
|
|
goodsId: 385777,
|
|
|
imagesList: [{ imageUrl: 'http://img10.static.yhbimg.com/goodsimg/2015/11/02/06/01361c1986f1dd2eaff70e1f85a35bfacd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70' }],
|
|
|
isDefault: 'N',
|
|
|
productSkc: 297246,
|
|
|
sizeList:
|
|
|
[
|
|
|
{
|
|
|
status: 1,
|
|
|
allStorageNumber: 0,
|
|
|
orderBy: 1,
|
|
|
productSku: 444,
|
|
|
sizeId: 199,
|
|
|
sizeName: 'F',
|
|
|
storageNumber: 136,
|
|
|
storeStorageNumber: 0
|
|
|
},
|
|
|
{
|
|
|
status: 1,
|
|
|
allStorageNumber: 0,
|
|
|
orderBy: 1,
|
|
|
productSku: 555,
|
|
|
sizeId: 200,
|
|
|
sizeName: 'A',
|
|
|
storageNumber: 136,
|
|
|
storeStorageNumber: 0
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
result.goodsList[0].sizeList = [
|
|
|
{
|
|
|
status: 1,
|
|
|
allStorageNumber: 1,
|
|
|
orderBy: 1,
|
|
|
productSku: 111,
|
|
|
sizeId: 199,
|
|
|
sizeName: 'F',
|
|
|
storageNumber: 1,
|
|
|
storeStorageNumber: 1
|
|
|
},
|
|
|
{
|
|
|
status: 1,
|
|
|
allStorageNumber: 1,
|
|
|
orderBy: 1,
|
|
|
productSku: 222,
|
|
|
sizeId: 200,
|
|
|
sizeName: 'A',
|
|
|
storageNumber: 1,
|
|
|
storeStorageNumber: 1
|
|
|
}
|
|
|
|
|
|
];
|
|
|
return Promise.all([
|
|
|
_getShopsInfo(_.get(result, 'brandInfo.brandId', 0)),
|
|
|
_getPromotionInfo(result.productSkn),
|
...
|
...
|
@@ -1137,13 +1040,12 @@ let getProductData = (data) => { |
|
|
_getCommonConsult(),
|
|
|
comment.getConsults(result.productId, 1, 2)
|
|
|
]).then((info) => {
|
|
|
|
|
|
result.promotionBoList = info[1];
|
|
|
finalResult = _detailDataPkg(result, data.uid, data.vipLevel, data.ua);
|
|
|
finalResult.enterStore = info[0];
|
|
|
finalResult.isStudent = data.isStudent;
|
|
|
|
|
|
Object.assign(finalResult.feedbacks, info[2]);
|
|
|
Object.assign(finalResult, {isSecKill: result.isSecKill});
|
|
|
|
|
|
/* 如果有咨询,显示咨询,否则显示常见问题 */
|
|
|
|
...
|
...
|
|