...
|
...
|
@@ -978,6 +978,7 @@ const getSeckillData = (param) => { |
|
|
method: 'app.seckill.data',
|
|
|
product_skn: param.productskn
|
|
|
};
|
|
|
|
|
|
return api.get('', params, {
|
|
|
code: 200
|
|
|
})
|
...
|
...
|
@@ -995,7 +996,8 @@ const getSeckillData = (param) => { |
|
|
};
|
|
|
|
|
|
let getProductData = (data) => {
|
|
|
let finalResult;
|
|
|
let finalResult = {};
|
|
|
|
|
|
let params = {
|
|
|
method: 'app.product.data'
|
|
|
};
|
...
|
...
|
@@ -1028,6 +1030,7 @@ let getProductData = (data) => { |
|
|
return {};
|
|
|
}
|
|
|
result = result.data;
|
|
|
|
|
|
return Promise.all([
|
|
|
_getShopsInfo(_.get(result, 'brandInfo.brandId', 0)),
|
|
|
_getPromotionInfo(result.productSkn),
|
...
|
...
|
@@ -1044,6 +1047,11 @@ let getProductData = (data) => { |
|
|
Object.assign(finalResult.feedbacks, info[2]);
|
|
|
Object.assign(finalResult, {isSecKill: result.isSecKill});
|
|
|
|
|
|
/* 预售商品不能购买 */
|
|
|
if (_.get(result, 'isDepositAdvance', '') === 'Y') {
|
|
|
finalResult.cartInfo.isDepositAdvance = true;
|
|
|
}
|
|
|
|
|
|
/* 如果有咨询,显示咨询,否则显示常见问题 */
|
|
|
|
|
|
if (info[4].total) {
|
...
|
...
|
|