...
|
...
|
@@ -291,7 +291,23 @@ const branchSearchHistory = (params) => { |
|
|
|
|
|
}, { code: 200 }).then(result => {
|
|
|
|
|
|
return result;
|
|
|
let resu = {
|
|
|
data: {
|
|
|
list: [
|
|
|
{
|
|
|
name: '111',
|
|
|
searchTime: '111'
|
|
|
},
|
|
|
{
|
|
|
name: '22',
|
|
|
searchTime: '22'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
};
|
|
|
|
|
|
// console.log(resu);
|
|
|
return resu;
|
|
|
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -332,9 +348,8 @@ const branchSearch = (params) => { |
|
|
showDownloadApp: true,
|
|
|
pageFooter: true,
|
|
|
hot: [],
|
|
|
brandList: [
|
|
|
|
|
|
]
|
|
|
history: [],
|
|
|
brandList: []
|
|
|
};
|
|
|
|
|
|
if (result && result[0] && result[0].data) {
|
...
|
...
|
@@ -347,25 +362,21 @@ const branchSearch = (params) => { |
|
|
|
|
|
let build = [];
|
|
|
|
|
|
if (key != '') {
|
|
|
|
|
|
brandList[key].forEach(row => {
|
|
|
|
|
|
build.push({
|
|
|
name: row.brand_name,
|
|
|
isHot: row.is_hot === 'Y' ? true : false,
|
|
|
isNew: row.is_show_new === 'Y' ? true : false,
|
|
|
url: helpers.urlFormat('', null, row.brand_domain),
|
|
|
brandId: row.id,
|
|
|
brandDomain: row.brand_domain,
|
|
|
searchName: row.brand_name_en + row.brand_name_cn
|
|
|
});
|
|
|
|
|
|
obj[key] = build;
|
|
|
brandList[key].forEach(row => {
|
|
|
|
|
|
build.push({
|
|
|
name: row.brand_name,
|
|
|
isHot: row.is_hot === 'Y' ? true : false,
|
|
|
isNew: row.is_show_new === 'Y' ? true : false,
|
|
|
url: helpers.urlFormat('', null, row.brand_domain),
|
|
|
brandId: row.id,
|
|
|
brandDomain: row.brand_domain,
|
|
|
searchName: row.brand_name_en + row.brand_name_cn
|
|
|
});
|
|
|
|
|
|
}
|
|
|
obj[key] = build;
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
@@ -389,6 +400,14 @@ const branchSearch = (params) => { |
|
|
|
|
|
}
|
|
|
|
|
|
if (result && result[1] && result[1].data) {
|
|
|
|
|
|
let hisList = result[1].data;
|
|
|
|
|
|
resu.history.push(hisList);
|
|
|
|
|
|
}
|
|
|
|
|
|
return resu;
|
|
|
|
|
|
});
|
...
|
...
|
|