|
@@ -43,7 +43,7 @@ module.exports = function(useInRegister, useForBind) { |
|
@@ -43,7 +43,7 @@ module.exports = function(useInRegister, useForBind) { |
43
|
location.href = res.data.refer;
|
43
|
location.href = res.data.refer;
|
44
|
}, 2000);
|
44
|
}, 2000);
|
45
|
} else {
|
45
|
} else {
|
46
|
- tip.show(res.message);
|
46
|
+ tip.show(res.message);
|
47
|
}
|
47
|
}
|
48
|
},
|
48
|
},
|
49
|
error: function(err) {
|
49
|
error: function(err) {
|
|
@@ -117,21 +117,23 @@ module.exports = function(useInRegister, useForBind) { |
|
@@ -117,21 +117,23 @@ module.exports = function(useInRegister, useForBind) { |
117
|
token: $('#token').val()
|
117
|
token: $('#token').val()
|
118
|
},
|
118
|
},
|
119
|
success: function(data) {
|
119
|
success: function(data) {
|
120
|
- if (data.code === 200) {
|
|
|
121
|
- if (useForBind) {
|
|
|
122
|
- if (isReg) {
|
|
|
123
|
- startBind();
|
|
|
124
|
- } else {
|
|
|
125
|
- location.href = '/passport/bind/password?phoneNum=' + phoneNum + '&areaCode=' + areaCode + '&openId=' + openId + '&sourceType=' + sourceType + '&nickname=' + nickname;
|
|
|
126
|
- }
|
|
|
127
|
- } else {
|
|
|
128
|
- location.href = data.data;
|
120
|
+ if (data.code === 200) {
|
|
|
121
|
+ if (useForBind) {
|
|
|
122
|
+ if (isReg) {
|
|
|
123
|
+ startBind();
|
|
|
124
|
+ } else {
|
|
|
125
|
+ location.href = '/passport/bind/password?phoneNum=' +
|
|
|
126
|
+ phoneNum + '&areaCode=' + areaCode + '&openId=' +
|
|
|
127
|
+ openId + '&sourceType=' + sourceType + '&nickname=' + nickname;
|
129
|
}
|
128
|
}
|
130
|
} else {
|
129
|
} else {
|
131
|
-
|
|
|
132
|
- //验证码不正确,显示提示
|
|
|
133
|
- showErrTip(data.message);
|
130
|
+ location.href = data.data;
|
134
|
}
|
131
|
}
|
|
|
132
|
+ } else {
|
|
|
133
|
+
|
|
|
134
|
+ //验证码不正确,显示提示
|
|
|
135
|
+ showErrTip(data.message);
|
|
|
136
|
+ }
|
135
|
|
137
|
|
136
|
}
|
138
|
}
|
137
|
});
|
139
|
});
|