filesbox/web/dist/design/designstatic/front/js/square.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(function(){var ce=parseInt($(window).width()),T=cdnPath=="//pre-static.1x.cn"?"https://pre.xx.cn":cdnPath=="//static.wxbig.cn"?location.origin:"https://test.1x.cn",de=s("targetServerNameForOverride")?"&targetServerNameForOverride="+s("targetServerNameForOverride"):"",y=k("w")||k("kf")?parseInt(k("w")||k("kf")):0,ve=s("kf")?parseInt(s("kf")):0,c={},N=0,U=1;if(s("token")&&F("token",decodeURIComponent(s("token"))),s("vctoken")&&F("vctoken",decodeURIComponent(s("vctoken"))),!p("vxtoken")&&y&&(o()==1||o()==9)){M();return}else if(!p("vxtoken")&&y&&!(o()==1||o()==9||o()==5)){window.location.replace(T+"/pages/wxwebauthorize.html?infohref="+encodeURIComponent(decodeURIComponent(window.location.href)));return}else p("vxtoken")&&y?$.ajax({headers:{},type:"GET",url:"/api/vcard/getVCardInfo",data:{targetServerNameForOverride:s("targetServerNameForOverride")||void 0},dataType:"json",async:!1,success:function(a){if(a.code==200&&a.success){var t=a.data||{};c=t.vCardInfo||{},N=1,U=c.authMobile,window.localStorage.setItem("visitingCardIdStr",c.visitingCardIdStr||""),window.localStorage.setItem("visitingCardavatar",c.avatar||""),window.localStorage.setItem("visitingCardName",c.cardName||""),window.localStorage.setItem("visitingCardsex",c.sex||"")}else if(o()==1||o()==9){M();return}else if(!(o()==1||o()==9||o()==5)){window.location.replace(T+"/pages/wxwebauthorize.html?infohref="+encodeURIComponent(decodeURIComponent(window.location.href)));return}}}):p("token")&&$.ajax({headers:{token:p("token")},type:"GET",url:"/api/vcard/getVCardInfo",data:{targetServerNameForOverride:s("targetServerNameForOverride")||void 0},dataType:"json",async:!1,success:function(a){if(a.code==200&&a.success){var t=a.data||{};c=t.vCardInfo||{},N=1,U=c.authMobile,window.localStorage.setItem("visitingCardIdStr",c.visitingCardIdStr||""),window.localStorage.setItem("visitingCardavatar",c.avatar||""),window.localStorage.setItem("visitingCardName",c.cardName||""),window.localStorage.setItem("visitingCardsex",c.sex||"")}}});!(o()==5||window.frames.length!=parent.frames.length)&&!$("#customerService").length&&($(".commentbox").after("<div id='customerService'></div>"),document.write('<link rel="stylesheet" href="/portal/customerService/umi.css">'),document.write('<script type="text/javascript" charset="utf-8" src="/portal/customerService/umi.js"></script>')),(o()==4||o()==5||o()==1||o()==2)&&$(".head,.foot").remove();var fe=new Base64,H="/static/chatroom/video/video.min.7.4.js",S=["/static/chatroom/js/xgplayer/xgplayer.js","/static/common/live/xgplayer-flv.js","/static/common/live/xgplayer-hls.js","/static/chatroom/video/playerreview.js"],L=window.navigator.userAgent.toLowerCase();if(L.match(/MicroMessenger/i)=="micromessenger"){var V=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);H=V?"/static/newJS/information/video/7.0.0/video.min.js":"/static/newJS/information/video/7.0.2/video.min.js"}var pe='<video id="shortvideopreview" style="object-fit: contain;" class="video-js vjs-default-skin vjs-big-play-centered vjs-fluid" width="100%" webkit-playsinline="true" playsInline="playsinline" x5-playsinline="true" tabIndex="-1" x-webkit-airplay="true" />',z=$(".photolist").width(),D=(z-6)/3;$.ajax({type:"GET",headers:{token:p("token")},url:"/api/common/getSquareInfoById?projectid=41",contentType:"application/json",dataType:"json",data:{infoId:X()||s("infoId")||Y(),targetServerNameForOverride:s("targetServerNameForOverride")||void 0},dataType:"json",success:function(a){var t=a.success;if(t){var e=a.data,r=e.headPortrait||"",n=e.sourceList||[],i=e.praiseDataVO||{},v=i.topPraiseList||[],h=i.totalPraiseCount||0,u=e.commentList||[],g=e.refererBusType,b=e.refererCoverResolution?e.refererCoverResolution.split("*"):[0,0],P=e.refererCover||"",E=b.length?b[0]:0,J=b.length?b[1]:0;$(".time").text(K(e.gmtCreate));var ae=P.indexOf("appstatic/images/brochure")>-1?"referercover posterleft":"referercover",te=J>E||!J&&!E?"imghgreaterthanw":"imgwgreaterthanh";if(e.contentType=="1"){var ie='<a href="'+(e.refererUrl?e.refererUrl:Q(e))+'" class="refererbox"><div class="'+ae+'">'+('<img cla