...
|
...
|
@@ -78,8 +78,11 @@ const getCateListData = params => { |
|
|
let item = {};
|
|
|
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生活'};
|
|
|
let genderArr = {
|
|
|
MEN男士: '1,3',
|
|
|
WOMEN女士: '2,3',
|
|
|
LIFESTYLE生活: '1,2,3'
|
|
|
};
|
|
|
|
|
|
return brandApi.getCateListData(params).then(result => {
|
|
|
|
...
|
...
|
@@ -88,10 +91,7 @@ const getCateListData = params => { |
|
|
}
|
|
|
|
|
|
_.forEach(result.data, (category, categorykey) => {
|
|
|
if (categorykey === 'kids') {
|
|
|
return true;
|
|
|
}
|
|
|
oneClass = {name: nameArr[categorykey], ca: []};
|
|
|
oneClass = {name: categorykey, ca: []};
|
|
|
|
|
|
_.forEach(category, (cate) => {
|
|
|
item = {
|
...
|
...
|
|