Authored by 周少峰

nav and limit

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