Authored by biao

update

@@ -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 };
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * 系统配置 2 * 系统配置
3 * 3 *
4 * @author hbomb qiqi.zhou@yoho.cn 4 * @author hbomb qiqi.zhou@yoho.cn
5 -z* @date 2016/05/06 5 + * @date 2016/05/06
6 */ 6 */
7 7
8 8