...
|
...
|
@@ -38,31 +38,6 @@ function enableBtn() { |
|
|
}
|
|
|
}
|
|
|
|
|
|
function authcode() {
|
|
|
return $.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/passport/back/authcode',
|
|
|
data: {
|
|
|
verifyCode: captcha.getResults(),
|
|
|
phoneNum: $phoneNum.val(),
|
|
|
area: $cr.val()
|
|
|
}
|
|
|
|
|
|
}).then(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
$('#captcha-value').val(captcha.getResults());
|
|
|
return $.Deferred().resolve().promise(); //eslint-disable-line
|
|
|
} else if (data.code === 402) {
|
|
|
$accErr.removeClass('hide').find('em').text('该账号不存在');
|
|
|
$phoneNum.addClass('error');
|
|
|
return $.Deferred().reject().promise();//eslint-disable-line
|
|
|
} else if (data.code === 400) {
|
|
|
captcha.showTip();
|
|
|
return $.Deferred().reject().promise();//eslint-disable-line
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function vaPn(v) {
|
|
|
var pass = true,
|
|
|
errTxt = '';
|
...
|
...
|
@@ -168,14 +143,10 @@ $('#find-btn').click(function(e) { |
|
|
$('#find-form').attr('action', '/passport/back/mobile');
|
|
|
}
|
|
|
|
|
|
if ($(this).hasClass('disable')) {
|
|
|
return;
|
|
|
}
|
|
|
$('#captcha-value').val(captcha.getResults());
|
|
|
|
|
|
if (hasPh) {
|
|
|
authcode().then(function() {
|
|
|
$('#back-form').submit();
|
|
|
});
|
|
|
$('#back-form').submit();
|
|
|
}
|
|
|
|
|
|
e.preventDefault();
|
...
|
...
|
|