2 lines
48 KiB
JavaScript
2 lines
48 KiB
JavaScript
(function(){$("title").text(""),$(".inforht").text(""),$(".coursemain").html("");var ui=parseInt($(window).width()),hi=n("isnorelated")?parseInt(n("isnorelated")):0,Ei=["/design/designstatic/chatroom/video/video.min.7.4.js","/design/designstatic/chatroom/video/flv.min.js","/design/designstatic/chatroom/video/videojs-contrib-hls.min.js","/design/designstatic/chatroom/video/playerreview.js"],gi=["\u9762\u8BAE","2\u5343\u4EE5\u4E0B","2-3\u5343","3-4.5\u5343","4.5-6\u5343","6-8\u5343","0.8-1\u4E07","1-1.5\u4E07","1.5-2\u4E07","2-3\u4E07","3-4\u4E07","5\u4E07\u4EE5\u4E0A"],mi=["\u4E0D\u9650","1-2\u5E74","2-3\u5E74","3-5\u5E74","5\u5E74\u4EE5\u4E0A"],yi=["\u4E0D\u9650","\u793E\u62DB","\u6821\u62DB"],xi=["\u4E0D\u9650","\u5168\u804C","\u517C\u804C"],bi=["\u4E0D\u9650","\u5C0F\u5B66","\u521D\u4E2D","\u9AD8\u4E2D","\u4E2D\u4E13","\u5927\u4E13","\u672C\u79D1","\u7855\u58EB","\u535A\u58EB","\u5176\u4ED6"],Ni=navigator.userAgent.match(/iPad/)||navigator.userAgent.match(/iPhone/)||navigator.userAgent.match(/iPod/),Fi=cdnPath=="//pre-static.1x.cn"?"https://pre.xx.cn":cdnPath=="//static.wxbig.cn"?location.origin:"https://test.1x.cn",Be=n("mobile")?parseInt(n("mobile")):0,_e=n("mobile100")?parseInt(n("mobile100")):0,Ie=n("targetServerNameForOverride")?"&targetServerNameForOverride="+n("targetServerNameForOverride"):"",wi=n("p"),ki=n("r"),Di=n("tr")?n("tr"):0,Ze=wi&&ki?1:0,pe=Ce("w")||Ce("kf")||Ze?parseInt(Ce("w")||Ce("kf")||Ze):0,Ri=n("kf")?parseInt(n("kf")):0,Bi={},z=0,ve=1,U=60,Te,ei=0,fe=0,ii=Be?0:1,ai,ti,ri,oi,ni=2,_i="",si=0,$i=$(".curriculum").width(),Li=($i-(ni-1)*12)/ni,Ji=[],Gi=0,qi=!1,Le='<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" />',Q,k,Se={},Vi=[];if(n("token")&&di("token",decodeURIComponent(n("token"))),n("vctoken")&&di("vctoken",decodeURIComponent(n("vctoken"))),!p("vxtoken")&&pe&&(h()==1||h()==9)?(window.localStorage.setItem("isreport",1),Ue()):!p("vxtoken")&&pe&&!(h()==1||h()==9||h()==5)||p("vxtoken")&&pe||p("token"),(h()==4||h()==5||h()==1||h()==2)&&$(".head,.foot").remove(),n("associated")&&location.pathname.indexOf("pubinfo")>-1){var Ii=new Base64,Ti=decodeURIComponent(n("associated")),je=JSON.parse(Ii.decode(Ti))||{};ai=je.bindinfo||void 0,ti=je.bindcourse||void 0,ri=je.bindshop||void 0,oi=je.bindform||void 0}$(".coursemain img").each(function(i){var e=$(this),a,t;$("<img/>").attr("src",$(e).attr("src")).load(function(){a=this.width,t=this.height,a>=ui&&$(e).css("width","100%").css("height","auto"),a<1200&&$(e).css("width",a+"px").css("height",t+"px")})}),Date.prototype.format=function(i){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(i)&&(i=i.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var a in e)new RegExp("("+a+")").test(i)&&(i=i.replace(RegExp.$1,RegExp.$1.length==1?e[a]:("00"+e[a]).substr((""+e[a]).length)));return i};function Si(){let i=document.getElementsByTagName("head")[0],e=document.createElement("script");e.type="text/javascript",e.src="/information/js/qrcode.min.js";let a=document.createElement("script");a.type="text/javascript",a.src="/information/js/shareproduct.js",i.appendChild(e),i.appendChild(a)}function ji(){$.ajax({type:"GET",headers:{token:p("token")},url:"/api/disk/getHomepageDetail",contentType:"application/json",dataType:"json",data:{infoID:Z()||n("aid")||ee(),infoId:ai,courseId:ti,shopId:ri,formId:oi,targetServerNameForOverride:n("targetServerNameForOverride")||void 0},async:!0,success:function(i){if(!i.success)return i.code=="user.bindSignError"?layer.open({content:"\u65E0\u6743\u9650\u67E5\u770B\uFF0C\u8BF7\u767B\u5F55",btn:["\u786E\u5B9A","\u53D6\u6D88"],yes:function(r,c){layer.close(r),setTimeout(()=>{location.href=`/#/login?redirect=${encodeURIComponent(location.pathname)}&isInfo=1`},100)}}):layer.open({content:i.message||"\u8D44\u8BAF\u4E0D\u5B58\u5728",skin:"msg",time:2e3}),!1;var e=i.data,a=e.likeCount||0,t=e.infoType;t!="1"?($("body,html").css({backgroundColor:"#f2f2f2"}),$(".content").css({backgroundColor:"#fff"}),$(".inforht,.inforp,.inforpm").show()):$("body,html,.content").css({backgroundColor:"black"}),window.information_sourceType=zi(e.infoType),window.information_busType=e.infoType,window.information_sourceId=Z()||n("aid")||ee();var l=e.isLike||!1,d=e.infoSource?JSON.parse(e.infoSource):{url:""},v=ne(e.modifyTime||e.createTime),m=e.title;if($("title").text(m),h()!="5"&&e.infoType!="12"&&t!="1"?$(".inforht").text(m):($(".inforht").remove(),$(".inforpm").css({marginTop:"0px"})),e.infoType=="2"){for(var w=e.employAreaList||[],S="",Je,Oe=ne(e.modifyTime||e.createTime),ue=0;ue<w.length;ue++)Je=ue>0?"/":"",S+=Je+w[ue].areaName;$(".inforpm").html('<span style="padding:0px 12px 0px 0px;border-right: 1px solid #999;">'+mi[parseInt(e.employExp)]+'\u5DE5\u4F5C\u7ECF\u9A8C</span><span style="padding:0px 12px;border-right: 1px solid #999;">'+bi[parseInt(e.employDegree)]+'</span><span style="padding: 0px 12px ;border-right: 1px solid #999;">'+xi[parseInt(e.employNature)]+'</span><span style="padding: 0px 12px ;border-right: 1px solid #999;">'+yi[parseInt(e.employFrom)]+'</span><span style="padding: 0px 12px ;">'+Oe+"</span><div style='color:#FF5400;font-size:20px;margin-top:12px;'>"+gi[parseInt(e.employWage)]+"/\u6708</div>"),$(".inforht,.inforpm").css("textAlign","left")}else{var v=ne(e.modifyTime||e.createTime);$(".inforpm").css("textAlign","left"),$(".inforpm").html((d.author?'<span style="color: #576b95;margin-right: 12px;">'+d.author+"</span>":"")+'<span style="color:#999;">'+v+"</span>")}if(t=="1"){var Me='<div class="infotypeone swiper-container"><div class="swiper-wrapper"><div infoId="'+(Z()||n("aid")||ee())+'" class="swiper-slide swiper-slide-'+(Z()||n("aid")||ee())+'"></div></div></div>';$(".coursemain").html(Me),Q=new Swiper(".swiper-container",{direction:"vertical",on:{slideChangeTransitionEnd:function(r){k&&k.dispose();var c=$(".swiper-slide.swiper-slide-active").attr("infoId");$(".videoPoster").show();var f=Se[c]||{};$("title").text(f.title),(h()==5||p("appAdapt")||n("appAdapt"))&&/iPhone|iPad|iPod/i.test(navigator.userAgent)&&window.webkit&&window.webkit.messageHandlers.appGetDocumentTitleForIOS.postMessage(f.title),$(".actioncontent .like").removeClass("onlike"),f.praised&&$(".actioncontent .like").addClass("onlike"),this.activeIndex==0?oe(1,0,c):$(".swiper-slide").length==this.activeIndex+1&&oe(0,0,c),$("#shortvideopreview").remove(),$(".swiper-slide.swiper-slide-active .videoContentbox").append(Le);var y="",b=f.isVertical?f.computerPicPathVertical||[]:f.computerPicPath||[],O=f.resolution,K=f.thumb;b&&b.length&&(y=b[0].sourcePath),$("#shortvideopreview").css({height:"100%",paddingTop:0});var I="/design/designstatic/chatroom/video/video.min.7.4.js",_=window.navigator.userAgent.toLowerCase();if(_.match(/MicroMessenger/i)=="micromessenger"){var A=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);I=A?"/design/designstatic/newJS/information/video/7.0.0/video.min.js":"/design/designstatic/newJS/information/video/7.0.2/video.min.js"}$.getScript(I,function(){var s={poster:g(y||K),controls:!0,controlBar:{playToggle:!0,fullscreenToggle:!0}};k=videojs("shortvideopreview",s,function(){k.src({src:f.videoUrl,type:"application/x-mpegURL"}),$(".swiper-slide.swiper-slide-active .videoPoster").hide(),k.play(),$(".swiper-slide.swiper-slide-active .videoPoster .videoIcon").on("click",function(){$(".swiper-slide.swiper-slide-active .videoPoster").hide(),k.play()}),$("video").on("touchend",function(){$(this)[0].paused?k.play():k.pause()}),$("video").on("click",function(){$(this)[0].paused?k.play():k.pause()})})});var we=[],de=[],ke=[],le=0,N=f.relationMap||[];N.forEach(function(s,ce,Ye){s.relationType=="3"&&(le=s.busId),s.relationType=="1"&&de.push(s),s.relationType=="2"&&ke.push(s),s.relationType=="4"&&we.push(s)});var E="",M="",L="";if(de.length&&(E+="<div class='relationinfoul'><h2 class='label'>\u70ED\u95E8\u6587\u7AE0</h2>",de.forEach(function(s,ce,Ye){var J=ne(s.modifyTime||s.createTime),ae=s.isUrlInfo?(s.infoUrl||"").indexOf("http")<0?"//"+s.infoUrl:s.infoUrl||"":"",te=ae||(location.port=="81"?"/pages/information.html?aid="+s.busId:"/information/"+s.busId+".shtml");E+="<div class='infoli'><div class='infotitle'><a target='_blank' href='"+te+"'>"+s.title.replace(/<script>/gi,j("<script>"))+"</a></div><div class='infointroduce'>"+s.introduce.replace(/<script>/gi,j("<script>"))+"</div><div class='infotime'>"+J+"</div></div>"}),E+="</div>"),we.length&&(M+="<div class='relationcourseul'><div class='label'>\u7CBE\u9009\u8BFE\u7A0B</div><div class='relationcourseulflex'>",we.forEach(function(s,ce,Ye){var J=s.cover?s.cover:s.busInnerType==2||s.busInnerType==4?"/design/designstatic/common/image/course/package.jpg":"/design/designstatic/common/image/course/defult.jpg",ae=parseInt(s.price)?"\xA5"+s.price/100:"\u514D\u8D39",te=s.busInnerType==2||s.busInnerType==4?"bundle":"info";M+="<a target='_blank' href='/pages/wap/"+te+".html?cid="+s.busId+"'><div class='courseli'><div class='coursecover' style='background-image: url("+g(J)+")'></div><div class='coursebottom'><div class='courseprice'>"+ae+"</div><div class='coursefl'>"+s.title.replace(/<script>/gi,j("<script>"))+"</div></div></div></a>"}),M+="</div></div>"),ke.length&&(L+="<div class='relationshopul'><div class='label'>\u597D\u7269\u63A8\u8350</div><div class='relationshopulflex'>",ke.forEach(function(s,ce,Ye){var J=s.cover||"",ce=J.lastIndexOf(".done")>=0?J.lastIndexOf(".done"):J.lastIndexOf("."),ae=J?J.substring(0,ce)+".jpg":"";if(!ae){var te=s.coverList?JSON.parse(s.coverList):[];te&&te.length&&(ae=te[0].sourcePath)}var fi="",re=s.price?s.price.split(","):[],Ke=parseFloat(re&&re.length?re[0]:0),Qe=parseFloat(re&&re.length?re[re.length-1]:0);fi=Ke||Qe?s.paymentType=="2"?(Ke||Qe)+"\u79EF\u5206":"\uFFE5"+(Ke||Qe)/100:"",L+="<a target='_blank' href='/shop/item.html?itemid="+s.busId+"'><div class='shopli'><div class='shopcover' style='background-image: url("+g(ae)+")'></div><div class='shopbottom'><div class='shopprice'>"+fi+"</div><div class='shopfl'>"+s.title.replace(/<script>/gi,j("<script>"))+"</div></div></div></a>"}),L+="</div></div>"),le&&n("formId")!=le){var Re=ze("formId="),$e=location.origin+location.pathname+Re+(Re?"&":"?")+"formId="+le;history.replaceState&&location.href!=$e?history.replaceState({},"",$e):location.href!=$e&&(location.href=$e)}var vi=E+M+L?E+M+L:'<div style="text-align: center;margin-top:120px;">\u6682\u65E0\u63A8\u8350</div>';$(".tjmodal").html(vi),si=this.activeIndex}}}),oe(2,e,Z()||n("aid")||ee()),oe(1,1),oe(0)}else{if(e.videoUrl){var G="",he=e.isVertical?e.computerPicPathVertical||[]:e.computerPicPath||[],se=e.resolution,F=e.thumb;if(he&&he.length&&(G=he[0].sourcePath),$(".coursemain").html(e.infoType=="1"||e.videoUrl&&e.videoId&&e.infoType=="0"||e.videoUrl&&e.videoId&&e.infoType=="6"||e.videoUrl&&e.videoId&&e.infoType=="15"?`<div class='videoContentbox'><div class="videoPoster" style="background-image: url(`+g(F||G)+')"><img class="videoIcon" src="/design/designstatic/aroom/img/videoplay.png"/></div>'+Le+"</div>":e.detail),e.infoType=="1"||e.videoUrl&&e.videoId&&e.infoType=="0"||e.videoUrl&&e.videoId&&e.infoType=="6"||e.videoUrl&&e.videoId&&e.infoType=="15"){$(".inforpm, .inforht").remove(),$(".coursemain").css({margin:"calc(-20px + env(safe-area-inset-top)) calc(-16px + env(safe-area-inset-right)) 6px calc(-16px + env(safe-area-inset-left))"});var ge='<div style="padding: 10px;"><div class="inforht">'+e.title+'</div><div style="font-size: 18px;margin-top: 10px;">'+(e.videoUrl&&e.videoId&&e.infoType=="6"||e.videoUrl&&e.videoId&&e.infoType=="0"?e.detail:e.introduce)+"</div></div>";e.infoType!="1"&&$(".coursemain").append(ge)}if(se){var D=se.split("*"),me=$(document).width()*(D[1]/D[0]);$(".videoContentbox").css({height:me,backgroundImage:"url("+g(e.videoUrl&&e.videoId&&e.infoType=="6"||e.videoUrl&&e.videoId&&e.infoType=="0"?F||G:G||F)+")",backgroundSize:"cover"}),$("#shortvideopreview").css({height:"100%",paddingTop:0})}var Ae="/design/designstatic/chatroom/video/video.min.7.4.js",q=window.navigator.userAgent.toLowerCase();if(q.match(/MicroMessenger/i)=="micromessenger"){var V=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);Ae=V?"/design/designstatic/newJS/information/video/7.0.0/video.min.js":"/design/designstatic/newJS/information/video/7.0.2/video.min.js"}$.getScript(Ae,function(){var r={poster:g(e.videoUrl&&e.videoId&&e.infoType=="6"||e.videoUrl&&e.videoId&&e.infoType=="0"?F||G:G||F),controls:!1,controlBar:{playToggle:!1}},c=videojs("shortvideopreview",r,function(){c.src({src:e.videoUrl,type:"application/x-mpegURL"}),$(".videoPoster").on("click",function(){$(".videoPoster").hide(),c.play()}),$("video").on("touchend",function(){$(this)[0].paused?c.play():c.pause()})})})}else{var H=(e.infoType=="1"||e.infoType=="4"||e.infoType=="12"?e.introduce:(e.infoType=="2"?"<p><b>\u62DB\u8058\u5185\u5BB9</b></p>":"")+e.detail).replace(/<script>/gi,j("<script>")),R=$(".coursemain");if($(".coursemain").find("article").length<1&&R.html(H),n("allInfo")!="1"||_e){var W=R.height(),ye=$(window).height();if(W>3*ye){R.css({height:2*ye});var Ge=parseInt((W-2*ye)/W*100);R.append('<div class="downSurplusBtn">\u5C55\u5F00\u5269\u4F59'+Ge+'%<div class="downBtn"></div></div>'),$(".downSurplusBtn").on("click",function(){_e&&!(z?ve:(window.localStorage.notokencheckCode?parseInt(window.localStorage.notokencheckCode):0)||0)?Pe(function(){R.css("height","auto"),$(".downSurplusBtn").remove()}):(R.css("height","auto"),$(".downSurplusBtn").remove())})}else p("vxtoken")||p("token")||p("vctoken")?Be&&!(z?ve:!(window.localStorage.notokencheckCode?parseInt(window.localStorage.notokencheckCode):0)||0)?Pe():ii=1:_e&&!(z?ve:(window.localStorage.notokencheckCode?parseInt(window.localStorage.notokencheckCode):0)||0)?Pe():ii=1}if(e.infoType=="3"||e.infoType=="10"||e.infoType=="8"||e.infoType=="9"){var ie=e.computerPicPath&&e.computerPicPath.length?e.computerPicPath[0]:{};ie&&($(".coursemain").html('<img title="'+ie.title+'" src="'+g(ie.sourcePath)+'" />').css({"text-align":"center"}),$(".inforht").text(ie.title),h()!="5"?$(".inforht").text(ie.title):($(".inforht").remove(),$(".inforpm").css({marginTop:"0px"})))}else e.infoType=="2"}var X="<div class='infoSourcebox' >";if(d.name&&(X+="<span>\u6765\u6E90\uFF1A"+d.name+"</span>"),d.url){var qe=d.url.indexOf("http")<0?"//"+d.url:d.url;X+="<div><span>\u94FE\u63A5\uFF1A</span><a target='_blank' href='"+qe+"'>"+d.url+"</a></div>"}X+="</div>",(e.infoType=="0"||e.infoType=="1")&&!e.applyOriginal&&(X+="<div class='infostatementtipbtn' style='display: block;text-align:right; margin-top: 6px;'><div style='display: inline-block;cursor: pointer;background: rgba(255, 255, 255, 0.1);padding: 2px 6px;color: #999;' class='infostatementtip'>\u24D8 \u514D\u8D23\u58F0\u660E</div></div><div style='font-size:12px;display:none;color: #999;' class='infotipscontent'>\u58F0\u660E\uFF1A\u672C\u5E73\u53F0\u53D1\u5E03\u7684\u5185\u5BB9\uFF08\u56FE\u7247\u3001\u89C6\u9891\u548C\u6587\u5B57\uFF09\u4EE5\u539F\u521B\u3001\u8F6C\u8F7D\u548C\u5206\u4EAB\u7F51\u7EDC\u5185\u5BB9\u4E3A\u4E3B\uFF0C\u5982\u679C\u6D89\u53CA\u4FB5\u6743\u8BF7\u5C3D\u5FEB\u544A\u77E5\uFF0C\u6211\u4EEC\u5C06\u4F1A\u5728\u7B2C\u4E00\u65F6\u95F4\u5220\u9664\u3002\u6587\u7AE0/\u89C6\u9891\u89C2\u70B9\u4E0D\u4EE3\u8868\u672C\u5E73\u53F0\u7ACB\u573A\uFF0C\u5982\u9700\u5904\u7406\u8BF7\u8054\u7CFB\u5BA2\u670D\u3002</div>");var o='style="display:none"';if(X+="<div class='likesharebox'><div class='like "+(l?"likeactive":"")+(a?"":"nolikebtn")+"'>"+(a||"")+"</div><div class='share'"+o+" id='share'>\u5206\u4EAB</div>",$(".curriculum .albumbox").hide(),$(".sharesource").html(X),$(".infostatementtipbtn").on("click",function(){$(this).hide().siblings(".infotipscontent").show()}),$(".infotipscontent").on("click",function(){$(this).hide().siblings(".infostatementtipbtn").show()}),e.fileAttList){$(".fotfer").show(),$(".naber").html(e.fileAttList.length),e.fileAttList.length==1&&$(".lones").hide();for(var u="",T=0,P=e.fileAttList.length;T<P;T++){var x=e.fileAttList[T],C=Ui(x.fileType),Ee=x.previewUrl.replace(/\s+/g,"%20"),B="/information/image/fileIcon/"+C+".png",xe=Ci(x.size);h()=="4"||h()=="1"&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?u+='<a class="fuctdiv">':u+='<a href="'+Ee+'" class="fuctdiv">',u+="<img src="+g(B)+" />",u+="<div class='sourcecontent'>",u+="<p class='sourceName'>"+x.sourceName+"</p>",u+="<p>"+xe+"</p>",u+="</div>",u+="</a>"}$(".fuwent").html(u),$(".fuctdiv").click(function(){h()=="4"?layer.open({content:"\u5C0F\u7A0B\u5E8F\u6682\u4E0D\u652F\u6301\u4E0B\u8F7D",skin:"msg",time:2e3}):h()=="1"&&/iPhone|iPad|iPod/i.test(navigator.userAgent)&&layer.open({content:"\u8BF7\u5C06\u94FE\u63A5\u590D\u5236\u5230\u5176\u4ED6\u6D4F\u89C8\u5668\u6253\u5F00",skin:"msg",time:2e3})})}var Y="",Ne="",Fe="",Ve=[],He=[],We=[],be=0;if(!hi&&t!="1"){var Oi=e.relationMap||[];if(Oi.forEach(function(r,c,f){r.relationType=="3"&&(be=r.busId),r.relationType=="1"&&He.push(r),r.relationType=="2"&&We.push(r),r.relationType=="4"&&Ve.push(r)}),be){if($(".relation").html("<div class='relationformul' style='margin: 0 -12px;'>"),n("formId")!=be){var li=ze("formId="),De=location.origin+location.pathname+li+(li?"&":"?")+"formId="+be;history.replaceState&&location.href!=De?history.replaceState({},"",De):location.href!=De&&(location.href=De)}var Mi={init:function(r){var c=this;window.formId=r,c.renderRoot()},renderRoot:function(){$(".relationformul").html('<div id="root"></div>'),$.getScript("/portal/umi.js")}};setTimeout(function(){Mi.init(be)},200)}He.length&&(Ne+="<div class='relationinfoul'><h2 class='label'>\u70ED\u95E8\u6587\u7AE0</h2>",He.forEach(function(r,c,f){var y=ne(r.gmtCreate),b=r.isUrlInfo?(r.infoUrl||"").indexOf("http")<0?"//"+r.infoUrl:r.infoUrl||"":"",O=b||(location.port=="81"?"/pages/information.html?aid="+r.busId:"/information/"+r.busId+".shtml");Ne+="<div class='infoli'><div class='infotitle'><a target='_blank' href='"+O+"'>"+r.title.replace(/<script>/gi,j("<script>"))+"</a></div><div class='infointroduce'>"+r.introduce.replace(/<script>/gi,j("<script>"))+"</div><div class='infotime'>"+y+"</div></div>"}),Ne+="</div>",$(".relation").append(Ne)),Ve.length&&(Y+="<div class='relationcourseul'><div class='label'>\u7CBE\u9009\u8BFE\u7A0B</div><div class='relationcourseulflex'>",Ve.forEach(function(r,c,f){var y=r.cover?r.cover:r.busInnerType==2||r.busInnerType==4?"/design/designstatic/common/image/course/package.jpg":"/design/designstatic/common/image/course/defult.jpg",b=parseInt(r.price)?"\xA5"+r.price/100:"\u514D\u8D39",O=r.busInnerType==2||r.busInnerType==4?"bundle":"info";Y+="<a target='_blank' href='/pages/wap/"+O+".html?cid="+r.busId+"'><div class='courseli'><div class='coursecover' style='background-image: url("+g(y)+")'></div><div class='coursebottom'><div class='courseprice'>"+b+"</div><div class='coursefl'>"+r.title.replace(/<script>/gi,j("<script>"))+"</div></div></div></a>"}),Y+="</div></div>",$(".relation").append(Y)),We.length&&(Fe+="<div class='relationshopul'><div class='label'>\u597D\u7269\u63A8\u8350</div><div class='relationshopulflex'>",We.forEach(function(r,c,f){var y=r.cover||"",c=y.lastIndexOf(".done")>=0?y.lastIndexOf(".done"):y.lastIndexOf("."),b=y?y.substring(0,c)+".jpg":"";if(!b){var O=r.coverList?JSON.parse(r.coverList):[];O&&O.length&&(b=O[0].sourcePath)}var K="",I=r.price?r.price.split(","):[],_=parseFloat(I&&I.length?I[0]:0),A=parseFloat(I&&I.length?I[I.length-1]:0);K=_||A?r.paymentType=="2"?(_||A)+"\u79EF\u5206":"\uFFE5"+(_||A)/100:"",Fe+="<a target='_blank' href='/shop/item.html?itemid="+r.busId+"'><div class='shopli'><div class='shopcover' style='background-image: url("+g(b)+")'></div><div class='shopbottom'><div class='shopprice'>"+K+"</div><div class='shopfl'>"+r.title.replace(/<script>/gi,j("<script>"))+"</div></div></div></a>"}),Fe+="</div></div>",$(".relation").append(Fe))}}var ci="",Xe=n("att")?decodeURIComponent(n("att")):"",Wi=n("vcardId")?decodeURIComponent(n("vcardId")):"";Xe&&($(".shareUserBox").remove(),$.ajax({headers:{token:p("token")},type:"GET",url:"/api/common/getHpsAttInfo",data:{att:Xe},dataType:"json",async:!1,success:function(r){if(r.code==200){var c=r.data||{},f=c.mobile||"",y=c.position||"",b=c.schoolName||"",O=c.wcQrImg||"",K=c.wxAccount||"",I=c.headPortrait||"",_=c.realName||c.nickname||c.loginName||"",A=c.vcardId||"";ci=A;var we=f?h()=="5"||p("appAdapt")?'<div class="userphone"><a></a></div>':'<div class="userphone"><a href="tel:'+f+'"></a></div>':"",de="";$.ajax({headers:{token:p("token")},type:"GET",url:"/api/welink/miniApp/getForApp",data:{},dataType:"json",async:!1,success:function(N){var E=N.data||{},M=E.appUserName||"";de='<wx-open-launch-weapp style="cursor: pointer;width:24px;display: block;height: 24px;background: url('+cdnPath+"/appstatic/images/"+(t=="1"?"dashboard/16":"sharemeassge")+'.png) 50% center / 24px no-repeat;" id="launch-img-btn" username="'+(M||(cdnPath=="//static.wxbig.cn"?"gh_9703393594ca":"gh_ccc75aff795b"))+'" path="'+("/pages/cardDetail/cardDetail?cardIdStr="+encodeURIComponent(A))+'" ><script type="text/wxtag-template"> <div style="cursor: pointer;width:24px;display: block;height: 24px;"></div> </script></wx-open-launch-weapp>'}});var ke='<div class="shareUserBox'+(t=="1"?" infotypeoneShare":"")+'"><div class="cover"><img src="'+g(I)+'" /></div><div class="userdetail"><div class="username">'+_+"<span>"+y+'</span></div><div class="usergs">'+b+"</div> </div>"+(A&&(h()=="1"||h()=="9")?de:"")+(K||O?'<div class="userwx"><a></a></div>':"")+we+"</div>";if($(".content").prepend(ke),$(".mobileyzbox .mobileuser .cover img").length?$(".mobileyzbox .mobileuser .cover img").attr({src:g(I)}):window.yzmmodalface=I,$(".shareUserBox .userwx a").on("click",function(){!p("vxtoken")&&h()=="1"&&Ue();var N=$("body").width(),E=N>=414?351:N<=320?288:319,M=layer.open({title:"",className:"layui-layer-antd layui-layer-initeantd ",skin:"nohasbtn",anim:"scale",scrollbar:!1,end:function(){$("html, body").css({overflow:"visible",height:"auto"})},success:function(L){},content:"<div style='padding:24px;box-sizing:border-box; text-align: left;width:"+E+"px;'> <div style='display:flex;align-items:center;'> <div style='width:60px;height:60px;border-radius:50%;overflow:hidden;position: relative;margin-right: 16px;'><img style='width: 100%; height: 100%; position: absolute;top: 0px; left: 0px;' src='"+g(I)+"' /></div><div style='flex: 1; overflow: hidden;'><div style='font-size: 18px;color: #333333;margin-bottom: 14px;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'>"+_+"<span style='font-size:16px;color:#666666;margin-left:13px;'>"+y+"</span></div><div style='font-size:16px;color:#666666;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'>"+b+"</div></div></div>"+(O?"<div style='font-size:16px;color:#333333;margin-top:30px;'> <div style='width:180px;height:180px;margin:0px auto;position: relative;'><img style='width: 100%; height: 100%; position: absolute;top: 0px; left: 0px;' src='"+g(O)+"' /></div> </div>":"")+(K?"<div style='font-size:16px;color:#333333;margin-top:30px; text-align: center;'>\u5FAE\u4FE1\u53F7\uFF1A<span style='font-size:18px;color:#333333;'>"+K+"</span></div>":"")+"<div style='font-size:16px;color:#333333;margin-top:30px; text-align: center;'>\u957F\u6309\u4FDD\u5B58\u5FAE\u4FE1\u4E8C\u7EF4\u7801</div></div>"})}),$(".infotypeoneShare .cover").on("click",function(){$.ajax({type:"POST",headers:{token:p("token")},url:"/api/vcard/getWxaCode?projectid=16"+Ie,contentType:"application/json",dataType:"json",data:JSON.stringify({auto_color:!0,codeType:"0",headImage:I,is_hyaline:!1,page:"pages/cardDetail/cardDetail",scene:"1008?sourceType=share&cardIdStr="+encodeURIComponent(ci)+"&shareCardIdStr=&vs=3"}),async:!0,success:function(N){if(parseInt(N.code)==200)var E=N.data||{},M=E.codeImgPath,L=$("body").width(),Re=L>=414?351:L<=320?288:319,$e=layer.open({title:"",className:"layui-layer-antd layui-layer-initeantd ",skin:"nohasbtn",anim:"scale",scrollbar:!1,end:function(){$("html, body").css({overflow:"visible",height:"auto"})},success:function(vi){},content:"<div style='padding:24px;box-sizing:border-box; text-align: left;width:"+Re+"px;'> <div style='display:flex;align-items:center;'> <div style='width:60px;height:60px;border-radius:50%;overflow:hidden;position: relative;margin-right: 16px;'><img style='width: 100%; height: 100%; position: absolute;top: 0px; left: 0px;' src='"+g(I)+"' /></div><div style='flex: 1; overflow: hidden;'><div style='font-size: 18px;color: #333333;margin-bottom: 4px;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'>"+_+"<span style='font-size:16px;color:#666666;margin-left:13px;'></span></div><div style='font-size:13px;color:#666666;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;margin-bottom: 4px;'>\u7ACB\u5373\u957F\u6309\u8BC6\u522B\u4E0B\u65B9\u4E8C\u7EF4\u7801</div><div style='font-size:16px;color:#666666;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'>\u8FDB\u5165\u6211\u7684\u540D\u7247</div></div></div>"+(M?"<div style='font-size:16px;color:#333333;margin-top:30px;display: flex;align-items: center;'> <div style='width:160px;height:160px;position: relative;display: inline-block;'><img style='width: 100%; height: 100%; position: absolute;top: 0px; left: 0px;' src='"+g(M)+"' /></div> <div style='width:120px;height:120px;position: relative;display: inline-block;'><img style='width: 100%; height: 100%; position: absolute;top: 0px; left: 0px;opacity: 0.01;z-index: 1;' src='"+g(M)+"' /> <img style='width: 100%; height: 100%; position: absolute;top: 0px; left: 0px;' src='"+g("/appstatic/images/dashboard/17.png")+"' /></div> </div>":"")+"</div>"});else layer.open({content:N.message||"\u5C0F\u7A0B\u5E8F\u7801\u83B7\u53D6\u5931\u8D25",skin:"msg",time:2e3})}})}),$(".shareUserBox .userphone a").on("click",function(){!p("vxtoken")&&h()=="1"&&Ue(),(h()=="5"||p("appAdapt"))&&(/iPhone|iPad|iPod/i.test(navigator.userAgent)?window.webkit&&window.webkit.messageHandlers.appCallTeleForIOS.postMessage(f):window.android&&window.android.appCallTele(f))}),A){var le=n("shareId")?"&shareId="+decodeURIComponent(n("shareId")):"";$(t=="1"?".shareUserBox .userdetail":".shareUserBox .cover,.shareUserBox .userdetail").on("click",function(){window.location.href=window.location.origin+"/vscard/views.html?vcardId="+A+"&att="+Xe+le})}}}}));var Ai=parseInt(window.localStorage.isreport)||0;Ai==1&&pe&&window.localStorage.setItem("isreport",2),Be&&!(z?ve:(window.localStorage.notokencheckCode?parseInt(window.localStorage.notokencheckCode):0)||0)&&Pe(),$(".likesharebox .share,.actioncontent .share").on("click",function(){if(p("appAdapt")){/iPhone|iPad|iPod/i.test(navigator.userAgent)?window.webkit&&window.webkit.messageHandlers.shareActionForIOS.postMessage(window.location.href):window.Android&&window.Android.share(window.location.href);return}navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger"&&p("vxtoken")&&pe?z?z&&pi():Ue():pi()}),(h()==4||h()==5)&&$(".likesharebox .share,.actioncontent .share").hide(),$(".likesharebox .like").on("click",function(){$.ajax({type:"POST",headers:{token:p("token")},url:"/api/common/like",contentType:"application/json",dataType:"json",data:JSON.stringify({infoID:Z()||n("aid")||ee(),isLike:l?0:1}),async:!0,success:function(r){r.success?(l?(a-=1,l=!1):(a+=1,l=!0),$(".likesharebox .like").text(a||""),l?$(".likesharebox .like").removeClass("likeactive").addClass("likeactive"):$(".likesharebox .like").addClass("likeactive").removeClass("likeactive"),a?$(".likesharebox .like").removeClass("nolikebtn"):$(".likesharebox .like").addClass("nolikebtn")):layer.open({content:r.message||"\u70B9\u8D5E\u5931\u8D25\uFF01",skin:"msg",time:2e3})}})});function pi(){const r=window.navigator.userAgent.toLowerCase(),c=parseInt(n("isApp"));if(r.match(/MicroMessenger/i)=="micromessenger"){let f=window.imgEditor,y=window.location.href,b={infoID:e.infoID,courseName:e.title,cover:e.thumb,introduce:e.introduce};f.shareLayer(y,b,function(){});return}if(c){/Android/i.test(r)&&window.android&&window.android.onInformationShare(),/iPhone|iPad|iPod/i.test(r)&&window.webkit&&window.webkit.messageHandlers.informationShareForIOS.postMessage(null);return}layer.open({type:1,title:"\u5206\u4EAB",area:["90%","auto"],content:'<div class="shareMax"><div class="shareBox"><span>\u94FE\u63A5\uFF1A</span><input id="shareUrl" readOnly value="'+location.href+'" /><button id="copy">\u590D\u5236</button></div><div class="qrcode" id="qrcode"></div><a class="download" id="qrcodeadown">\u4E0B\u8F7D\u4E8C\u7EF4\u7801</a></div>',btn:""}),$("#copy").on("click",function(){document.getElementById("shareUrl").select(),document.execCommand("copy"),layer.msg("\u590D\u5236\u6210\u529F")}),new QRCode(document.getElementById("qrcode"),{text:location.href,width:160,height:160,correctLevel:0}),$("#qrcodeadown").on("click",function(){let f=$("#qrcode").find("canvas").get(0),y=new Image;y.src=f&&f.toDataURL("image/png"),y.name=m;let b=document.getElementById("qrcodeadown");b.href=y.src,b.setAttribute("download",m+".png")})}Pi()},error:function(i){const{message:e,code:a}=i;layer.open({content:e||a,skin:"msg",time:2e3})}})}function Pi(){let i=document.getElementById("share");if(!p("token")){i.style.display="inline-block";return}$.ajax({type:"GET",headers:{token:p("token")},url:"/api/disk/options",contentType:"application/json",dataType:"json",async:!0,success:function(e){if(!e.success)return;let a=e.data;const{user:t,role:l}=a;(t.administrator==1||l["explorer.share"]==1)&&(i.style.display="inline-block")}})}$(function(){Si(),setTimeout(ji,10)});function Pe(i){var e='<div class="mobileyzbox"><div class="mobileuser"><div class="cover"><img src='+g(window.yzmmodalface||"/design/designstatic/aroom/img/clueface.png")+' /></div></div><div class="usertext"><div class="triangle-up"></div>\u6DF1\u5165\u4E86\u89E3\u4E2D\uFF1F\u4E5F\u8BB8\u4F1A\u9700\u8981\u6211\u7684\u7B54\u7591\u8981\u70B9\uFF0C\u8BF7\u7559\u7ED9\u6211\u60A8\u7684\u8054\u7CFB\u65B9\u5F0F\u5427</div><div class="yzform"><div class="mobilebox"><input type="text" maxLength="11" placeholder="\u60A8\u7684\u624B\u673A\u53F7\u7801" /></div><div class="erroralert">\u8BF7\u8F93\u5165\u6B63\u786E\u624B\u673A\u53F7</div><div class="yzmbox"><input type="text" maxLength="10" placeholder="\u9A8C\u8BC1\u7801" /><div class="yzmbtn"><div>\u5DF2\u53D1\u9001(60)</div><a>\u53D1\u9001\u9A8C\u8BC1\u7801</a></div></div><div class="erroryzmalert">\u8BF7\u8F93\u5165\u6B63\u786E\u624B\u673A\u53F7</div></div><div class="subbtn"><a>\u9A6C\u4E0A\u67E5\u770B</a></div></div>';if(!ei)var a=layer.open({type:1,title:"",skin:"layui-layer-antd nohasbtn mobileyzmodal",closeBtn:0,anim:2,area:"375px 310px",scrollbar:!1,shadeClose:!1,cancel:function(t,l){},success:function(t){ei=1,$(".mobileyzbox .mobilebox input").on("blur",function(l){var d=l.target.value||"";d&&!/^1\d{10}$/.test(d)?($(".mobileyzbox .erroralert").text("\u8BF7\u8F93\u5165\u6B63\u786E\u624B\u673A\u53F7"),$(".mobileyzbox .erroralert").show()):$(".mobileyzbox .erroralert").hide()}),$(".mobileyzbox .yzmbtn a").on("click",function(l){if(!fe){var d=$(".mobileyzbox .mobilebox input").val();if(!d){$(".mobileyzbox .erroralert").text("\u8BF7\u8F93\u5165\u624B\u673A\u53F7"),$(".mobileyzbox .erroralert").show();return}if(!/^1\d{10}$/.test(d)){$(".mobileyzbox .erroralert").text("\u8BF7\u8F93\u5165\u6B63\u786E\u624B\u673A\u53F7"),$(".mobileyzbox .erroralert").show();return}var v=z?"/api/vcard/sendVerificationCode":"/api/vcard/sendVerificationCodeG";fe=1,z?$.ajax({type:"GET",headers:{token:p("token")},url:v+"?projectid=74",contentType:"application/json",dataType:"json",data:{mobilePhone:d,uvcid:z?void 0:localStorage.uvcid||"",targetServerNameForOverride:n("targetServerNameForOverride")||void 0},async:!0,success:function(m){var w=m.data||{};m.code==200&&m.success&&(U=60,Te=setInterval(function(){U<=0?(U=60,$(".mobileyzbox .yzmbtn a").show(),$(".mobileyzbox .yzmbtn div").hide(),clearInterval(Te),fe=0):(U=U-1,$(".mobileyzbox .yzmbtn a").hide(),$(".mobileyzbox .yzmbtn div").text("\u5DF2\u53D1\u9001("+U+")").show())},1e3))}}):$.ajax({type:"POST",headers:{token:p("token")},url:v+"?projectid=74"+Ie,contentType:"application/json",dataType:"json",data:JSON.stringify({mobilePhone:d,uvcid:z?void 0:localStorage.uvcid||""}),async:!0,success:function(m){var w=m.data||{};m.code==200&&m.success&&(U=60,fe=1,Te=setInterval(function(){U<=0?(U=60,$(".mobileyzbox .yzmbtn a").show(),$(".mobileyzbox .yzmbtn div").hide(),clearInterval(Te),fe=0):(U=U-1,$(".mobileyzbox .yzmbtn a").hide(),$(".mobileyzbox .yzmbtn div").text("\u5DF2\u53D1\u9001("+U+")").show())},1e3))}})}}),$(".mobileyzbox .subbtn a").on("click",function(l){var d=$(".mobileyzbox .mobilebox input").val(),v=$(".mobileyzbox .yzmbox input").val();if(!d){$(".mobileyzbox .erroralert").text("\u8BF7\u8F93\u5165\u624B\u673A\u53F7"),$(".mobileyzbox .erroralert").show();return}if(!/^1\d{10}$/.test(d)){$(".mobileyzbox .erroralert").text("\u8BF7\u8F93\u5165\u6B63\u786E\u624B\u673A\u53F7"),$(".mobileyzbox .erroralert").show();return}if(!v){$(".mobileyzbox .erroryzmalert").text("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"),$(".mobileyzbox .erroryzmalert").show();return}$(".mobileyzbox .erroryzmalert,.mobileyzbox .erroralert").hide();var m=z?"/api/vcard/checkVerifyCode":"/api/vcard/checkVerifyCodeG";$.ajax({type:"POST",headers:{token:p("token")},url:m+"?projectid=74"+Ie,contentType:"application/json",dataType:"json",data:JSON.stringify({code:v,mobilePhone:d,uvcid:z?void 0:localStorage.uvcid||""}),async:!0,success:function(w){parseInt(w.code)==200?(window.localStorage.setItem("notokencheckCode",1),layer.open({content:"\u9A8C\u8BC1\u6210\u529F",skin:"msg"}),ve=1,layer.closeAll(),i&&i()):($(".mobileyzbox .erroryzmalert").text(w.message),$(".mobileyzbox .erroryzmalert").show())}})})},content:e})}function oe(i,e,a,t){if(i==2){Se[a]=e;var l=e.infoType,d=e.title,v="",m=e.isVertical?e.computerPicPathVertical||[]:e.computerPicPath||[],w=e.resolution||"414*736",S=e.thumb;m&&m.length&&(v=m[0].sourcePath);var Je=e.infoSource||{url:""};if($(".swiper-slide.swiper-slide-"+a).html(`<div class='videoContentbox'><div class="videoPoster video-js" style="background-image: url(`+g(v||S)+')"><button style="top: 50%;left: 50%;margin-left: -1.5em;margin-top: -0.75em;transform: inherit;" class="vjs-big-play-button videoIcon" type="button" title="Play Video" aria-disabled="false"><span aria-hidden="true" class="vjs-icon-placeholder"></span><span class="vjs-control-text" aria-live="polite">Play Video</span></button>'+(t?"":Le)+"</div>"),w){var Oe=w.split("*"),ue=$(document).width()*(Oe[1]/Oe[0]);$(".swiper-slide-"+a+" .videoContentbox").css({height:"100%",background:"url("+g(e.videoUrl&&e.videoId&&e.infoType=="6"||e.videoUrl&&e.videoId&&e.infoType=="0"?S||v:v||S)+") center center no-repeat",backgroundSize:"contain",maxWidth:"100%",maxHeight:"100%",position:"absolute",width:"100%",left:"0px",top:"0px"}),t||$("#shortvideopreview").css({height:"100%",paddingTop:0})}if(e.videoUrl&&!t){var Me="/design/designstatic/chatroom/video/video.min.7.4.js",G=window.navigator.userAgent.toLowerCase();if(G.match(/MicroMessenger/i)=="micromessenger"){var he=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);Me=he?"/design/designstatic/newJS/information/video/7.0.0/video.min.js":"/design/designstatic/newJS/information/video/7.0.2/video.min.js"}$.getScript(Me,function(){var o={poster:g(e.videoUrl&&e.videoId&&e.infoType=="6"||e.videoUrl&&e.videoId&&e.infoType=="0"?S||v:v||S),controls:!0,controlBar:{playToggle:!0,fullscreenToggle:!0}};k=videojs("shortvideopreview",o,function(){k.src({src:e.videoUrl,type:"application/x-mpegURL"}),$(".swiper-slide-"+a+" .videoPoster .videoIcon").on("click",function(){$(".swiper-slide-"+a+" .videoPoster").hide(),k.play()}),$("video").on("touchend",function(){$(this)[0].paused?k.play():k.pause()}),$("video").on("click",function(){$(this)[0].paused?k.play():k.pause()})})})}var se=[],F=[],ge=[],D=0,me="",Ae=e.relationMap||[];Ae.forEach(function(o,u,T){o.relationType=="3"&&(D=o.busId,me=o.title),o.relationType=="1"&&F.push(o),o.relationType=="2"&&ge.push(o),o.relationType=="4"&&se.push(o)});var q="",V="",H="";if(!t){if(F.length&&(q+="<div class='relationinfoul'><h2 class='label'>\u70ED\u95E8\u6587\u7AE0</h2>",F.forEach(function(o,u,T){var P=ne(o.gmtCreate),x=o.isUrlInfo?(o.infoUrl||"").indexOf("http")<0?"//"+o.infoUrl:o.infoUrl||"":"",C=x||(location.port=="81"?"/pages/information.html?aid="+o.busId:"/information/"+o.busId+".shtml");q+="<div class='infoli'><div class='infotitle'><a target='_blank' href='"+C+"'>"+o.title.replace(/<script>/gi,j("<script>"))+"</a></div><div class='infointroduce'>"+o.introduce.replace(/<script>/gi,j("<script>"))+"</div><div class='infotime'>"+P+"</div></div>"}),q+="</div>"),se.length&&(V+="<div class='relationcourseul'><div class='label'>\u7CBE\u9009\u8BFE\u7A0B</div><div class='relationcourseulflex'>",se.forEach(function(o,u,T){var P=o.cover?o.cover:o.busInnerType==2||o.busInnerType==4?"/design/designstatic/common/image/course/package.jpg":"/design/designstatic/common/image/course/defult.jpg",x=parseInt(o.price)?"\xA5"+o.price/100:"\u514D\u8D39",C=o.busInnerType==2||o.busInnerType==4?"bundle":"info";V+="<a target='_blank' href='/pages/wap/"+C+".html?cid="+o.busId+"'><div class='courseli'><div class='coursecover' style='background-image: url("+g(P)+")'></div><div class='coursebottom'><div class='courseprice'>"+x+"</div><div class='coursefl'>"+o.title.replace(/<script>/gi,j("<script>"))+"</div></div></div></a>"}),V+="</div></div>"),ge.length&&(H+="<div class='relationshopul'><div class='label'>\u597D\u7269\u63A8\u8350</div><div class='relationshopulflex'>",ge.forEach(function(o,u,T){var P=o.cover||"",u=P.lastIndexOf(".done")>=0?P.lastIndexOf(".done"):P.lastIndexOf("."),x=P?P.substring(0,u)+".jpg":"";if(!x){var C=o.coverList?JSON.parse(o.coverList):[];C&&C.length&&(x=C[0].sourcePath)}var Ee="",B=o.price?o.price.split(","):[],xe=parseFloat(B&&B.length?B[0]:0),Y=parseFloat(B&&B.length?B[B.length-1]:0);Ee=xe||Y?o.paymentType=="2"?(xe||Y)+"\u79EF\u5206":"\uFFE5"+(xe||Y)/100:"",H+="<a target='_blank' href='/shop/item.html?itemid="+o.busId+"'><div class='shopli'><div class='shopcover' style='background-image: url("+g(x)+")'></div><div class='shopbottom'><div class='shopprice'>"+Ee+"</div><div class='shopfl'>"+o.title.replace(/<script>/gi,j("<script>"))+"</div></div></div></a>"}),H+="</div></div>"),D&&n("formId")!=D){var R=ze("formId="),W=location.origin+location.pathname+R+(R?"&":"?")+"formId="+D;history.replaceState&&location.href!=W?history.replaceState({},"",W):location.href!=W&&(location.href=W)}var ye='<div class="tjmodalshadow"></div><div class="tjmodal tjmodalhide">'+(q+V+H?q+V+H:'<div style="text-align: center;margin-top:120px;">\u6682\u65E0\u63A8\u8350</div>')+" </div>",Ge='<div class="formmodal formmodalhide"><iframe id="formiframe" src="" style="height:97%;width:100%;margin:0px;padding:0px;border:0px;"></iframe></div>';$(".relation").html(ye+Ge)}var ie='<div class="infocontent">'+(D?'<div formId="'+D+'" title="'+me+'" class="formBtn">'+me+"</div>":"")+'<div class="infotitle">'+d+"</div>"+(e.introduce?'<div class="infointroducetext">'+e.introduce+"</div>":"")+((e.infoType=="0"||e.infoType=="1")&&!e.applyOriginal?"<div class='infostatementtipbtn' style='display: block;color: #fff; margin-top: 6px;'><div style='display: inline-block;cursor: pointer;background: rgba(255, 255, 255, 0.1);padding: 2px 6px;' class='infostatementtip'>\u24D8 \u514D\u8D23\u58F0\u660E</div></div><div style='font-size:12px;display:none;' class='infotipscontent'>\u58F0\u660E\uFF1A\u672C\u5E73\u53F0\u53D1\u5E03\u7684\u5185\u5BB9\uFF08\u56FE\u7247\u3001\u89C6\u9891\u548C\u6587\u5B57\uFF09\u4EE5\u539F\u521B\u3001\u8F6C\u8F7D\u548C\u5206\u4EAB\u7F51\u7EDC\u5185\u5BB9\u4E3A\u4E3B\uFF0C\u5982\u679C\u6D89\u53CA\u4FB5\u6743\u8BF7\u5C3D\u5FEB\u544A\u77E5\uFF0C\u6211\u4EEC\u5C06\u4F1A\u5728\u7B2C\u4E00\u65F6\u95F4\u5220\u9664\u3002\u6587\u7AE0/\u89C6\u9891\u89C2\u70B9\u4E0D\u4EE3\u8868\u672C\u5E73\u53F0\u7ACB\u573A\uFF0C\u5982\u9700\u5904\u7406\u8BF7\u8054\u7CFB\u5BA2\u670D\u3002</div>":"")+"</div>";if($(".swiper-slide.swiper-slide-"+a).append(ie),$(".swiper-slide.swiper-slide-"+a+" .formBtn").on("click",function(){var o=$(this).attr("formId"),u=ze("formId="),T=window.location.origin+"/portal/form.html?formId="+o+"&formInfoId="+a+(u.substr(1)?"&"+u.substr(1):"");$("#formiframe").attr("src",T),$(".tjmodalshadow").show(),$(".formmodal").removeClass("formmodalhide")}),$(".infostatementtipbtn").on("click",function(){$(this).hide().siblings(".infotipscontent").show()}),$(".infotipscontent").on("click",function(){$(this).hide().siblings(".infostatementtipbtn").show()}),$(".swiper-slide-"+a+" .infointroducetext").truncaString({length:32,id:a,hideClue:!0,isHide:!0,moreText:"\u5C55\u5F00 \u2228",hideText:"\u6536\u8D77 \u2227",boundary:/^(\s|\u002c|\u002e|[\u4E00-\u9FA5])+$/}),!t){var X=(e.relationMap||[]).filter(o=>o.relationType!="3"),qe='<div class="actioncontent"><div class="like'+(e.praised?" onlike":"")+'">\u70B9 \u8D5E</div><div class="share">\u5206 \u4EAB</div><div class="recommend doudongItem">\u63A8 \u8350'+(q+V+H?"<i>"+(X.length||"")+"</i>":"")+"</div></div>";$(".content").append(qe),$(".actioncontent .like").on("click",function(){var o=$(".swiper-slide.swiper-slide-active").attr("infoId"),u=Se[o];if(u.praised){layer.open({content:"\u4E0D\u53EF\u91CD\u590D\u70B9\u8D5E",skin:"msg",time:2e3});return}$.ajax({type:"POST",headers:{token:p("token")},url:"/api/common/infoPraise?projectid=16"+Ie,contentType:"application/json",dataType:"json",data:JSON.stringify({commonHomepageInfoId:o}),async:!0,success:function(T){parseInt(T.code)==200?(Se[o].praised=!0,$(".actioncontent .like").addClass("onlike")):layer.open({content:T.message||"\u70B9\u8D5E\u5931\u8D25\uFF01",skin:"msg",time:2e3})}})}),$(".actioncontent .recommend").on("click",function(){$(".tjmodalshadow").show(),$(".tjmodal").removeClass("tjmodalhide")}),$(".tjmodalshadow").on("click",function(){$(".tjmodalshadow").hide(),$(".tjmodal").addClass("tjmodalhide"),$(".formmodal").addClass("formmodalhide")})}}else{var i=i==1?!0:(i==0,!1);$.ajax({headers:{token:p("token")},type:"GET",url:"/api/common/videoSwitchList",data:{targetServerNameForOverride:n("targetServerNameForOverride")||void 0,pageSize:1,infoId:a||Z()||n("aid")||ee(),before:i},dataType:"json",async:!1,success:function(u){if(u.code==200&&u.success){var T=u.data||[];if(T.length){var P=T.length?T[0]:{},x=P.commonHomepageInfoId||0;e&&(si=1),i?(Q.length?Q[0]:Q).prependSlide('<div infoId="'+x+'" class="swiper-slide swiper-slide-'+x+'"></div>'):(Q.length?Q[0]:Q).appendSlide('<div infoId="'+x+'" class="swiper-slide swiper-slide-'+x+'"></div>'),x&&$.ajax({type:"GET",headers:{token:p("token")},url:"/api/common/getHomepageDetail",contentType:"application/json",dataType:"json",data:{commonHomepageInfoId:x,targetServerNameForOverride:n("targetServerNameForOverride")||void 0},async:!0,success:function(C){C.code==200&&C.success&&oe(2,C.data,x,1)}})}else i?$(".swiper-slide-active").addClass("nohasprevmore"):$(".swiper-slide-active").addClass("nohasnextmore")}}})}}function Ci(i){if(!i)return"";var e=1024;return i<e?i+"B":i<Math.pow(e,2)?(i/e).toFixed(2)+"KB":i<Math.pow(e,3)?(i/Math.pow(e,2)).toFixed(2)+"M":i<Math.pow(e,4)?(i/Math.pow(e,3)).toFixed(2)+"G":(i/Math.pow(e,4)).toFixed(2)+"T"}function Hi(i){var e=i.replace(/([^.]*).([^.]*)$/g,"$1!medium.$2");return e}function n(i){var e=new RegExp("(^|&)"+i+"=([^&]*)(&|$)"),a=window.location.search.substr(1).match(e);return a!=null?unescape(a[2]):null}function Ce(i){var e=new RegExp("(^|&)"+i+"=([^&]*)(&|$)","i"),a=window.location.search.substr(1).match(e),t="";return a!=null&&(t=a[2]),e=null,a=null,t==null||t==""||t=="undefined"?"":t}function Z(){for(var i=location.href.split("/"),e=0,a=i.length;e<a;e++){var t=i[e];if(t.indexOf(".shtml")>-1)return t.split(".shtml")[0]}return!1}function ee(){for(var i=location.href.split("/"),e=0,a=i.length;e<a;e++){var t=i[e];if(t.indexOf(".html")>-1)return t.split(".html")[0]}return!1}function p(i){for(var e=document.cookie,a=e.split("; "),t=0;t<a.length;t++){var l=a[t].split("=");if(l[0]==i)return l[1]}return""}function di(i,e){var a=30,t=new Date;t.setTime(t.getTime()+a*24*60*60*1e3),document.cookie=i+"="+escape(e)+";path=/;expires="+t.toGMTString()}function h(){var i=navigator.userAgent.toLowerCase(),e=i.indexOf("wujiapp")>-1;if(window.__wxjs_environment==="miniprogram")return 4;if(i.match(/MicroMessenger/i)=="micromessenger"){var a={win:!1,mac:!1},t=navigator.platform;return a.win=t.indexOf("Win")==0,a.mac=t.indexOf("Mac")==0,a.win||a.mac?9:1}else return window.localStorage.appAdapt==="true"||window.localStorage.appAdapt===!0||e?5:n("channel")?n("channel"):/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)?2:3}function ze(i){for(var e=location.search,a=e.split("&"),t="",l=0,d=a.length;l<d;l++){var v=a[l];v.indexOf("?"+i)>-1?l+1!==d&&(t+="?"):v.indexOf(i)==0||(t+=t&&t!="?"?"&"+v:v)}return t}function zi(i){switch(i){case"0":return"1";case"1":return"2";case"2":return"8";case"7":return"9";case"6":return"10";case"5":return"11";case"4":return"12";case"3":return"13";case"11":return"16";case"8":return"19";case"9":return"18";case"10":return"17";case"13":return"21";case"14":return"22";case"15":return"23";default:return"0"}}function Ue(){$(document).off("touchend"),$(document).off("click"),$(document).on("touchend",function(){var i="wxa09a4ca9fba61af1",e="wx60a208c13d8acea1",a="test.1x.cn";cdnPath=="//pre-static.1x.cn"&&(i="wxc0968245d91aaf85",e="wx60a208c13d8acea1",a="pre.xx.cn"),cdnPath=="//static.wxbig.cn"&&(i="wxc420bf93bbe26d62",e="wx1ae69c2e8734dd28",a="sys.wxdad.cn");var t=window.location.href,l=decodeURIComponent(decodeURIComponent(t)),d=l+(l.indexOf("?")>-1?"&":"?")+"noevxtoken=true",v=encodeURIComponent(d),m=window.frames.length!=parent.frames.length;$.ajax({headers:{token:p("token")},type:"GET",url:"/api/welink/wechat/qrCode/url",data:{targetServerNameForOverride:n("targetServerNameForOverride")||void 0,envTypeName:"official_account",sceneTypeName:"consulting",redirectUrl:v},dataType:"json",async:!1,success:function(w){if(w.code==200&&w.success){var S=w.data||{};S.url&&(m?window.parent.location.href=S.url:window.location.replace(S.url))}}})}),$(document).on("click",function(){var i="wxa09a4ca9fba61af1",e="wx60a208c13d8acea1",a="test.1x.cn";cdnPath=="//pre-static.1x.cn"&&(i="wxc0968245d91aaf85",e="wx60a208c13d8acea1",a="pre.xx.cn"),cdnPath=="//static.wxbig.cn"&&(i="wxc420bf93bbe26d62",e="wx1ae69c2e8734dd28",a="sys.wxdad.cn");var t=window.location.href,l=decodeURIComponent(decodeURIComponent(t)),d=l+(l.indexOf("?")>-1?"&":"?")+"noevxtoken=true",v=encodeURIComponent(d),m=window.frames.length!=parent.frames.length;$.ajax({headers:{token:p("token")},type:"GET",url:"/api/welink/wechat/qrCode/url",data:{targetServerNameForOverride:n("targetServerNameForOverride")||void 0,envTypeName:"official_account",sceneTypeName:"consulting",redirectUrl:v},dataType:"json",async:!1,success:function(w){if(w.code==200&&w.success){var S=w.data||{};S.url&&(m?window.parent.location.href=S.url:window.location.replace(S.url))}}})})}function Ui(i){var e="1."+(i||"").toLowerCase(),a="unknow@2x";return/^\w+\.(docx|doc)$/.test(e)?a="-e-doc@2x":/^\w+\.(xlsx|xls)$/.test(e)?a="-e-xlsx@2x":/^\w+\.(pptx|ppt)$/.test(e)?a="-e-pptx@2x":/^\w+\.(pdf)$/.test(e)?a="-e-pdf@2x":/^\w+\.(jpg|jpeg|bmp|gif|png)$/.test(e)?a="image":/^\w+\.(avi|mov|rmvb|rm|flv|mp4|3gp)$/.test(e)?a="-e-mp4@2x":/^\w+\.(mp3)$/.test(e)?a="-e-music@2x":/^\w+\.(rar|zip|gz|7z)$/.test(e)&&(a="-e-zip@2x"),a}function j(i){var e=document.createElement("div");return e.innerText?e.innerText=i:e.textContent=i,e.innerHTML}function g(i){return(i||"").replace(/(^\s*)/g,"").indexOf("http")!=0&&(i||"").indexOf(cdnPath)<0&&(i||"").indexOf("data:image")!==0?cdnPath+i:i}function ne(i,e){if((i+"").length==10&&(i=i*1e3),new Date(parseInt(i))=="Invalid Date"&&new Date(parseInt(i)*1e3)=="Invalid Date")return"--";new Date(parseInt(e))=="Invalid Date"&&new Date(parseInt(e)*1e3)=="Invalid Date"&&(e=Date.parse(new Date));var a=(e-i)/1e3;if(a<0)return"\u521A\u521A";if(a<60)return parseInt(a,10)+"\u79D2\u524D";if(a<3600)return parseInt(a/60,10)+"\u5206\u949F\u524D";if(a<24*3600)return parseInt(a/3600,10)+"\u5C0F\u65F6\u524D";if(a<7*24*3600)return parseInt(a/3600/24,10)+"\u5929\u524D";if(a<30*24*3600)return parseInt(a/3600/24/7,10)+"\u5468\u524D";if(a<365*24*3600)return parseInt(a/3600/24/30,10)+"\u4E2A\u6708\u524D";var t=new Date(parseInt(i)),l=parseInt(t.getMonth()+1)<10?"0"+(t.getMonth()+1):t.getMonth()+1,d=parseInt(t.getDate())<10?"0"+t.getDate():t.getDate(),v=parseInt(t.getHours())<10?"0"+t.getHours():t.getHours(),m=parseInt(t.getMinutes())<10?"0"+t.getMinutes():t.getMinutes();return t.getFullYear()+"-"+l+"-"+d+" "+v+":"+m}})();
|