Authored by 郭成尧

Merge branch 'feature/brand' of git.yoho.cn:fe/yohoblk-wap into feature/brand

@@ -78,8 +78,11 @@ const getCateListData = params => { @@ -78,8 +78,11 @@ const getCateListData = params => {
78 let item = {}; 78 let item = {};
79 let oneClass = []; 79 let oneClass = [];
80 let subitem = {}; 80 let subitem = {};
81 - let genderArr = {boy: '1,3', girl: '2,3', kids: '1,2,3', lifestyle: '1,2,3'};  
82 - let nameArr = {boy: 'MEN男士', girl: 'WOMEN女士', kids: 'TIDE潮童', lifestyle: 'LIFESTYLE生活'}; 81 + let genderArr = {
  82 + MEN男士: '1,3',
  83 + WOMEN女士: '2,3',
  84 + LIFESTYLE生活: '1,2,3'
  85 + };
83 86
84 return brandApi.getCateListData(params).then(result => { 87 return brandApi.getCateListData(params).then(result => {
85 88
@@ -88,10 +91,7 @@ const getCateListData = params => { @@ -88,10 +91,7 @@ const getCateListData = params => {
88 } 91 }
89 92
90 _.forEach(result.data, (category, categorykey) => { 93 _.forEach(result.data, (category, categorykey) => {
91 - if (categorykey === 'kids') {  
92 - return true;  
93 - }  
94 - oneClass = {name: nameArr[categorykey], ca: []}; 94 + oneClass = {name: categorykey, ca: []};
95 95
96 _.forEach(category, (cate) => { 96 _.forEach(category, (cate) => {
97 item = { 97 item = {