公共功能入口
登录方式
"form-group">
登录方式
tyle="display: none;" class="alert alert-danger" role="alert" id="unitLoginError1">
登录方式
下载中心
lace(/(\s|\u00A0)+$/,''); } //专办员编号 function unitOperBlur(){ var oper = $.trim($("#operCode").val()); if(!oper){ $("#unitLoginError").show(); $("#unitLoginError").text("单位账号不能为空"); return; } $("#unitLoginError").hide(); } //专办员登录密码 function unitOperPwdBlur(){ var operPassword = $.trim($("#operPassword").val()); if(!operPassword){ $("#unitLoginError").show(); $("#unitLoginError").text("密码必输"); return; } $("#unitLoginError").hide(); } //专办员验证码 function unitCheckCodeBlur(){ var checkCode = $.trim($("#operVerifyCode").val()); if(!checkCode || checkCode.length != 4){ $("#unitLoginError").show(); $("#unitLoginError").text("请输入4个字符的验证码"); return; } $("#unitLoginError").hide(); } //证书验证 function certListBlur(){ var cert = $("#certList").val(); if(!cert){ $("#unitLoginError").show(); $("#unitLoginError").text("请选择登录用的证书"); return; } $("#unitLoginError").hide(); } //电子钥匙验证 function keyPasswordBlur(){ var keyPwd = $.trim($("#keyPassword").val()); if(!keyPwd){ $("#unitLoginError").show(); $("#unitLoginError").text("请输入电子钥匙的密码"); return; } $("#unitLoginError").hide(); } function unitLoginTypeChange(event){ var loginType = event.target.value; if(loginType == "oper"){ $("#auth").removeClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#cert").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); } else if(loginType == "operCert") { $("#auth").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#cert").removeClass("hidden-lg hidden-xs hidden-sm hidden-md"); //reloadcert(); } }; function perLoginTypeChange(event){ var loginType = event.target.value; perFaceType = loginType; if(loginType == "perface"){ $("#perface").removeClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#person").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#auth1").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#auth").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); } else if(loginType == "person") { $("#perface").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#person").removeClass("hidden-lg hidden-xs hidden-sm hidden-md"); } }; //单位专办员用户登录 --> 衢州改成单位账号登录 function unitLogin(event){ event.preventDefault(); var loginType = $("#unitForm input[name='loginType']:checked").val(); //专办员登录 if(loginType == "oper"){ var oper = $.trim($("#operCode").val()); var operPassword = $.trim($("#operPassword").val()); var checkCode = $.trim($("#operVerifyCode").val()); if(!oper){ $("#unitLoginError").show(); $("#unitLoginError").text("单位账号不能为空"); return; } if(!operPassword){ $("#unitLoginError").show(); $("#unitLoginError").text("密码必输"); return; } if(!checkCode || checkCode.length != 4){ $("#unitLoginError").show(); $("#unitLoginError").text("请输入4个字符的验证码"); return; } /* if(!operPassword || operPassword.length<6||operPassword.length>30){ $('#unitLoginError').show(); $('#unitLoginError').text("密码必输,至少6个字符,最多30个字符"); return; } */ $('#unitLoginError').hide(); $("#unitForm").submit(); } else if(loginType == "operCert"){ var url = "https://ca.tseal.cn:443/olbh/CertLogin;jsessionid=3bb765cf-5a19-41b3-8d75-a45ef4946cdd"; // var url = "https://ca.tseal.cn:443/olbhtest/CertLogin;jsessionid=3bb765cf-5a19-41b3-8d75-a45ef4946cdd"; window.location.href = url; } } //开发商登陆2018010-25 //开发商登陆 function developersLogin(event){ event.preventDefault(); var loginType = $("#developersForm input[name='loginType']:checked").val(); //专办员登录 if(loginType == "developers"){ var oper = $.trim($("#developersCode").val()); var operPassword = $.trim($("#developersPassword").val()); var checkCode = $.trim($("#developersVerifyCode").val()); if(!oper){ $("#developersLoginError").show(); $("#developersLoginError").text("单位账号不能为空"); return; } if(!operPassword){ $("#developersLoginError").show(); $("#developersLoginError").text("密码必输"); return; } if(!checkCode || checkCode.length != 4){ $("#developersLoginError").show(); $("#developersLoginError").text("请输入4个字符的验证码"); return; } /* if(!operPassword || operPassword.length<6||operPassword.length>30){ $('#unitLoginError').show(); $('#unitLoginError').text("密码必输,至少6个字符,最多30个字符"); return; } */ $('#developersLoginError').hide(); $("#developersForm").submit(); } else if(loginType == "developersCert"){ var url = "https://ca.tseal.cn:443/olbh/KfsLogin;jsessionid=3bb765cf-5a19-41b3-8d75-a45ef4946cdd"; // var url = "https://ca.tseal.cn:443/olbh/CertLogin;jsessionid=3bb765cf-5a19-41b3-8d75-a45ef4946cdd"; window.location.href = url; } } //专办员编号 function developersOperBlur(){ var oper = $.trim($("#developersCode").val()); if(!oper){ $("#developersLoginError").show(); $("#developersLoginError").text("单位账号不能为空"); return; } $("#developersLoginError").hide(); } //专办员登录密码 function developersOperPwdBlur(){ var operPassword = $.trim($("#developersPassword").val()); if(!operPassword){ $("#developersLoginError").show(); $("#developersLoginError").text("密码必输"); return; } $("#developersLoginError").hide(); } //专办员验证码 function developersCheckCodeBlur(){ var checkCode = $.trim($("#developersVerifyCode").val()); if(!checkCode || checkCode.length != 4){ $("#developersLoginError").show(); $("#developersLoginError").text("请输入4个字符的验证码"); return; } $("#developersLoginError").hide(); } function developersLoginTypeChange(event){ var loginType = event.target.value; if(loginType == "developers"){ $("#auth1").removeClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#cert1").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); } else if(loginType == "developersCert") { $("#auth1").addClass("hidden-lg hidden-xs hidden-sm hidden-md"); $("#cert1").removeClass("hidden-lg hidden-xs hidden-sm hidden-md"); //reloadcert(); } }; //结束2018-10-25 //删除证书下来框里的所有内容 function delAllItems(list) { for (var i = list.options.length - 1; i >= 0; i--) { list.remove(i); } } //十六进制的ascII码转换成字符串 function AscToStr(asc){ tmp=asc.split(" "); tmp_str=""; for( i=2;i