"use strict";function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}self!=top&&(top.location=self.location);var zto=zto||{};zto.config=zto.config||{};var toastTimer,__verifyType,__verifyContent,__verifyId,hexcase=0,b64pad="",chrsz=8,currentHots=window.location.host,multi=/-dme\.test\.ztosys\.com$/;function menuClick(e,t,o,n){$("."+e).click(function(){var e=$(this).index();$(this).addClass(o).siblings().removeClass(o),$("."+t+":eq("+e+")").addClass(n).siblings().removeClass(n)})}zto.config.env="",0===currentHots.indexOf("localhost")?(zto.config.env="dev",zto.config.serviceUrl="https://hdgateway-qa-01.gw-test.ztosys.com",zto.config.centerceUrl="http://base-official-usercenter-web-dme.test.ztosys.com",zto.config.domain="ztosys.com",zto.config.AUTH_SSO_URL="https://base-official-login-web-dme.test.ztosys.com/account/singlesignon",zto.config.AUTH_CALLBACK="/express/expressCheck.html",zto.config.AUTH_CALLBACK_PRICE="/express/expressPrice.html",zto.config.AUTH_CLIENTID="pc",zto.config.image_serviceUrl="https://mapi-test.zt-express.com"):"gw.test.ztosys.com"===currentHots||multi.test(currentHots)?(zto.config.env="test",zto.config.serviceUrl="https://hdgateway-qa-01.gw-test.ztosys.com",zto.config.centerceUrl="http://base-official-usercenter-web-dme.test.ztosys.com",zto.config.domain="ztosys.com",zto.config.AUTH_CLIENTID="pc",zto.config.AUTH_CALLBACK="/express/expressCheck.html",zto.config.AUTH_CALLBACK_PRICE="/express/expressPrice.html",zto.config.AUTH_SSO_URL="https://base-official-login-web-dme.test.ztosys.com/account/singlesignon",zto.config.image_serviceUrl="https://mapi-test.zt-express.com"):(zto.config.serviceUrl="https://hdgateway.zto.com",zto.config.centerceUrl="https://my.zto.com",zto.config.domain="zto.com",zto.config.AUTH_SSO_URL="https://auth.zto.com/account/singlesignon",zto.config.AUTH_CALLBACK="/express/expressCheck.html",zto.config.AUTH_CALLBACK_PRICE="/express/expressPrice.html",zto.config.AUTH_CLIENTID="pc",zto.config.image_serviceUrl="https://mapi.zto.com"),zto.config.ztoAllRegionList=null,zto.utils=zto.utils||{},function(){zto.utils.$c=function(e){return"."===e.substr(0,1)?document.getElementsByClassName(e.substr(1,e.length-1))[0]:document.getElementById(e.substr(1,e.length-1))};var n=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},c=function(e){var t=n()+n()+n()+n()+n()+n()+n()+n(),o={stateId:t,fromUrl:e};return sessionStorage.setItem(t,JSON.stringify(o)),t};zto.utils.getSsoState=function(e){var t=sessionStorage.getItem(e);if(t){var o=JSON.parse(t);return o.stateId===e?o:null}return null},zto.utils.redirectSso=function(e){var t=1
加载中...
'),$(".ajaxLoading").show(),o=!1}if(t&&t.HEADERS){var c={"x-token":zto.auth.getToken(),"x-dubbo-tag":"qa01","x-clientCode":zto.client.getClientCode(),"x-captcha-id":t.HEADERS.id,"x-captcha-code":t.HEADERS.code,"x-event-type":t.HEADERS.eventType};"dev"===zto.config.env&&(c=_defineProperty({"x-token":zto.auth.getToken(),"x-dubbo-tag":"qa01","x-clientCode":zto.client.getClientCode(),"x-captcha-id":t.HEADERS.id,"x-captcha-code":t.HEADERS.code,"x-event-type":t.HEADERS.eventType},"x-dubbo-tag","dev")),"test2"===zto.config.env&&(c=_defineProperty({"x-token":zto.auth.getToken(),"x-dubbo-tag":"qa01","x-clientCode":zto.client.getClientCode(),"x-captcha-id":t.HEADERS.id,"x-captcha-code":t.HEADERS.code,"x-event-type":t.HEADERS.eventType},"x-dubbo-tag","qa01")),$.ajax({type:"post",url:zto.config.serviceUrl+"/"+e,headers:c,data:t,cache:!1,crossDomain:1==!document.all,dataType:i}).done(function(e){o||$(".ajaxLoading").hide(),null!=e&&""!=e&&n&&$.isFunction(n)&&n(e)}).fail(function(e){console.log("数据请求失败")})}else{c={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode()};"dev"===zto.config.env&&(c={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode(),"x-dubbo-tag":"dev"}),"test2"===zto.config.env&&(c={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode(),"x-dubbo-tag":"qa01"}),$.ajax({type:"post",url:zto.config.serviceUrl+"/"+e,headers:c,data:t,cache:!1,crossDomain:1==!document.all,dataType:i}).done(function(e){o||$(".ajaxLoading").hide(),null!=e&&""!=e&&n&&($.isFunction(n)?n(e):console.log("callBack is not a function"))}).fail(function(e){console.log("数据请求失败")})}}function HrPostCode(e,t,o,n,i){if(i=$.isFunction(n)?i||"json":null==n?"json":n,o&&$.isFunction(o)&&(n=o,o=!1),o){$("body").append('
加载中...
'),$(".ajaxLoading").show(),o=!1}var a={"x-token":null,"x-clientCode":zto.client.getClientCode(),"x-captcha-id":t.HEADERS.id,"x-captcha-code":t.HEADERS.code};"dev"===zto.config.env&&(a={"x-token":null,"x-clientCode":zto.client.getClientCode(),"x-captcha-id":t.HEADERS.id,"x-captcha-code":t.HEADERS.code,"x-dubbo-tag":"dev"}),"test2"===zto.config.env&&(a={"x-token":null,"x-clientCode":zto.client.getClientCode(),"x-captcha-id":t.HEADERS.id,"x-captcha-code":t.HEADERS.code,"x-dubbo-tag":"qa01"}),$.ajax({type:"post",url:zto.config.serviceUrl+"/"+e,headers:a,data:t,cache:!1,crossDomain:1==!document.all}).done(function(e){o||$(".ajaxLoading").hide(),null!=e&&""!=e&&n&&($.isFunction(n)?n(e):console.log("callBack is not a function"))}).fail(function(e){console.log("数据请求失败")})}function checkPostCode(e,t,o,n,i,a,c){if(a=$.isFunction(n)?a||"json":null==n?"json":n,o&&$.isFunction(o)&&(n=o,o=!1),o){$("body").append('
加载中...
'),$(".ajaxLoading").show(),o=!1}var s={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode(),"x-captcha-id":c.id,"x-captcha-code":c.code};"dev"===zto.config.env&&(s={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode(),"x-captcha-id":c.id,"x-captcha-code":c.code,"x-dubbo-tag":"dev"}),"test2"===zto.config.env&&(s={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode(),"x-captcha-id":c.id,"x-captcha-code":c.code,"x-dubbo-tag":"qa01"}),$.ajax({type:"post",url:zto.config.serviceUrl+"/"+e,headers:s,data:t,cache:!1,contentType:"application/json",crossDomain:1==!document.all}).done(function(e){o||$(".ajaxLoading").hide(),null!=e&&""!=e&&n&&($.isFunction(n)?n(e):console.log("callBack_one is not a function"))}).fail(function(e){console.log("数据请求失败"),i&&($.isFunction(i)?i(e):console.log("callBack_two is not a function"))})}function WebsitePost(e,t,o,n,i){if(i=$.isFunction(n)?i||"json":null==n?"json":n,o&&$.isFunction(o)&&(n=o,o=!1),o){$("body").append('
加载中...
'),$(".ajaxLoading").show(),o=!1}var a=zto.auth.getToken(),c={"x-token":a||"","x-clientCode":zto.client.getClientCode()};"dev"===zto.config.env&&(c={"x-token":a||"","x-clientCode":zto.client.getClientCode(),"x-dubbo-tag":"dev"}),"test2"===zto.config.env&&(c={"x-token":a||"","x-clientCode":zto.client.getClientCode(),"x-dubbo-tag":"qa01"}),$.ajax({type:"post",url:zto.config.serviceUrl+"/"+e,headers:c,data:t,cache:!1,contentType:"application/json",crossDomain:1==!document.all}).done(function(e){o||$(".ajaxLoading").hide(),null!=e&&""!=e&&n&&($.isFunction(n)?n(e):console.log("callBack is not a function"))}).fail(function(e){console.log("数据请求失败")})}function CPost(e,t,o,n,i,a){if(a=$.isFunction(n)?a||"json":null==n?"json":n,o&&$.isFunction(o)&&(n=o,o=!1),o){$("body").append('
加载中...
'),$(".ajaxLoading").show(),o=!1}var c={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode()};"dev"===zto.config.env&&(c={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode(),"x-dubbo-tag":"dev"}),"test2"===zto.config.env&&(c={"x-token":zto.auth.getToken(),"x-clientCode":zto.client.getClientCode(),"x-dubbo-tag":"qa01"}),$.ajax({type:"post",url:zto.config.serviceUrl+"/"+e,headers:c,data:t,cache:!1,crossDomain:1==!document.all}).done(function(e){o||$(".ajaxLoading").hide(),null!=e&&""!=e&&n&&($.isFunction(n)?n(e):console.log("callBack is not a function"))}).fail(function(e){i(e)})}function ImgRunOpcity_html5(t,o,n,i,a,c,s,l){var r=$(t+" "+o).size(),e=0;for(e=0;e"+(e+1)+"");function s(e){$(t+" "+o).removeClass("run"),$(t+" "+o).eq(e).addClass("run"),$(n+" ."+i).removeClass("cur"),$(n+" ."+i).eq(e).addClass("cur")}a=null,$(t+" "+o).eq(0).addClass("run"),$(n+" ."+i).eq(0).addClass("cur"),$(n+" ."+i).each(function(e){$(this).click(function(){c(e),s(e)})}),c=function(e){clearInterval(a),a=setInterval(function(){s(++e"+(e+1)+"");function s(e){$(t+" "+o).fadeOut(200),$(t+" "+o).eq(e).fadeIn(400),$(n+" ."+i).removeClass("cur"),$(n+" ."+i).eq(e).addClass("cur")}a=null,$(t+" "+o).eq(0).show(),$(n+" ."+i).eq(0).addClass("cur"),$(n+" ."+i).each(function(e){$(this).click(function(){c(e),s(e)})}),c=function(e){clearInterval(a),a=setInterval(function(){s(++e '+e+'

'+i+'

'+o+" "),$(".alert").addClass("show").css("margin-top","-"+($(".alert").height()/2+40)+"px")}function ztoToast(e,t,o){clearTimeout(toastTimer),$(".toast").remove(),$("body").append('
'+t+"
"),$(".toast").addClass("show").css("margin-top","-"+($(".toast").height()/2+20)+"px").css("margin-left","-"+($(".toast").width()/2+40)+"px"),toastTimer=setTimeout(function(){$(".toast").removeClass("show")},o)}function traditionalError(e){var t=e;if(-1
推荐人物

'+e.resultResponse.items[t].figureName+":"+e.resultResponse.items[t].figureMotto+"

"+e.resultResponse.items[t].figureArea+"";$(".new-recommend").append(o)})}function returnMobileForRsa(e){var t=new JSEncrypt;return t.setPublicKey("\n -----BEGIN PUBLIC KEY-----\n MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCJkFOZ4tZYFnjA3Tt/onJ5SlsOr5m7YLzmoFSBveg4jIqUzzHMqYdahEjpu6FhnytamlT5\n /RwZMzr2NJJvWVZdH7mJ4uhUInCfde4kQT84WIfWg52uPWKrjOEWuAw6n2LLJPRlQVTdbHGDT5wT+qp3eUCMsmnve95WCIXqc/w2EwIDAQAB\n -----END PUBLIC KEY-----\n "),t.encrypt(e)}function jumpService(t){var o=zto.auth.getToken(),n=getCookie("userMobile");n?setServeLink(o,n,t,"click"):HrPost("auth_account_getUserLoginProvider",null,function(e){e.status?e.result.mobile&&(n=e.result.mobile,setServeLink(o,n,t,"click")):("https://kfapi.zto.com/im?channel=official",window.open("https://kfapi.zto.com/im?channel=official"))})}function pubService(){var t=zto.auth.getToken(),o=getCookie("userMobile");o?(console.log(o,"有缓存"),setServeLink(t,o,"","load")):(console.log("无缓存,走接口"),HrPost("auth_account_getUserLoginProvider",null,function(e){e.status?e.result.mobile&&(console.log(e.result.mobile,"接口返回"),o=e.result.mobile,setServeLink(t,o,"","load")):("https://kfapi.zto.com/im?channel=official",$("#contactUs").attr("href","https://kfapi.zto.com/im?channel=official"))}))}function toServe(){$(".js-online-consultant").click(function(){var t,o=zto.auth.getToken(),n=getCookie("userMobile");n?(t=returnServeLink(o,n,""),window.open(t)):HrPost("auth_account_getUserLoginProvider",null,function(e){e.status?e.result.mobile&&(n=e.result.mobile,t=returnServeLink(o,n,""),window.open(t)):(t="https://kfapi.zto.com/im?channel=official",window.open(t))})})}function getRegionData(t){var e=sessionStorage.getItem("allRegionData");e?(zto.config.ztoAllRegionList=JSON.parse(e),t(JSON.parse(e))):$.ajax({type:"POST",url:zto.config.serviceUrl+"/get_basearea",dataType:"json",success:function(e){sessionStorage.setItem("allRegionData",JSON.stringify(e.result)),zto.config.ztoAllRegionList=e.result,t(e.result)},error:function(e){console.warn(e)}})}function setServeLink(e,t,o,n){var i,a,c,s,l="https://kfapi.zto.com/im?channel=official",r=Date.now(),d="zxkf_20220611";if(t&&(c=(i=o?(a=returnMobileForRsa(t),"CHANNEL_OFFICIAL"+o+a+r+d):"CHANNEL_OFFICIAL"+(a=returnMobileForRsa(t))+r+d,hex_md5(i))),e)WebsitePost("getKfToken",null,function(e){switch(console.log(e,"rrrr"),s=e.status&&e.result?o?e.result?a?l+"&billCode="+o+"&token="+e.result+"&ts="+r+"&sign="+c+"&phone="+a:l+"&billCode="+o+"&token="+e.result+"&ts="+r:a?l+"&billCode="+o+"&ts="+r+"&sign="+c+"&phone="+a:l+"&billCode="+o+"&ts="+r:e.result?a?l+"&token="+e.result+"&ts="+r+"&sign="+c+"&phone="+a:l+"&token="+e.result+"&ts="+r:a?l+"&ts="+r+"&sign="+c+"&phone="+a:l+"&ts="+r:o?a?l+"&billCode="+o+"&ts="+r+"&sign="+c+"&phone="+a:l+"&billCode="+o+"&ts="+r:a?l+"&ts="+r+"&sign="+c+"&phone="+a:l+"&ts="+r,n){case"load":$("#contactUs").attr("href",s);break;case"click":window.open(s)}});else switch(s=o?a?l+"&billCode="+o+"&ts="+r+"&sign="+c+"&phone="+a:l+"&billCode="+o+"&ts="+r:a?l+"&ts="+r+"&sign="+c+"&phone="+a:l+"&ts="+r,n){case"load":$("#contactUs").attr("href",s);break;case"click":window.open(s)}}function dateFtt(e,t){var o={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return e}function officialWebsiteRegistrationNumber(){HrPost("getApolloConfig",{keys:JSON.stringify(["officialWebsiteRegistrationNumber"])},function(e){e&&e.result.officialWebsiteRegistrationNumber&&$(".officialWebsiteRegistrationNumber").html(e.result.officialWebsiteRegistrationNumber)})}getRegionData(function(e){data=e}),pubService(),toServe();