Showing
2 changed files
with
5 additions
and
6 deletions
@@ -86,7 +86,7 @@ const getNewReportFloorData = data => { | @@ -86,7 +86,7 @@ const getNewReportFloorData = data => { | ||
86 | return list; | 86 | return list; |
87 | }; | 87 | }; |
88 | 88 | ||
89 | -const requestContent = (type) => { | 89 | +const requestContent = type => { |
90 | let data = sign.apiSign({ | 90 | let data = sign.apiSign({ |
91 | /* eslint-disable */ | 91 | /* eslint-disable */ |
92 | client_type: 'web', | 92 | client_type: 'web', |
@@ -100,8 +100,8 @@ const requestContent = (type) => { | @@ -100,8 +100,8 @@ const requestContent = (type) => { | ||
100 | return serviceApi.get('/operations/api/v5/resource/home', data); | 100 | return serviceApi.get('/operations/api/v5/resource/home', data); |
101 | }; | 101 | }; |
102 | 102 | ||
103 | - | ||
104 | -exports.getContent = (type) => { | 103 | +// boys, girls, kids, lifestyle |
104 | +exports.getContent = type => { | ||
105 | return Promise.all([headerModel.requestHeaderData(), requestContent(type)]).then(res => { | 105 | return Promise.all([headerModel.requestHeaderData(), requestContent(type)]).then(res => { |
106 | let headerData = res[0].data, | 106 | let headerData = res[0].data, |
107 | contentData = res[1].data; | 107 | contentData = res[1].data; |
@@ -109,7 +109,7 @@ exports.getContent = (type) => { | @@ -109,7 +109,7 @@ exports.getContent = (type) => { | ||
109 | let data = {}; | 109 | let data = {}; |
110 | 110 | ||
111 | 111 | ||
112 | - data = headerModel.setHeaderData(headerData, 'boys'); | 112 | + data = headerModel.setHeaderData(headerData, type); |
113 | data.module = 'channel'; | 113 | data.module = 'channel'; |
114 | data.page = 'boys'; | 114 | data.page = 'boys'; |
115 | data.footerTop = true; | 115 | data.footerTop = true; |
@@ -126,7 +126,6 @@ exports.getContent = (type) => { | @@ -126,7 +126,6 @@ exports.getContent = (type) => { | ||
126 | }; | 126 | }; |
127 | 127 | ||
128 | 128 | ||
129 | - | ||
130 | return data; | 129 | return data; |
131 | }); | 130 | }); |
132 | }; | 131 | }; |
-
Please register or login to post a comment