function errorLogin(){window.location.href="/clogout.do?url="+window.location.href}window.location.proxyHref||Object.defineProperty(window.location,"proxyHref",{get(){return window.location.href},set(e){window.checkLoginRegisterUrl&&window.checkLoginRegisterUrl(e)||window.checkIsNeedLoginUrl&&checkIsNeedLoginUrl(e)||(setCompanyDetailCode(e),window.location.href=e)}});const needLoginRegExp=[/nzjxm-([0-9]+).html$/,/client\/member_center_main\/(.+).html$/,/\/client\/vip\.html/],loginRegisterURLIntercept=["/clogin.do","/cregister.do"];function checkIsNeedLoginUrl(t){if(""!==$("#loginName").val())return!1;t=new URL(t,window.location.origin);var e=!!needLoginRegExp.reduce((e,o)=>(o.test(t.pathname)&&e++,e),0);return e&&showLoginModal.call(this,2),e}function checkLoginRegisterUrl(t){t=new URL(t,window.location.origin).pathname;var e=!!loginRegisterURLIntercept.reduce((e,o)=>e+(-1===t.indexOf(o)?0:1),0);if(e){if(""!==$("#loginName").val())return $.showToastPopup("\u60a8\u5f53\u524d\u4e3a\u767b\u5f55\u72b6\u6001\uff0c\u65e0\u9700\u91cd\u590d\u767b\u5f55",3e3),e;showLoginModal.call(this,2)}return e}$(".modal").on("show.bs.modal",window.centerModals&&centerModals);var errorCode={10:"\u767b\u5f55\u624b\u673a\u53f7\u5df2\u53d8\u66f4\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",20:"\u767b\u5f55\u5bc6\u7801\u5df2\u53d8\u66f4\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",30:"\u8d26\u53f7\u5f02\u5e38\u65e0\u6cd5\u4f7f\u7528\uff0c\u5982\u6709\u7591\u95ee\u8bf7\u8054\u7cfb\u5ba2\u670d",31:"\u8d26\u53f7\u5df2\u6ce8\u9500\u65e0\u6cd5\u4f7f\u7528\uff0c\u5982\u6709\u7591\u95ee\u8bf7\u8054\u7cfb\u5ba2\u670d",32:"\u8d26\u53f7\u5f02\u5e38\u65e0\u6cd5\u4f7f\u7528\uff0c\u8bf7\u8054\u7cfb\u5ba2\u670d400-999-4928",33:"\u8be5\u8d26\u53f7\u5f53\u524d\u4e3a\u51bb\u7ed3\u72b6\u6001\uff0c\u65e0\u6cd5\u8fdb\u884c\u76f8\u5173\u64cd\u4f5c",40:"\u60a8\u7684\u8d26\u53f7\u5df2\u5728\u5176\u4ed6\u8bbe\u5907\u767b\u5f55\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",50:"\u767b\u5f55\u5931\u6548\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",60:"\u8d26\u53f7\u5f02\u5e38\u65e0\u6cd5\u4f7f\u7528\uff0c\u5982\u6709\u7591\u95ee\u8bf7\u8054\u7cfb\u5ba2\u670d"},userStatusCode={100:()=>showPerfectInfoDialog(enumType.member,null,!1),110:()=>showPerfectInfoDialog(enumType.member,null,!0),120:()=>showBoundPhoneDialog(),130:()=>showBoundPhoneDialog()};function setCompanyDetailCode(e){e=new URL(e,location.origin).pathname;/\/bdqyhx\/([0-9]+)\.html/.test(e)||-1!==$(this).text().indexOf("\u4f01\u4e1a\u60c5\u62a5\u5206\u6790")||-1!==e.indexOf("zhaotoubiaohappening!gotoEnterpriseDetailsPage.do")?$(this).attr("data-point-code")?localStorage.setItem("pagePointCode",$(this).attr("data-point-code")):-1!==window.location.pathname.indexOf("company-list.do")?localStorage.setItem("pagePointCode",707):/\/gongsi_([0-9]+)\.html/.test(window.location.pathname)?localStorage.setItem("pagePointCode",170):localStorage.setItem("pagePointCode",704):localStorage.removeItem("pagePointCode")}$(function(){const o=window.open;window.open=function(){if(arguments&&arguments[0])try{var e=arguments[0];if(checkIsNeedLoginUrl(e)||checkLoginRegisterUrl(e))return}catch(e){}o.apply(window,arguments)},errorCode[code]?($("#errorModal p").html(errorCode[code]),$("#errorModal").modal("show")):userStatusCode[code]&&(GetPageSeoPointCode.setPointCode("dialog",903),userStatusCode[code]()),$(".memberUp .grade .C666 .C333").text(levelName),$(".memberUp .time .C666 .C333").text(endTime),(81===Number(levelId)?($(".memberUp .upgrade.showBox").show(),$(".memberUp .grade a").text("\u5f00\u901a\u4f1a\u5458")):($(".memberUp .time").show(),$(".memberUp .grade a").text("\u7eed\u8d39\u5347\u7ea7"))).show();let i=!1;const a=["gzt.biaoxunkuaiche.com","gzt2.biaoxunkuaiche.com","bdqyhx","vip.bidizhaobiao.com"],e=$("#loginName"),t=$(".top-banner a").attr("href");t&&e.val()&&!!loginRegisterURLIntercept.reduce((e,o)=>e+(-1===t.indexOf(o)?0:1),0)&&$(".top-banner").hide(),$("body").delegate("a","click",function(t){let n=$(this).attr("href")||"";if(-1!==n.indexOf("javascript:void(0)")&&t.preventDefault(),checkLoginRegisterUrl.call(this,n))t.preventDefault();else if(setCompanyDetailCode.call(this,n),e.val()){i=i&&!1,i=!0;for(let e=0,o=a.length;e<o;e++)if(-1!==n.indexOf(a[e]))return t.preventDefault(),void $.ajax({url:basePath+"client/ajaxRequest.do",type:"POST",success:function(e){i=!1,-1!==["20000","10000"].indexOf(e.status)&&setTimeout(function(){window.open(n)})},error:function(){i=!1}})}else checkIsNeedLoginUrl.call(this,n)&&t.preventDefault()})});