Authored by yyq

款型系列bug处理

... ... @@ -499,26 +499,28 @@ const getNodeContentData = (params) => {
* 获取品牌页面系列
*/
const getAdnav = (params) => {
let resData = {};
return Promise.all([searchApi.getBrandShopFolder(params), searchApi.getBrandShopSeries(params)]).then(result => {
let dest = {
picTitle: '',
list: []
};
let list = [];
if (result[0].code === 200 && result[0].data) {
dest.picTitle = brandFolderSeries;
Object.assign(dest.list, searchHandler.handleFolderData(result[0].data, params));
list = _.concat(list, searchHandler.handleFolderData(result[0].data, params));
}
if (result[1].code === 200 && result[1].data) {
dest.picTitle = brandFolderSeries;
Object.assign(dest.list, searchHandler.handleSeriesData(result[1].data, params));
list = _.concat(list, searchHandler.handleSeriesData(result[1].data, params));
}
if (list.length) {
Object.assign(resData, {
picTitle: brandFolderSeries,
list: list
});
}
return dest;
return resData;
});
};
... ...