Showing
2 changed files
with
9 additions
and
3 deletions
@@ -58,6 +58,8 @@ const bind = { | @@ -58,6 +58,8 @@ const bind = { | ||
58 | let isReg = req.query.isReg; | 58 | let isReg = req.query.isReg; |
59 | let phoneNum = req.query.phoneNum; | 59 | let phoneNum = req.query.phoneNum; |
60 | 60 | ||
61 | + console.log(typeof isReg); | ||
62 | + | ||
61 | res.render('bind/code', { | 63 | res.render('bind/code', { |
62 | backUrl: helpers.urlFormat('passport/login'), | 64 | backUrl: helpers.urlFormat('passport/login'), |
63 | showHeaderImg: true, | 65 | showHeaderImg: true, |
@@ -67,10 +69,10 @@ const bind = { | @@ -67,10 +69,10 @@ const bind = { | ||
67 | isReg: isReg, | 69 | isReg: isReg, |
68 | areaCode: areaCode, | 70 | areaCode: areaCode, |
69 | phoneNum: phoneNum, | 71 | phoneNum: phoneNum, |
70 | - relateCode: isReg === 3, | ||
71 | - bindCode: isReg !== 3, | 72 | + relateCode: isReg === '3', |
73 | + bindCode: isReg !== '3', | ||
72 | module: 'passport', | 74 | module: 'passport', |
73 | - page: 'bind-code', | 75 | + page: isReg === '3' ? 'relate' : 'bind-code', |
74 | title: '验证手机' | 76 | title: '验证手机' |
75 | }); | 77 | }); |
76 | }, | 78 | }, |
public/js/passport/relate.page.js
0 → 100644
-
Please register or login to post a comment