Authored by htoooth

add banner

@@ -1274,7 +1274,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { @@ -1274,7 +1274,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
1274 // 单品店显示新版的店铺banner 1274 // 单品店显示新版的店铺banner
1275 let basisData = yield shopService.basisTemplateAsync(domainBrand.shopId); 1275 let basisData = yield shopService.basisTemplateAsync(domainBrand.shopId);
1276 1276
1277 - bandInfo.bgImg = basisData.shopTopBanner.banner || bandInfo.bgImg; 1277 + bandInfo.bgImg = basisData.shopTopBanner_base.banner || bandInfo.bgImg;
1278 } 1278 }
1279 } 1279 }
1280 } 1280 }
@@ -77,15 +77,16 @@ const _signboard = data => { @@ -77,15 +77,16 @@ const _signboard = data => {
77 }; 77 };
78 }; 78 };
79 79
  80 +const _shopTopBanner_base = _shopTopBanner;
  81 +
80 /** 82 /**
81 * 基础模板 83 * 基础模板
82 */ 84 */
83 exports.basisTemplateAsync = shopId => { 85 exports.basisTemplateAsync = shopId => {
84 return co(function * () { 86 return co(function * () {
85 - let data = {signboard: {}, shopTopBanner: {}}; 87 + let data = { shopTopBanner_base: {}};
86 const ResourceHandler = { 88 const ResourceHandler = {
87 - shopTopBanner: _shopTopBanner,  
88 - signboard: _signboard 89 + shopTopBanner_base: _shopTopBanner_base
89 }; 90 };
90 let shops = yield api.shopsDecoratorListAsync(shopId); 91 let shops = yield api.shopsDecoratorListAsync(shopId);
91 92
@@ -103,8 +104,7 @@ exports.basisTemplateAsync = shopId => { @@ -103,8 +104,7 @@ exports.basisTemplateAsync = shopId => {
103 let resourceData = ResourceHandler[resourceHandlerName](_getResourceData(shop)); 104 let resourceData = ResourceHandler[resourceHandlerName](_getResourceData(shop));
104 105
105 switch (resourceHandlerName) { 106 switch (resourceHandlerName) {
106 - case 'shopTopBanner':  
107 - case 'signboard': 107 + case 'shopTopBanner_base':
108 { 108 {
109 data[resourceHandlerName] = resourceData; 109 data[resourceHandlerName] = resourceData;
110 break; 110 break;
@@ -65,7 +65,7 @@ module.exports = { @@ -65,7 +65,7 @@ module.exports = {
65 port: '4444' // influxdb port 65 port: '4444' // influxdb port
66 }, 66 },
67 console: { 67 console: {
68 - level: 'error', 68 + level: 'info',
69 colorize: 'all', 69 colorize: 'all',
70 prettyPrint: true 70 prettyPrint: true
71 } 71 }