|
@@ -140,7 +140,10 @@ Register.enterpriseUserRegister = function() {
|
|
|
regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*$/,
|
|
|
message: "开户银行网点格式不正确"
|
|
|
}}});
|
|
|
- $('#ep_form').bootstrapValidator("addField","bank",{validators: {notEmpty: {message: '开户银行不能为空'}}});
|
|
|
+ $('#ep_form').bootstrapValidator("addField","bank",{validators: {notEmpty: {message: '开户银行不能为空'},regexp: {
|
|
|
+ regexp: /^[\u4e00-\u9fa5]*$/,
|
|
|
+ message: "开户银行必须为中文"
|
|
|
+ }}});
|
|
|
var prefix = '企业';
|
|
|
}else{
|
|
|
$("#tab-4 .form-control").removeAttr("disabled");
|
|
@@ -309,17 +312,26 @@ Register.enterpriseUserRegister = function() {
|
|
|
Feng.info("请上传营业执照照片!");
|
|
|
return;
|
|
|
}
|
|
|
+ if(!Feng.chkFileInvalid(document.getElementById("imgurl").files[0],10,10,["image/jpeg","image/gif","image/png","image/jpg","application/pdf"],"营业执照只允许上传PDF或图片")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
var xx=document.getElementById("bankImg").value;
|
|
|
if(xx==""){
|
|
|
Feng.info("请上传开户银行许可证!");
|
|
|
return;
|
|
|
}
|
|
|
+ if(!Feng.chkFileInvalid(document.getElementById("bankImg").files[0],10,10,["image/jpeg","image/gif","image/png","image/jpg","application/pdf"],"开户银行许可证只允许上传PDF或图片")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
var xxx=document.getElementById("domainImg").value;
|
|
|
if(xxx=="" && type == 1){
|
|
|
Feng.info("请上传行业领域佐证材料!");
|
|
|
return;
|
|
|
}
|
|
|
+ if(!Feng.chkFileInvalid(document.getElementById("domainImg").files[0],10,10,["image/jpeg","image/gif","image/png","image/jpg","application/pdf"],"行业领域佐证材料只允许上传PDF或图片")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
}else{
|
|
|
var x=document.getElementById("sy_imgurl").value;
|
|
@@ -327,6 +339,9 @@ Register.enterpriseUserRegister = function() {
|
|
|
Feng.info("请上传法人证或批文!");
|
|
|
return;
|
|
|
}
|
|
|
+ if(!Feng.chkFileInvalid(document.getElementById("sy_imgurl").files[0],10,10,["image/jpeg","image/gif","image/png","image/jpg","application/pdf"],"法人证或批文只允许上传PDF或图片")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -359,6 +374,9 @@ Register.enterpriseUserRegister = function() {
|
|
|
Feng.info("请上传人才联络员信息备案表!");
|
|
|
return;
|
|
|
}
|
|
|
+ if(!Feng.chkFileInvalid(document.getElementById("beian").files[0],10,10,["image/jpeg","image/gif","image/png","image/jpg","application/pdf"],"人才联络员信息备案表只允许上传PDF或图片")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(!/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/.test(ephone)){
|
|
|
Feng.info(prefix+"电话格式不合法!");
|
|
|
return;
|