Authored by 周少峰

nav and limit

@@ -58,10 +58,6 @@ exports.getStudentsData = (channel, req) => { @@ -58,10 +58,6 @@ exports.getStudentsData = (channel, req) => {
58 let responseData = { 58 let responseData = {
59 module: 'product', 59 module: 'product',
60 page: 'students', 60 page: 'students',
61 -  
62 - // 头部数据  
63 - headerData: result[0],  
64 -  
65 realData: { 61 realData: {
66 sortItem: [{title: '学生权益介绍', href: 'stu-rights'}, {title: '我要验证身份', href: 'stu-identity'}, 62 sortItem: [{title: '学生权益介绍', href: 'stu-rights'}, {title: '我要验证身份', href: 'stu-identity'},
67 {title: '学生热门单品', href: 'stu-good'}, {title: '更多活动推荐', href: 'stu-activity'}], 63 {title: '学生热门单品', href: 'stu-good'}, {title: '更多活动推荐', href: 'stu-activity'}],
@@ -73,6 +69,9 @@ exports.getStudentsData = (channel, req) => { @@ -73,6 +69,9 @@ exports.getStudentsData = (channel, req) => {
73 footerTop: true 69 footerTop: true
74 }; 70 };
75 71
  72 + // 头部数据
  73 + Object.assign(responseData, result[0]);
  74 +
76 // 资源位数据 75 // 资源位数据
77 if (result[1].code === 200) { 76 if (result[1].code === 200) {
78 Object.assign(responseData.realData, stuHandler.studentResource(result[1].data)); 77 Object.assign(responseData.realData, stuHandler.studentResource(result[1].data));