Showing
1 changed file
with
11 additions
and
7 deletions
@@ -62,8 +62,11 @@ exports.getStudentsData = (channel, req) => { | @@ -62,8 +62,11 @@ exports.getStudentsData = (channel, req) => { | ||
62 | 62 | ||
63 | realData: { | 63 | realData: { |
64 | sortItem: [{title: '学生权益介绍', href: 'stu-rights'}, {title: '我要验证身份', href: 'stu-identity'}, | 64 | sortItem: [{title: '学生权益介绍', href: 'stu-rights'}, {title: '我要验证身份', href: 'stu-identity'}, |
65 | - {title: '学生热门单品', href: 'stu-good'}, {title: '更多活动推荐', href: 'stu-activity'}] | ||
66 | - | 65 | + {title: '学生热门单品', href: 'stu-good'}, {title: '更多活动推荐', href: 'stu-activity'}], |
66 | + identityItem: { | ||
67 | + sendCoin: 100, | ||
68 | + stuNum: [] | ||
69 | + } | ||
67 | }, | 70 | }, |
68 | 71 | ||
69 | footerTop: true | 72 | footerTop: true |
@@ -74,9 +77,9 @@ exports.getStudentsData = (channel, req) => { | @@ -74,9 +77,9 @@ exports.getStudentsData = (channel, req) => { | ||
74 | Object.assign(responseData.realData, stuHandler.studentResource(result[1].data)); | 77 | Object.assign(responseData.realData, stuHandler.studentResource(result[1].data)); |
75 | } | 78 | } |
76 | 79 | ||
77 | - // if (result[2].code === 200) { | ||
78 | - | ||
79 | - // } | 80 | + if (result[2].code === 200) { |
81 | + responseData.realData.identityItem.stuNum = stuHandler.studentsNum(result[2].data); | ||
82 | + } | ||
80 | 83 | ||
81 | if (result[3].code === 200) { | 84 | if (result[3].code === 200) { |
82 | Object.assign(responseData.realData, {proItem: stuHandler.stuProducts(result[3].data.product_list)}); | 85 | Object.assign(responseData.realData, {proItem: stuHandler.stuProducts(result[3].data.product_list)}); |
@@ -301,9 +304,10 @@ exports.verifyIdentity = (uid, params) => { | @@ -301,9 +304,10 @@ exports.verifyIdentity = (uid, params) => { | ||
301 | * @return Object 接口数据 | 304 | * @return Object 接口数据 |
302 | */ | 305 | */ |
303 | exports.verifyStudents = (uid, params) => { | 306 | exports.verifyStudents = (uid, params) => { |
304 | - let pageUrl = '/product/students?'; | ||
305 | 307 | ||
306 | - return studentsApi.verifyIdentity(uid, params.certNo, params.name, pageUrl).then(result => { | 308 | + |
309 | + return studentsApi.verifyIdentity(uid, params.collegeName, params.educationDegree, params.enrollmentYear). | ||
310 | + then(result => { | ||
307 | return result; | 311 | return result; |
308 | }); | 312 | }); |
309 | }; | 313 | }; |
-
Please register or login to post a comment