...
|
...
|
@@ -21,10 +21,6 @@ const handleBrandList = origin => { |
|
|
indexList: []
|
|
|
};
|
|
|
|
|
|
_.sortBy(origin, (o) => {
|
|
|
return o.key;
|
|
|
});
|
|
|
|
|
|
_.forEach(origin, (value, key) => {
|
|
|
let brands = [];
|
|
|
|
...
|
...
|
@@ -41,10 +37,18 @@ const handleBrandList = origin => { |
|
|
brands: brands
|
|
|
});
|
|
|
|
|
|
_.sortBy(dest.brandList, o => {
|
|
|
return o.index;
|
|
|
});
|
|
|
|
|
|
dest.indexList.push({
|
|
|
index: key,
|
|
|
name: key === '0~9' ? '0' : key
|
|
|
});
|
|
|
|
|
|
_.sortBy(dest.indexList, o => {
|
|
|
return o.index;
|
|
|
});
|
|
|
});
|
|
|
|
|
|
return dest;
|
...
|
...
|
|