Authored by 周少峰

students number

... ... @@ -62,8 +62,11 @@ exports.getStudentsData = (channel, req) => {
realData: {
sortItem: [{title: '学生权益介绍', href: 'stu-rights'}, {title: '我要验证身份', href: 'stu-identity'},
{title: '学生热门单品', href: 'stu-good'}, {title: '更多活动推荐', href: 'stu-activity'}]
{title: '学生热门单品', href: 'stu-good'}, {title: '更多活动推荐', href: 'stu-activity'}],
identityItem: {
sendCoin: 100,
stuNum: []
}
},
footerTop: true
... ... @@ -74,9 +77,9 @@ exports.getStudentsData = (channel, req) => {
Object.assign(responseData.realData, stuHandler.studentResource(result[1].data));
}
// if (result[2].code === 200) {
// }
if (result[2].code === 200) {
responseData.realData.identityItem.stuNum = stuHandler.studentsNum(result[2].data);
}
if (result[3].code === 200) {
Object.assign(responseData.realData, {proItem: stuHandler.stuProducts(result[3].data.product_list)});
... ... @@ -301,9 +304,10 @@ exports.verifyIdentity = (uid, params) => {
* @return Object 接口数据
*/
exports.verifyStudents = (uid, params) => {
let pageUrl = '/product/students?';
return studentsApi.verifyIdentity(uid, params.certNo, params.name, pageUrl).then(result => {
return studentsApi.verifyIdentity(uid, params.collegeName, params.educationDegree, params.enrollmentYear).
then(result => {
return result;
});
};
... ...