...
|
...
|
@@ -50,15 +50,16 @@ module.exports = function(useInRegister) { |
|
|
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/passport/' + urlMid + '/sendPhone'
|
|
|
}).then(function (data) {
|
|
|
if (data.code === 200) {
|
|
|
$captchaTip.text('重发验证码 (60秒)').addClass('disable');
|
|
|
countDown();
|
|
|
} else {
|
|
|
url: '/passport/' + urlMid + '/sendPhone',
|
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
|
|
$captchaTip.text('重发验证码 (60秒)').addClass('disable');
|
|
|
countDown();
|
|
|
} else {
|
|
|
|
|
|
//验证码不正确,显示提示
|
|
|
showErrTip(data.message);
|
|
|
//验证码不正确,显示提示
|
|
|
showErrTip(data.message);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
@@ -73,14 +74,15 @@ module.exports = function(useInRegister) { |
|
|
url: '/passport/' + urlMid + '/verifycode',
|
|
|
data: {
|
|
|
verifyCode: trim($captcha.val())
|
|
|
}
|
|
|
}).then(function (data) {
|
|
|
if (data.code === 200) {
|
|
|
location.href = data.data;
|
|
|
} else {
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
|
|
location.href = data.data;
|
|
|
} else {
|
|
|
|
|
|
//验证码不正确,显示提示
|
|
|
showErrTip(data.message);
|
|
|
//验证码不正确,显示提示
|
|
|
showErrTip(data.message);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
|