...
|
...
|
@@ -43,7 +43,7 @@ module.exports = function(useInRegister, useForBind) { |
|
|
location.href = res.data.refer;
|
|
|
}, 2000);
|
|
|
} else {
|
|
|
tip.show(res.message);
|
|
|
tip.show(res.message);
|
|
|
}
|
|
|
},
|
|
|
error: function(err) {
|
...
|
...
|
@@ -117,21 +117,23 @@ module.exports = function(useInRegister, useForBind) { |
|
|
token: $('#token').val()
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
|
|
if (useForBind) {
|
|
|
if (isReg) {
|
|
|
startBind();
|
|
|
} else {
|
|
|
location.href = '/passport/bind/password?phoneNum=' + phoneNum + '&areaCode=' + areaCode + '&openId=' + openId + '&sourceType=' + sourceType + '&nickname=' + nickname;
|
|
|
}
|
|
|
} else {
|
|
|
location.href = data.data;
|
|
|
if (data.code === 200) {
|
|
|
if (useForBind) {
|
|
|
if (isReg) {
|
|
|
startBind();
|
|
|
} else {
|
|
|
location.href = '/passport/bind/password?phoneNum=' +
|
|
|
phoneNum + '&areaCode=' + areaCode + '&openId=' +
|
|
|
openId + '&sourceType=' + sourceType + '&nickname=' + nickname;
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
//验证码不正确,显示提示
|
|
|
showErrTip(data.message);
|
|
|
location.href = data.data;
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
//验证码不正确,显示提示
|
|
|
showErrTip(data.message);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
});
|
...
|
...
|
|