Authored by htoooth

移除邮箱密码找回。

... ... @@ -18,8 +18,7 @@ var $regionCodeText = $('#country-code'),
$nextBtn = $('#find-btn'),
$form = $('#back-form');
var emailRegx = regx.emailRegx,
phoneRegx = regx.phoneRegx;
var phoneRegx = regx.phoneRegx;
var ep = new EventProxy();
... ... @@ -96,7 +95,6 @@ function validatePhoneNumLocal() {
if (val !== '') {
if (/^[0-9]+$/.test(val)) {
// 这里只做中国区验证
if ($regionCodeText.text() === '+86') {
if (val.length === 11 && phoneRegx['+86'].test(val)) {
... ... @@ -109,12 +107,8 @@ function validatePhoneNumLocal() {
return true;
} else {
if (emailRegx.test(val)) {
return true;
} else {
errTip($phoneNumInput, '邮箱格式不正确,请重新输入');
return false;
}
errTip($phoneNumInput, '手机号码不正确,请重新输入');
return false;
}
} else {
errTip($phoneNumInput, '请输入帐号');
... ... @@ -224,13 +218,6 @@ function validateImgCaptcha() {
});
}
/**
* 邮箱自动补全
*/
emailAc($phoneNumInput, function() {
validatePhoneNum();
});
$imgCaptchaInput.attr('maxlength', 4);
// IE8 placeholder
... ... @@ -277,6 +264,7 @@ exports.init = function() {
}).on('blur', function() {
$phoneNumInput.removeClass('focus');
$('.phone').removeClass('focus');
validatePhoneNum();
});
$nextBtn.on('click', function() {
... ...