...
|
...
|
@@ -361,7 +361,7 @@ exports.getShopDecorator = (data, params, shopId, base) => { |
|
|
|
|
|
if (base) {
|
|
|
_.forEach(data.list, (value) => {
|
|
|
let info = Fn.pipe(JSON.parse, _.partial(_handleSaleCategory, shopId))(value.resource_data);
|
|
|
let info = Fn.pipe(JSON.parse, _.partial(_handleSaleCategory, shopId))(value.resource_data || '[]');
|
|
|
|
|
|
switch (value.resource_name) {
|
|
|
case 'signboard':
|
...
|
...
|
@@ -381,7 +381,7 @@ exports.getShopDecorator = (data, params, shopId, base) => { |
|
|
});
|
|
|
|
|
|
_.forEach(data.list, (value) => {
|
|
|
let info = Fn.pipe(JSON.parse, _.partial(_handleSaleCategory, shopId))(value.resource_data);
|
|
|
let info = Fn.pipe(JSON.parse, _.partial(_handleSaleCategory, shopId))(value.resource_data || '[]');
|
|
|
let tabBar;
|
|
|
|
|
|
switch (value.resource_name) {
|
...
|
...
|
|