Showing
1 changed file
with
9 additions
and
2 deletions
@@ -23,7 +23,7 @@ module.exports = function(useInRegister, useForBind, useForRelate) { | @@ -23,7 +23,7 @@ module.exports = function(useInRegister, useForBind, useForRelate) { | ||
23 | 23 | ||
24 | var urlMid = useInRegister ? 'reg' : 'back'; | 24 | var urlMid = useInRegister ? 'reg' : 'back'; |
25 | 25 | ||
26 | - // var isReg = parseInt($('#isReg').val()); | 26 | + var isReg = parseInt($('#isReg').val()); |
27 | 27 | ||
28 | function startBind() { | 28 | function startBind() { |
29 | $.ajax({ | 29 | $.ajax({ |
@@ -133,7 +133,14 @@ module.exports = function(useInRegister, useForBind, useForRelate) { | @@ -133,7 +133,14 @@ module.exports = function(useInRegister, useForBind, useForRelate) { | ||
133 | } | 133 | } |
134 | 134 | ||
135 | if (useForBind || useForRelate) { | 135 | if (useForBind || useForRelate) { |
136 | - startBind(); | 136 | + if (isReg) { |
137 | + startBind(); | ||
138 | + } else { | ||
139 | + location.href = '/passport/bind/password?phoneNum=' + | ||
140 | + phoneNum + '&areaCode=' + areaCode + '&openId=' + | ||
141 | + openId + '&sourceType=' + sourceType + '&nickname=' + nickname; | ||
142 | + } | ||
143 | + | ||
137 | } else { | 144 | } else { |
138 | startReg(); | 145 | startReg(); |
139 | } | 146 | } |
-
Please register or login to post a comment