...
|
...
|
@@ -1306,7 +1306,7 @@ const showMainAsync = (data) => { |
|
|
|
|
|
// 获取商品信息
|
|
|
let productInfo = yield productAPI.getProductAsync(data.pid, data.uid, data.isStudent, data.vipLevel)
|
|
|
.then(res => currentUserProductInfo(res));
|
|
|
.then(currentUserProductInfo);
|
|
|
|
|
|
if (_.isEmpty(productInfo) || _.isEmpty(productInfo.goodsInfo)) {
|
|
|
return Promise.reject({
|
...
|
...
|
@@ -1316,7 +1316,8 @@ const showMainAsync = (data) => { |
|
|
|
|
|
let requestData = yield Promise.all([
|
|
|
_getSortNavAsync(productInfo.goodsInfo.smallSortId, data.gender),
|
|
|
HeaderModel.requestHeaderData(data.channel)
|
|
|
HeaderModel.requestHeaderData(data.channel),
|
|
|
productAPI.isSupportReturnedSale(productInfo.goodsInfo.skn)
|
|
|
]);
|
|
|
|
|
|
// 分类导航 ,seo
|
...
|
...
|
@@ -1338,6 +1339,10 @@ 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),
|
...
|
...
|
|