...
|
...
|
@@ -21,13 +21,16 @@ const handleBrandList = origin => { |
|
|
indexList: []
|
|
|
};
|
|
|
|
|
|
_.sortBy(origin, (o) => {
|
|
|
return o.key;
|
|
|
});
|
|
|
|
|
|
_.forEach(origin, (value, key) => {
|
|
|
let brands = [];
|
|
|
|
|
|
_.forEach(value, (subValue) => {
|
|
|
brands.push({
|
|
|
name: subValue.brand_name,
|
|
|
link: '/brand/' + subValue.brand_domain,
|
|
|
logo: subValue.brand_ico,
|
|
|
domain: subValue.brand_domain
|
|
|
});
|
...
|
...
|
@@ -69,9 +72,7 @@ const getBrandListData = params => { |
|
|
* @returns {*|Promise.<TResult>}
|
|
|
*/
|
|
|
const getCateListData = params => {
|
|
|
return brandApi.getCateListData(params).then(result => {
|
|
|
return camelCase(result);
|
|
|
});
|
|
|
return brandApi.getCateListData(params).then(camelCase);
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
...
|
...
|
|