...
|
...
|
@@ -1311,6 +1311,7 @@ const getDetailHeader = (pid, uid, isStudent, vipLevel, dataMd5, cookie) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
// 是否支持退换货,true 支持,false 不支持
|
|
|
const saleReturn = (skn) => {
|
|
|
return productAPI.isSupportReturnedSale(skn).then(result => _.get(result, `data.${skn}`, 'N') === 'N' ? 'Y' : 'N');
|
|
|
};
|
...
|
...
|
@@ -1335,7 +1336,6 @@ const showMainAsync = (data) => { |
|
|
let requestData = yield Promise.all([
|
|
|
_getSortNavAsync(productInfo.goodsInfo.smallSortId, data.gender), // 导航
|
|
|
HeaderModel.requestHeaderData(data.channel), // 头部数据
|
|
|
productAPI.isSupportReturnedSale(productInfo.goodsInfo.skn), // 退换货
|
|
|
_getProductIntroAsync(productInfo.goodsInfo.productId, productInfo.goodsInfo.skn) // 商品详细介绍
|
|
|
]);
|
|
|
|
...
|
...
|
@@ -1347,7 +1347,7 @@ const showMainAsync = (data) => { |
|
|
result.detail = productInfo;
|
|
|
|
|
|
// 商品详细介绍
|
|
|
let intro = _getIntroInfo(productInfo.goodsInfo.skn, productInfo.goodsInfo.maxSortId, requestData[3]);
|
|
|
let intro = _getIntroInfo(productInfo.goodsInfo.skn, productInfo.goodsInfo.maxSortId, requestData[2]);
|
|
|
|
|
|
result.deatil = Object.assign(result.detail, intro);
|
|
|
|
...
|
...
|
@@ -1365,10 +1365,6 @@ const showMainAsync = (data) => { |
|
|
productInfo.statGoodsInfo
|
|
|
);
|
|
|
|
|
|
// 是否支持退换货,true 支持,false 不支持
|
|
|
result.detail.supportSaleReturnedService =
|
|
|
_.get(requestData[2], `data.${productInfo.goodsInfo.skn}`, 'N') === 'N';
|
|
|
|
|
|
// 面包屑导航
|
|
|
result.detail.pathNav = _.concat(
|
|
|
homeService.getHomeChannelNav(data.channel),
|
...
|
...
|
@@ -1376,7 +1372,6 @@ const showMainAsync = (data) => { |
|
|
[{name: productInfo.goodsInfo.name}]
|
|
|
);
|
|
|
|
|
|
|
|
|
return result;
|
|
|
})();
|
|
|
};
|
...
|
...
|
|