//检测是否登陆,已经登录的跳转到问题添加页 function IsLogin() { var havlogin = document.getElementById("isLogin").value; if (havlogin == "0") { //登录响应 var callback_url = window.location.href; if (typeof (loginDlg) != "undefined") { loginDlg.poplogin(callback_url); } } else { var dutyPersonID = document.getElementById("hdPersonGuid").value; if (dutyPersonID != "") { //window.top.location = 'SubmitQue.aspx?PersonGuid=' + escape(dutyPersonID); var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); window.open('SubmitQue.aspx?PersonGuid=' + dutyPersonID); } else { alert("请选择收信部门!"); OnLoadTipsUrl(); } } } //匿名访问 function NMLoginOn() { var dutyPersonID = document.getElementById("hdPersonGuid").value; if (dutyPersonID != "") { //window.top.location = 'SubmitQue.aspx?PersonGuid=' + escape(dutyPersonID); window.open('SubmitQue.aspx?PersonGuid=' + dutyPersonID); var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); } else { alert("请选择收信部门!"); OnLoadTipsUrl(); } } //检测是否登陆 function IsCheckLogin() { var havlogin = document.getElementById("isLogin").value; if (havlogin == "0") { //登录响应 var callback_url = window.location.href; if (typeof (loginDlg) != "undefined") { loginDlg.poplogin(callback_url); } } //var havlogin = document.getElementById("isLogin").value; //if (havlogin == "0") { // window.top.location.href = "http://login.qingdao.gov.cn/auth/sso/login?utype=0&client_id=76RFPXF9C&goto=aHR0cCUzQS8vd3d3LnFpbmdkYW8uZ292LmNuL24xNzIv&logType=2"; //} } //注册按钮触发事件 function Register() { var havlogin = document.getElementById("isLogin").value; if (havlogin == "0") { logShowConfirm(); } } //登陆按钮触发事件 function Login() { var controlIDCss = $(".ControlIDCSS"); var ControlID = ""; if (controlIDCss.length > 0) { ControlID = controlIDCss[0].value; } $("#H_username").val($("#L_username").val()); $("#H_pwd").val($("#L_pwd").val()); $("#loginBtn").click(); } //检测是否已登录 function DeURL() { //var havlogin = document.getElementById("isLogin").value; //var hdIsSub = document.getElementById("hdIsSub").value; //if (havlogin == "0" && hdIsSub == "0") { // logShowConfirm(); //} var havlogin = document.getElementById("isLogin").value; //var hdIsSub = document.getElementById("hdIsSub").value; if (havlogin == "0") { alert("请登录后再开始写信!"); } else { window.open("GovWebSite/SubmitQue.aspx"); } } //登陆或匿名 function logShowConfirm() { var str = ""; str += "
"; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += "
企业名称:"; str += " "; str += " "; str += " "; str += "
统一社会信用代码:"; str += " "; str += " "; str += " "; str += "
法定代表人姓名:"; str += " "; str += " "; str += " "; str += "
法定代表人身份证号:"; str += " "; str += " "; str += " "; str += "
账    号:"; str += " "; str += " "; str += " 由字母和数字组合,8-16位组成"; str += "
密    码:"; str += " "; str += " "; str += " 密码至少由6位字母、数字组合"; str += "
确认密码:"; str += " "; str += " "; str += " "; str += "
"; str += "
"; str += "
"; str += " "; str += " "; str += " "; str += " "; str += "
"; str += " "; str += " "; str += "
"; str += "
"; var pop = new Popup({ contentType: 3, isReloadOnClose: false, width: 600, height: 370 }); pop.setContent("title", "注册"); pop.setContent("confirmCon", str); pop.setContent("callBack", loginShowCallBack); pop.setContent("parameter", { id: "divCall", str: "点击确定后显示的字符串", obj: pop }); pop.build(); pop.show(); } //登录弹框 function logShowLogin() { var havlogin = document.getElementById("isLogin").value; if (havlogin == "0") { var str = ""; str += "
"; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += "
"; str += " "; str += "
用户名:"; str += " "; str += " "; str += "
密  码:"; str += " "; str += " "; str += "
"; str += " "; str += " "; str += " "; str += " "; str += " "; str += "
"; str += " "; str += " "; str += " "; str += " "; str += " "; str += "
"; str += "
"; var pop = new Popup({ contentType: 3, isReloadOnClose: false, width: 220, height: 220 }); pop.setContent("title", ""); pop.setContent("confirmCon", str); pop.setContent("callBack", logShowLoginCallBack); pop.setContent("parameter", { id: "divCall", str: "点击确定后显示的字符串", obj: pop }); pop.build(); pop.show(); } } //登陆或匿名 //function logShowConfirm() { // var str = ""; // str += "
"; // str += "
"; // str += " "; // str += "
"; // str += "
"; // str += "

1、写信发言时您不必再输入匿名信息,也无需记录烦长的查询码!
"; // str += " 2、通过“用户中心”,您可以方便地对历史参与信息进行查询、评价和管理。"; // str += " 还有其它陆续推出的便民服务,快来试一试吧!

"; // str += "
"; // str += "
"; // str += " 登录/注册"; // str += " 匿名参与"; // str += "
"; // str += "
"; // var pop = new Popup({ contentType: 3, isReloadOnClose: false, width: 600, height: 340 }); // pop.setContent("title", "请您选择"); // pop.setContent("confirmCon", str); // pop.setContent("callBack", loginShowCallBack); // pop.setContent("parameter", { id: "divCall", str: "点击确定后显示的字符串", obj: pop }); // pop.build(); // pop.show(); //} //function logShowConfirm() { // var str = ""; // str += "
"; // str += "
"; // str += " "; // str += "
"; // str += "
"; // str += "

用户登陆系统于6月7日20:00至6月11日9:00进行系统维护,暂停服务。"; // str += " 您暂时可以通过匿名方式访问相关系统。 "; // str += " 带来不便敬请谅解。"; // str += "

"; // str += "
"; // str += " 登录/注册"; // str += " 匿名参与"; // str += "
"; // str += "
"; // var pop = new Popup({ contentType: 3, isReloadOnClose: false, width: 600, height: 340 }); // pop.setContent("title", "通知"); // pop.setContent("confirmCon", str); // pop.setContent("callBack", loginShowCallBack); // pop.setContent("parameter", { id: "divCall", str: "点击确定后显示的字符串", obj: pop }); // pop.build(); // pop.show(); //} //function logShowConfirm() { // var str = ""; // str += "
"; // str += "
"; // str += " "; // str += "
"; // str += "
"; // str += "

1、写信发言时您不必再输入匿名信息,也无需记录烦长的查询码!
"; // str += " 2、通过“用户中心”,您可以方便地对历史参与信息进行查询、评价和管理。"; // str += " 还有其它陆续推出的便民服务,快来试一试吧!

"; // str += "
"; // str += "
"; // str += " 登录/注册"; // str += " 匿名参与"; // str += "
"; // str += "
"; // var pop = new Popup({ contentType: 3, isReloadOnClose: false, width: 600, height: 340 }); // pop.setContent("title", "请您选择"); // pop.setContent("confirmCon", str); // pop.setContent("callBack", loginShowCallBack); // pop.setContent("parameter", { id: "divCall", str: "点击确定后显示的字符串", obj: pop }); // pop.build(); // pop.show(); //} function loginShowCallBack(para) { var o_pop = para["obj"]; if (true) { o_pop.close(); } } function logShowLoginCallBack(para) { var o_pop = para["obj"]; if (true) { o_pop.close(); } } function dialogCancel() { $("#dialogCancel").click(); } // function LoginOrRegister() { $("#dialogCancel").click(); // 登录响应 var callback_url = window.top.location.href; if (typeof (loginDlg) != "undefined") { loginDlg.poplogin(callback_url); } } var phoneTest = /^1[3|4|5|7|8][0-9]\d{8}$/; var zmszTest = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z_]{8,16}$/; var pwdTest = /^(?:(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])|(?=.*[A-Z])(?=.*[a-z])(?=.*[^A-Za-z0-9])|(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).{6,}|(?:(?=.*[A-Z])(?=.*[a-z])|(?=.*[A-Z])(?=.*[0-9])|(?=.*[A-Z])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*[0-9])|(?=.*[a-z])(?=.*[^A-Za-z0-9])|(?=.*[0-9])(?=.*[^A-Za-z0-9])|).{6,}$/; var emailTest = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/; function Register_Save() { var xm = $("#R_xm").val(); if (xm == "") { alert("请填写您的企业名称!"); $("#R_xm").focus(); return false; } var username = $("#R_username").val(); if (username == "") { alert("请填写您的用户名!"); $("#R_username").focus(); return false; } if (!zmszTest.test(username)) { alert("您填写的用户名格式不正确!"); $("#R_username").focus(); return false; } var pwd = $("#R_pwd").val(); if (pwd == "") { alert("请填写您的密码!"); $("#R_pwd").focus(); return false; } if (!pwdTest.test(pwd)) { alert("您填写的密码格式不正确!"); $("#R_pwd").focus(); return false; } var pwd_c = $("#R_pwd_C").val(); if (pwd_c == "") { alert("请填写您的确认密码!"); $("#R_pwd_C").focus(); return false; } if (pwd != pwd_c) { alert("您填写的密码与确认密码不一致!"); $("#R_pwd_C").focus(); return false; } var phone = $("#R_phone").val(); if (phone == "") { alert("请填写您的统一社会信用代码!"); $("#R_phone").focus(); return false; } var frxm = $("#R_frxm").val(); if (frxm == "") { alert("请填写您的法人姓名!"); $("#R_frxm").focus(); return false; } var frsfzh = $("#R_frsfz").val(); if (frsfzh == "") { alert("请填写您的法人身份证号!"); $("#R_frsfz").focus(); return false; } var ret = Yawei.Government.GovWebSite.GovReceiveQueAjax.SaveUser(xm, username, pwd, phone, frxm, frsfzh).value; if (ret == "true") { alert("注册成功!"); setTimeout(function () { window.location.reload(); }, 1000); } else if (ret == "false") { alert("注册失败,请重试!"); } else { alert(ret); } } function CheckUserName() { var username = $("#R_username").val(); if (username != "" && username != null) { if (!zmszTest.test(username)) { alert("您填写的用户名格式不正确!"); $("#R_username").focus(); return false; } var ret = Yawei.Government.GovWebSite.GovReceiveQueAjax.CheckUserName(username).value; if (ret == "0") { alert("可以使用!"); } else if (ret == "1") { alert("用户名重复,请更换"); } } } function zhuxiao() { var ret = Yawei.Government.GovWebSite.GovReceiveQueAjax.ZhuXiaoUser().value; if (ret == "true") { alert("注销成功!"); window.location.reload(); } else { alert("注销失败!"); } }