Authored by 郭成尧

'base-shop'

... ... @@ -67,6 +67,7 @@ const _shop = (req, res, shopId) => {
listModel.getShopData(req, shopId, uid, isApp).then((result) => {
if (result.goBrand) {
// 跳转基础模板
_baseShop(req, res, result.goBrand);
} else {
... ...
... ... @@ -398,19 +398,20 @@ const getBaseShopData = (params) => {
_getShopDecorator(params.shop_id),
getShopBrands(params.shop_id)
]).then(result => {
result[0] = result[0] || {};
_.forEach(result[0].list, item => {
if (item.resourceName === 'shopTopBanner_base') {
let banner = JSON.parse(item.resourceData);
if (result[0] && _.has(result[0], 'list')) {
_.forEach(result[0].list, item => {
if (item.resourceName === 'shopTopBanner_base') {
let banner = JSON.parse(item.resourceData);
finalResult = _.assign(finalResult, {
shopBanner: {
banner: banner[0].shopSrc
}
});
}
});
finalResult = _.assign(finalResult, {
baseShopHome: {
banner: _.get(banner, 'banner[0].shopSrc', '')
}
});
}
});
}
if (params.multBrandShopType === '2') {
// 转义店铺
... ...