Authored by ccbikai(👎🏻🍜)

Merge branch 'release/newSearch'

... ... @@ -133,12 +133,7 @@ const _getChannelResource = (params) => {
return api.get('operations/api/v5/resource/home', params, {
cache: true
}).then(result => {
if (result && result.code === 200 && result.data && result.data.list) {
for (let item of result.data.list) {
item.template_name === 'single_image' &&
item.data.length === 1 &&
(item.singleOne = true);
}
if (result && result.code === 200) {
return resourcesProcess(result.data.list);
} else {
logger.error('index resouce is not 200');
... ...
... ... @@ -70,6 +70,11 @@ module.exports = (list) => {
floor.data.data = floor.data.image;
}
// 单张轮播图
floor.singleImage &&
floor.data.length === 1 &&
(floor.singleOne = true);
formatData.push(floor);
});
... ...