Authored by lore-w

注册获取验证码修改 code review by liuyue

... ... @@ -401,9 +401,9 @@ $registerPage.find('.va').keyup(function() {
}
if (statusLen === 4 && $('#agree-terms').is(':checked')) {
$registerBtn.removeClass('disable');
$registerBtn.removeClass('disable').removeAttr('disabled');
} else {
$registerBtn.addClass('disable');
$registerBtn.addClass('disable').attr('disabled', 'true');
}
// 图形验证通过时,发送短信按钮可点击
... ... @@ -456,4 +456,22 @@ $sendCaptcha.click(function() {
}
$sendCaptcha.addClass('disable').val(timeResidue-- + '秒可重新发送');
}, 1000);
});
//form表单提交
$registerBtn.click(function() {
if ($(this).hasClass('disable')) {
return;
} else {
('#register-form').submit();
}
});
$('.change-captcha').click(function() {
var time = new Date(),
$captchaImg = $('.captcha-img'),
captchaImgSrc = $captchaImg.attr('src').split('?')[0];
$captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime());
});
\ No newline at end of file
... ...