|
@@ -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;
|