Authored by htoooth

add banner

... ... @@ -1274,7 +1274,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
// 单品店显示新版的店铺banner
let basisData = yield shopService.basisTemplateAsync(domainBrand.shopId);
bandInfo.bgImg = basisData.shopTopBanner.banner || bandInfo.bgImg;
bandInfo.bgImg = basisData.shopTopBanner_base.banner || bandInfo.bgImg;
}
}
}
... ...
... ... @@ -77,15 +77,16 @@ const _signboard = data => {
};
};
const _shopTopBanner_base = _shopTopBanner;
/**
* 基础模板
*/
exports.basisTemplateAsync = shopId => {
return co(function * () {
let data = {signboard: {}, shopTopBanner: {}};
let data = { shopTopBanner_base: {}};
const ResourceHandler = {
shopTopBanner: _shopTopBanner,
signboard: _signboard
shopTopBanner_base: _shopTopBanner_base
};
let shops = yield api.shopsDecoratorListAsync(shopId);
... ... @@ -103,8 +104,7 @@ exports.basisTemplateAsync = shopId => {
let resourceData = ResourceHandler[resourceHandlerName](_getResourceData(shop));
switch (resourceHandlerName) {
case 'shopTopBanner':
case 'signboard':
case 'shopTopBanner_base':
{
data[resourceHandlerName] = resourceData;
break;
... ...
... ... @@ -65,7 +65,7 @@ module.exports = {
port: '4444' // influxdb port
},
console: {
level: 'error',
level: 'info',
colorize: 'all',
prettyPrint: true
}
... ...