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