...
|
...
|
@@ -8,7 +8,7 @@ var $ = require('yoho-jquery'), |
|
|
regx = require('../common/mail-phone-regx'),
|
|
|
EventProxy = require('yoho-eventproxy');
|
|
|
|
|
|
var emailAc = require('../common/ac-email'); // 邮箱自动完成
|
|
|
// var emailAc = require('../common/ac-email'); // 邮箱自动完成
|
|
|
|
|
|
var $regionCodeText = $('#country-code'),
|
|
|
$phoneNumInput = $('.phone-num'),
|
...
|
...
|
@@ -125,7 +125,7 @@ function validatePhoneNumLocal() { |
|
|
/**
|
|
|
* 整合本地和异步验证
|
|
|
*/
|
|
|
function validatePhoneNum() {
|
|
|
function validatePhoneNum() {//eslint-disable-line
|
|
|
function validate() {
|
|
|
var defer = $.Deferred(); //eslint-disable-line
|
|
|
|
...
|
...
|
@@ -227,9 +227,9 @@ function validateImgCaptcha() { |
|
|
/**
|
|
|
* 邮箱自动补全
|
|
|
*/
|
|
|
emailAc($phoneNumInput, function() {
|
|
|
validatePhoneNum();
|
|
|
});
|
|
|
// emailAc($phoneNumInput, function() {
|
|
|
// validatePhoneNum();
|
|
|
// });
|
|
|
|
|
|
$imgCaptchaInput.attr('maxlength', 4);
|
|
|
|
...
|
...
|
@@ -237,6 +237,7 @@ $imgCaptchaInput.attr('maxlength', 4); |
|
|
$('input').placeholder();
|
|
|
|
|
|
exports.init = function() {
|
|
|
$nextBtn.removeClass('disable');
|
|
|
|
|
|
// 监听事件 phone-num 和 captcha-img
|
|
|
ep.tail('phone-num', 'captcha-img', function(phoneAuth, imgAuth) {
|
...
|
...
|
@@ -271,13 +272,13 @@ exports.init = function() { |
|
|
$imgCaptchaInput.addClass('focus');
|
|
|
});
|
|
|
|
|
|
$phoneNumInput.on('focus', function() {
|
|
|
hideTip($phoneNumInput);
|
|
|
$('.phone').addClass('focus');
|
|
|
}).on('blur', function() {
|
|
|
$phoneNumInput.removeClass('focus');
|
|
|
$('.phone').removeClass('focus');
|
|
|
});
|
|
|
// $phoneNumInput.on('focus', function() {
|
|
|
// hideTip($phoneNumInput);
|
|
|
// $('.phone').addClass('focus');
|
|
|
// }).on('blur', function() {
|
|
|
// $phoneNumInput.removeClass('focus');
|
|
|
// $('.phone').removeClass('focus');
|
|
|
// });
|
|
|
|
|
|
$nextBtn.on('click', function() {
|
|
|
var urlPhone = '/passport/back/mobile',
|
...
|
...
|
|