Authored by htoooth

add css

... ... @@ -265,7 +265,7 @@ const _getBrandDataByProductBaseInfo = (data, additionalData) => {
// 导航的品牌banner
return {
brandId: brandId,
bgColor: bannerInfo && bannerInfo.colorValue ? bannerInfo.colorValue : '#000000',
bgColor: '#000000',
bgImg: bgImg,
logo: logo,
alt: data.brand_info.brand_name,
... ... @@ -1400,9 +1400,12 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
bandInfo.brandUrl = result.brandUrl;
if (result.shopId) {
let basisData = yield shopService.getShopBannerAsync(result.shopId);
let bannerImg = yield shopService.getShopBannerAsync(result.shopId);
console.log(bannerImg);
bandInfo.bgImg = basisData.shopTopBanner_base.detailSrc || bandInfo.bgImg;
if (bannerImg) {
bandInfo.bgImg = bannerImg || bandInfo.bgImg;
}
}
}
... ...
<div class="product-detail-page yoho-page">
{{# detail}}
{{# banner}}
<div class="brand-banner" style="background:{{bgColor}}{{#if bgImg}} url({{bgImg}}){{/if}}">
<div class="brand-banner" style="background:{{bgColor}}{{#if bgImg}} url({{image bgImg 1920 45}}){{/if}}">
<div class="center-content clearfix">
<a class="pull-left" href="{{homeUrl}}">
<img src="{{logo}}">
... ...
... ... @@ -20,11 +20,11 @@ module.exports = {
// test2
singleApi: 'http://192.168.102.27:8092/brower',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
//api: 'http://api-test3.yohops.com:9999/',
//service: 'http://service-test3.yohops.com:9999/',
//api: 'http://api.yoho.cn/',
//service: 'http://service.yoho.cn/'
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
// api: 'http://dev-api.yohops.com:9999/',
// service: 'http://dev-service.yohops.com:9999/',
... ...