2 lines
57 KiB
JavaScript
2 lines
57 KiB
JavaScript
|
function postreportVisitLog(){var t=this;window.trackData=[];var i=t.getUrlParms("formappurl")?decodeURIComponent(t.getUrlParms("formappurl")):"";window.isgetPMRouteId=0;var r=window.frames.length!=parent.frames.length;if(window.formappdepath=i||"",!r){t.getUrlParms("vcToken")&&location.href.indexOf("scale-h5server")>-1&&t.setCookie("vxtoken",decodeURIComponent(t.getUrlParms("vcToken")));var o=cdnPath=="//pre-static.1x.cn"?"https://pre.xx.cn":cdnPath=="//static.wxbig.cn"?location.origin:"https://test.1x.cn",e=t.getUrlParms("p"),f=t.getUrlParms("r"),m=t.getUrlParms("i");f&&(t.parentPreId=f);var h=e&&f?1:0,w=0,y=t.getUrlParms("w")||t.getUrlParms("kf")||w||h||m?parseInt(t.getUrlParms("w")||t.getUrlParms("kf")||w||h||m):0;if(localStorage.uvcid||(localStorage.uvcid=t.getNum()+""+new Date().valueOf()),location.href.indexOf("zdb.xx.cn/p1980.shtml")>-1&&t.getCookie("appAdapt")&&$(".comHead,.comFoot").hide(),window.reporttimer=new Date().valueOf(),window.sreId=t.getUrlParms("sreId")?decodeURIComponent(t.getUrlParms("sreId")):"",window.routeId=t.getUrlParms("routeId")?parseInt(t.getUrlParms("routeId")):0,window.sreId&&(t.sreId=window.sreId),window.routeId&&(t.routeId=window.routeId),t.getUrlParms("vs")&&(t.visitSource=t.getUrlParms("vs")),t.getUrlParms("source")&&(t.source=t.getUrlParms("source")),t.getUrlParms("vcardId")&&(t.shareCardIdStr=t.getUrlParms("vcardId")),t.getUrlParms("att")&&!t.shareCardIdStr&&$.ajax({headers:{token:t.getCookie("token")},type:"GET",url:"/api/common/getHpsAttInfo",data:{att:t.getUrlParms("att")},dataType:"json",async:!1,success:function(u){if(u.code==200){var x=u.data||{},v=x.vcardId||"";t.shareCardIdStr=v}}}),!(location.href.indexOf("vscard/videoUpload.html")>-1||location.href.indexOf("vscard/viewpeople.html")>-1||location.href.indexOf("portal/preview/doc.html")>-1||location.href.indexOf("vscard/customerService.html")>-1||location.href.indexOf("activityDetails/recommend")>-1||t.getUrlParms("isEcho"))&&!(location.href.indexOf("/information/")>-1&&location.href.indexOf(".shtml")>-1||location.href.indexOf("/pubinfo/")>-1&&location.href.indexOf(".html")>-1)){var p=(!t.getCookie("userId")||!t.getCookie("vxtoken"))&&location.href.indexOf("scale-h5server")>-1?1:t.getCookie("vxtoken")?0:1;if(p&&y&&(t.getChannel()==1||t.getChannel()==9)){window.localStorage.setItem("isreport",1),t.getgourl();return}else if(p&&y&&!(t.getChannel()==1||t.getChannel()==9||t.getChannel()==5)){window.localStorage.setItem("isreport",1),window.location.replace(o+"/pages/wxwebauthorize.html?infohref="+encodeURIComponent(decodeURIComponent(window.location.href)));return}else t.getCookie("vxtoken")&&y?$.ajax({headers:{},type:"GET",url:"/api/vcard/getVCardInfo",data:{targetServerNameForOverride:t.getUrlParms("targetServerNameForOverride")||t.getUrlParms("host")||i||void 0},dataType:"json",async:!1,success:function(u){if(u.code==200&&u.success){window.yzmishastoken=1;var x=u.data||{},v=x.vCardInfo||{};window.yzvCardInfo=v||{};var I=v.mobilePhone;window.localStorage.setItem("visitingCardIdStr",v.visitingCardIdStr||""),window.localStorage.setItem("visitingCardavatar",v.avatar||""),window.localStorage.setItem("visitingCardName",v.cardName||""),window.localStorage.setItem("visitingCardsex",v.sex||""),window.localStorage.setItem("showPhone",I||"")}else if(t.getChannel()==1||t.getChannel()==9){window.localStorage.setItem("isreport",1),t.getgourl();return}else if(!(t.getChannel()==1||t.getChannel()==9||t.getChannel()==5)){window.localStorage.setItem("isreport",1),window.location.replace(o+"/pages/wxwebauthorize.html?infohref="+encodeURIComponent(decodeURIComponent(window.location.href)));return}}}):t.getCookie("token")?$.ajax({headers:{token:t.getCookie("token")},type:"GET",url:"/api/vcard/getVCardInfo",data:{targetServerNameForOverride:t.getUrlParms("targetServerNameForOverride")||t.getUrlParms("host")||i||void 0},dataType:"json",async:!1,success:function(u){if(u.code==200&&u.success){window.yzmishastoken=1;var x=u.data||{},v=x.vCardInfo||{};window.yzvCardInfo=v||{};var I=v.mobilePhone;window.localStorage.setItem("visitingCardIdStr",v.visitingC
|