...
|
...
|
@@ -17,7 +17,7 @@ $sc.click(function() { |
|
|
$.post('/passport/back/sendbackmobile', {
|
|
|
mobile: $('#mobile').val(),
|
|
|
area: $('#area').val(),
|
|
|
verifyCode: $('#captchaPic').val(),
|
|
|
verifyCode: $('#captchaPic').val()
|
|
|
}, function(jsonData) {
|
|
|
if (jsonData.code === 200) {
|
|
|
$errTip.hide();
|
...
|
...
|
@@ -71,17 +71,33 @@ itime = setInterval(function() { |
|
|
|
|
|
|
|
|
$('#captcha').keyup(function() {
|
|
|
var v = $.trim($(this).val());
|
|
|
|
|
|
if (v !== '') {
|
|
|
var v = $.trim($(this).val()),
|
|
|
that = this;
|
|
|
|
|
|
if (v.length === 4) {
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/passport/back/backmobile',
|
|
|
dataType: 'json',
|
|
|
data: {
|
|
|
verifyCode: $('#captcha').val(),
|
|
|
area: $('#area').val(),
|
|
|
mobile: $('#mobile').val()
|
|
|
},
|
|
|
success: function(res) {
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
//添加验证码正确验证
|
|
|
//$next.removeClass('disable').prop('disabled', false);
|
|
|
$next.removeClass('disable').removeAttr('disabled');
|
|
|
$errTip.addClass('hide');
|
|
|
$(that).removeClass('error');
|
|
|
} else {
|
|
|
|
|
|
//$next.addClass('disable').prop('disabled', true);
|
|
|
$next.addClass('disable').attr('disabled', true);
|
|
|
$errTip.removeClass('hide').find('em').text('验证码输入错误');
|
|
|
$(that).addClass('error');
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}).blur(function() {
|
|
|
var v = $.trim($(this).val());
|
...
|
...
|
@@ -90,10 +106,7 @@ $('#captcha').keyup(function() { |
|
|
|
|
|
//添加验证码正确验证
|
|
|
$(this).addClass('error');
|
|
|
$errTip.removeClass('hide');
|
|
|
} else {
|
|
|
$(this).removeClass('error');
|
|
|
$errTip.addClass('hide');
|
|
|
$errTip.removeClass('hide').text('请输入验证码');
|
|
|
}
|
|
|
}).focus(function() {
|
|
|
$(this).removeClass('error');
|
...
|
...
|
|