...
|
...
|
@@ -79,6 +79,7 @@ const getCateListData = params => { |
|
|
let oneClass = [];
|
|
|
let subitem = {};
|
|
|
let genderArr = {boy: '1,3', girl: '2,3', kids: '1,2,3', lifestyle: '1,2,3'};
|
|
|
let nameArr = {boy: 'MEN男士', girl: 'WOMEN女士', kids: 'TIDE潮童', lifestyle: 'LIFESTYLE生活'};
|
|
|
|
|
|
return brandApi.getCateListData(params).then(result => {
|
|
|
|
...
|
...
|
@@ -87,7 +88,10 @@ const getCateListData = params => { |
|
|
}
|
|
|
|
|
|
_.forEach(result.data, (category, categorykey) => {
|
|
|
oneClass = {name: categorykey, ca: []};
|
|
|
if (categorykey === 'kids') {
|
|
|
return true;
|
|
|
}
|
|
|
oneClass = {name: nameArr[categorykey], ca: []};
|
|
|
|
|
|
_.forEach(category, (cate) => {
|
|
|
item = {
|
...
|
...
|
|