...
|
...
|
@@ -21,7 +21,8 @@ const headerModel = require('../../../doraemon/models/header'); |
|
|
const serviceApi = global.yoho.ServiceAPI;
|
|
|
|
|
|
// 学生营销资源码
|
|
|
const studentsCode = '989396a17443bf61e3e269702e51ef04'; // h5 a83b7d55324fb65f96c1f85a3387ebd8
|
|
|
// const studentsCode = '989396a17443bf61e3e269702e51ef04'; // h5 a83b7d55324fb65f96c1f85a3387ebd8
|
|
|
const studentsCode = 'a83b7d55324fb65f96c1f85a3387ebd8'; // h5 a83b7d55324fb65f96c1f85a3387ebd8
|
|
|
|
|
|
/**
|
|
|
* 获取学生营销页面数据
|
...
|
...
|
@@ -39,12 +40,19 @@ exports.getStudentsData = (channel) => { |
|
|
|
|
|
// 头部数据
|
|
|
headerData: result[0],
|
|
|
|
|
|
realData: {
|
|
|
sortItem: [{title: '学生权益介绍', href: 'stu-rights'}, {title: '我要验证身份', href: 'stu-identity'},
|
|
|
{title: '学生热门单品', href: 'stu-good'}, {title: '更多活动推荐', href: 'stu-activity'}]
|
|
|
|
|
|
},
|
|
|
|
|
|
footerTop: true
|
|
|
};
|
|
|
|
|
|
// 资源位数据
|
|
|
if (result[1].code === 200) {
|
|
|
Object.assign(responseData, stuHandler.studentResource(result[1].data));
|
|
|
Object.assign(responseData.realData, stuHandler.studentResource(result[1].data));
|
|
|
}
|
|
|
return responseData;
|
|
|
});
|
...
|
...
|
@@ -183,3 +191,14 @@ exports.getSchoolList = (areaCode) => { |
|
|
return result;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 学历层次
|
|
|
* @params areaCode int 地区码
|
|
|
* @return Object 接口数据
|
|
|
*/
|
|
|
exports.getEduLevel = () => {
|
|
|
return studentsApi.getEduLevelList().then(result => {
|
|
|
return result;
|
|
|
});
|
|
|
}; |
...
|
...
|
|