...
|
...
|
@@ -163,6 +163,7 @@ ep.tail('phoneNum', 'img-captcha', function(phoneAuth, imgAuth) { |
|
|
$phoneNumInput.on('blur', function() {
|
|
|
var length = $phoneNumInput.val().length;
|
|
|
|
|
|
$('#phone').removeClass('focus');
|
|
|
if (length === 0) {
|
|
|
errTip($phoneNumInput, '请输入手机号码');
|
|
|
ep.emit('phoneNum', false);
|
...
|
...
|
@@ -191,11 +192,14 @@ $phoneNumInput.on('blur', function() { |
|
|
}
|
|
|
}).on('focus', function() {
|
|
|
hideTip($phoneNumInput);
|
|
|
$('#phone').addClass('focus');
|
|
|
});
|
|
|
|
|
|
$imgCaptchaInput.on('blur', function() {
|
|
|
var length = $imgCaptchaInput.val().length;
|
|
|
|
|
|
$imgCaptchaInput.removeClass('focus');
|
|
|
|
|
|
switch (length) {
|
|
|
case 4 :
|
|
|
break;
|
...
|
...
|
@@ -221,6 +225,7 @@ $imgCaptchaInput.on('blur', function() { |
|
|
});
|
|
|
}).on('focus', function() {
|
|
|
hideTip($imgCaptchaInput);
|
|
|
$imgCaptchaInput.addClass('focus');
|
|
|
});
|
|
|
|
|
|
$imgCaptchaCtrl.on('click', function() {
|
...
|
...
|
@@ -230,6 +235,8 @@ $imgCaptchaCtrl.on('click', function() { |
|
|
$smsCaptchaInput.on('blur', function() {
|
|
|
var length = $smsCaptchaInput.val().length;
|
|
|
|
|
|
$smsCaptchaInput.removeClass('focus');
|
|
|
|
|
|
switch (length) {
|
|
|
case 4:
|
|
|
break;
|
...
|
...
|
@@ -253,6 +260,7 @@ $smsCaptchaInput.on('blur', function() { |
|
|
});
|
|
|
}).on('focus', function() {
|
|
|
hideTip($smsCaptchaInput);
|
|
|
$smsCaptchaInput.addClass('focus');
|
|
|
});
|
|
|
|
|
|
$smsCaptchaCtrl.on('click', function() {
|
...
|
...
|
|