userWait = 60; } else { $code.html('已发送(' + userWait + ')'); $code.addClass('wait'); userWait--; time_out = setTimeout(function() { userCodeClk(code) }, 1000); } } $(layer_type).on('blur', 'input', function(){ // 验证 var that = $(this) if(that.val() == ''){ switch (that.attr('name')) { case 'mobile': that.parent().find('.err').text('手机号不能为空!'); break; case 'password': that.parent().find('.err').text('密码不能为空!'); break; case 'code': that.parent().find('.err').text('验证码不能为空!'); break; default: that.parent().find('.err').text('所有项为必填项!'); break; } that.addClass('input-err') }else{ that.parent().find('.err').text('') that.removeClass('input-err') } if(that.val() != '' && that.attr('name') == 'mobile'){ if (!(/^[1][0-9]{10}$/.test(that.val()))) { that.parent().find('.err').text('手机格式不正确!'); that.addClass('input-err') }else{ that.parent().find('.err').text(''); that.removeClass('input-err') } } if(that.val() != '' && that.attr('name') == 'password'){ if (that.val().length < 6) { that.parent().find('.err').text('密码长度至少需要6个字符'); that.addClass('input-err') }else if (that.val().length > 16){ that.parent().find('.err').text('密码长度不能超过16个字符'); that.addClass('input-err') } else { that.parent().find('.err').text(''); that.removeClass('input-err') } } });

Sembrador Capital

投资公司: 1 家

投资事件: 1 起

进入一下轮: 1 家

联系我们 意见反馈

如需获取了解数据服务或需人工服务请微信扫描左侧二维码,联系注明“数据”。

企业
对接
联系
合作
在线
客服

扫码咨询在线客服

意见
反馈