...
|
...
|
@@ -18,7 +18,8 @@ const detailAPI = require('./detail-main-api'); |
|
|
const commentAPI = require('./detail-comment-api');
|
|
|
const consultAPI = require('./detail-consult-api');
|
|
|
const hotAreaAPI = require('./detail-hotarea-api');
|
|
|
const brandAPI = require('./brand-api');
|
|
|
|
|
|
const brandService = require('./brand-service');
|
|
|
|
|
|
const favoriteBrandService = require('./favorite-brand-service');
|
|
|
const favoriteProductService = require('./favorite-product-service');
|
...
|
...
|
@@ -53,7 +54,7 @@ const setMultiResourceByProductBaseInfo = (data) => { |
|
|
detailAPI.getProductComfortAsync(productId, isOnlyUrl),
|
|
|
detailAPI.getProductModelCardAsync(productId, isOnlyUrl),
|
|
|
detailAPI.getProductModelTryAsync(skn, isOnlyUrl),
|
|
|
brandAPI.getBannerInfoAsync(brandId, isOnlyUrl)
|
|
|
brandService.getBannerInfoAsync(brandId, isOnlyUrl)
|
|
|
]);
|
|
|
|
|
|
multiResourcesUrl['ItemData::getProductBanner'] = result[0];
|
...
|
...
|
@@ -279,7 +280,7 @@ const getBrandDataByProductBaseInfo = (data) => { |
|
|
let result = getMultiDataByResourceName('BrandData::getBannerInfo');
|
|
|
|
|
|
if (!result) {
|
|
|
result = yield brandAPI.getBannerInfoAsync(brandId);
|
|
|
result = yield brandService.getBannerInfoAsync(brandId);
|
|
|
}
|
|
|
|
|
|
if (data.brand.brandIco) {
|
...
|
...
|
@@ -746,7 +747,7 @@ const detailDataPkg = (origin, uid, vipLevel) => { |
|
|
}
|
|
|
|
|
|
if (banner.brandId) {
|
|
|
let domainBrand = yield brandAPI.getBrandByDomainAsync(banner.brandDomain);
|
|
|
let domainBrand = yield brandService.getBrandByDomainAsync(banner.brandDomain);
|
|
|
|
|
|
if (domainBrand.type && domainBrand.shopId) {
|
|
|
switch (parseInt(domainBrand.type)) {
|
...
|
...
|
|