Authored by htoooth

brand url

... ... @@ -233,7 +233,6 @@ const _getBrandDataByProductBaseInfo = (data, additionalData) => {
}
let brandId = data.brand_info.brand_id;
let bgImg = '';
let logo = '';
let bannerInfo = null;
let result = _.get(additionalData, 'bannerInfo', {});
... ... @@ -248,9 +247,6 @@ const _getBrandDataByProductBaseInfo = (data, additionalData) => {
if (result.code && result.code === 200 && result.data) {
bannerInfo = result.data;
if (bannerInfo.bannerUrl) {
bgImg = helpers.getForceSourceUrl(bannerInfo.bannerUrl);
}
}
// banner的logo
... ... @@ -268,7 +264,6 @@ const _getBrandDataByProductBaseInfo = (data, additionalData) => {
return {
brandId: brandId,
bgColor: '#000000',
bgImg: bgImg,
logo: logo,
alt: data.brand_info.brand_name,
brandName: data.brand_info.brand_name,
... ... @@ -1451,7 +1446,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
let bannerImg = yield shopService.getShopBannerAsync(result.shopId);
if (bannerImg) {
bandInfo.bgImg = bannerImg || bandInfo.bgImg;
bandInfo.bgImg = bannerImg;
}
}
}
... ...