...
|
...
|
@@ -1126,6 +1126,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
result.skn = propOrigin('product_skn');
|
|
|
result.productId = propOrigin('product_id');
|
|
|
result.shopId = propOrigin('shop_id', 0);
|
|
|
result.brandId = propOrigin('brand_info.brand_id', '');
|
|
|
|
|
|
result.maxSortId = propOrigin('maxSortId', '');
|
|
|
result.smallSortId = propOrigin('smallSortId', '');
|
...
|
...
|
@@ -1462,17 +1463,25 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
result.brandImg = helpers.image(propOrigin('brand_info.brand_ico', ''), 47, 47);
|
|
|
result.brandName = propOrigin('brand_info.brand_name', '');
|
|
|
bandInfo = _getBrandDataByProductBaseInfo(origin, additionalData);
|
|
|
bandInfo.homeUrl = helpers.urlFormat('',
|
|
|
result.shopId ? {shopId: result.shopId} : null,
|
|
|
propOrigin('brand_info.brand_domain')
|
|
|
);
|
|
|
bandInfo.isCollect = favoriteData.brand;
|
|
|
|
|
|
if (result.shopId) {
|
|
|
let bannerImg = yield shopService.getShopBannerAsync(result.shopId);
|
|
|
let shopData = yield Promise.props({
|
|
|
bannerImg: shopService.getShopBannerAsync(result.shopId),
|
|
|
isShopOpen: shopService.queryShopByBrandIdAsync(result.brandId)
|
|
|
});
|
|
|
|
|
|
if (shopData.bannerImg) {
|
|
|
bandInfo.bgImg = shopData.bannerImg;
|
|
|
}
|
|
|
|
|
|
if (bannerImg) {
|
|
|
bandInfo.bgImg = bannerImg;
|
|
|
if (shopData.isShopOpen) {
|
|
|
bandInfo.homeUrl = helpers.urlFormat('',
|
|
|
{shopId: result.shopId},
|
|
|
propOrigin('brand_info.brand_domain')
|
|
|
);
|
|
|
} else {
|
|
|
result.shopId = '0';
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|