var comFun={};(function(s,m){var i={init:function(){var t=this;t.getValue("token")&&(t.setCookie("token",t.getValue("token")),t.setCookie("openid",t.getValue("openid"))),m.location.href.indexOf("/mp/index.shtml")>-1||m.location.href.indexOf("/pages/routine/")>-1?(t.miniprogram=!0,localStorage.miniprogram=!0):(t.miniprogram=!1,localStorage.miniprogram=!1)},getValue:function(t){var e=e||window.location.href,n=e.split("?");if(n.length==1)return null;for(var a=n[1].split("&"),r={},l=0;l'),document.write(''),window.wx||document.write('');var scriptUrl="/design/designstatic/common/js/userMobile.js";loadScriptmin(scriptUrl,function(){var s=window.user,m={init:function(){var i=this;i.getLoginUser(),i.handleBtn(),$(document).scrollTop(0)},getLoginUser:function(i){var t=this;getCookie("token")&&s.isLogin(function(e){e.success&&(t.login(e.data,e.timeStamp),i&&(e.data.userTypeExact=="STUDENT",window.location.href=window.basePath?"/"+window.basePath+"#/":"/#/"))})},login:function(i,t){for(var e=this,n=$(".module[data-type=registerLogin]"),a=(i==null?void 0:i.user)||{},r=0,l=n.length;r'+(a.nickname||a.name||"")+' | \u9000\u51FA';d.find(".box").html(u)}$(".quitBtn").on("click",function(){s.loginout(function(c){c.success&&(window.location.href="/")})})},handleBtn:function(){for(var i=this,t=$(".module[data-handle=login]"),e=0,n=t.length;e',a=function(o){var f="";return parseInt(o.courseType)==2?f=l+"/bundle.html?cid="+o.courseId:f=l+"/info.html?cid="+o.courseId,'
  • '+o.courseName+''+o.introduce+"
  • "};break;case"xtwlb":n='
      ',a=function(o){var f="";return parseInt(o.courseType)==2?f=l+"/bundle.html?cid="+o.courseId:f=l+"/info.html?cid="+o.courseId,'
    • '+o.courseName+''+o.introduce+"
    • "};break;case"twlb":n='
        ',a=function(o){var f="";return parseInt(o.courseType)==2?f=l+"/bundle.html?cid="+o.courseId:f=l+"/info.html?cid="+o.courseId,'
      • '+o.courseName+''+o.mainTeacher+''+o.introduce+"
      • "};break;case"ttlb":var d="";parseInt(e[0].courseType)==2?d=l+"/bundle.html?cid="+e[0].courseId:d=l+"/info.html?cid="+e[0].courseId,n='
          ',n+='
        • '+e[0].courseName+''+e[0].mainTeacher+''+e[0].introduce+"
        • ",a=function(o){var f="";return parseInt(o.courseType)==2?f=l+"/bundle.html?cid="+o.courseId:f=l+"/info.html?cid="+o.courseId,'
        • '+o.courseName+''+o.introduce+"
        • "};break;case"btrqlb":n='
            ',a=function(o){var f="";return parseInt(o.courseType)==2?f=l+"/bundle.html?cid="+o.courseId:f=l+"/info.html?cid="+o.courseId,'
          • '+o.courseName+''+o.mainTeacher+''+o.introduce+"
          • "};break}for(var u=0,c=e.length;u",t.item.html(n)},courseWare:function(){var t=this;t.$courseware=s(".module[data-type=courseware]");for(var e=0,n=t.$courseware.length;e',r=function(c){return'
          • '+c.courseWareName+''+c.introduce+"
          • "};break;case"xtwlb":a='
              ',r=function(c){return'
            • '+c.courseWareName+''+c.introduce+"
            • "};break;case"twlb":a='
                ',r=function(c){return'
              • '+c.courseWareName+''+c.realName+''+c.introduce+"
              • "};break;case"ttlb":a='
                  ',a+='
                • '+e[0].courseWareName+''+e[0].realName+''+e[0].introduce+"
                • ",r=function(c){return'
                • '+c.courseWareName+''+c.introduce+"
                • "};break;case"btrqlb":a='
                    ',r=function(c){return'
                  • '+c.courseWareName+''+c.realName+''+c.introduce+"
                  • "};break;default:}for(var l=0,d=e.length;l",t.item.html(a)},information:function(t){var e=this;e.$article=s(".module[data-type=article]");for(var n=0,a=e.$article.length;n',r=function(o){return'
                  • '+o.title+''+o.detail+"
                  • "};break;case"xtwlb":a='
                      ',r=function(o){return'
                    • '+o.title+''+o.detail+"
                    • "};break;case"twlb":a='
                        ',r=function(o){return'
                      • '+o.title+''+o.detail+"
                      • "};break;case"ttlb":a='
                          ',r=function(o,f){return f==0?'
                        • '+o.title+''+o.detail+"
                        • ":'
                        • '+o.title+''+o.detail+"
                        • "};break;case"btrqlb":a='
                            ',r=function(o){return'
                          • '+o.title+''+o.detail+"
                          • "};break;default:}for(var d=document.createElement("div"),u=0,c=e.length;u",t.item.html(a)},getAjaxRoomInfo:function(){var t=this;s.ajax({type:"get",url:"/api/disk/home?projectid=12",dataType:"json",success:function(e){e.success&&(window.roominfo=e.data,t.Render(e.data))}})},Render:function(t){var e=this;e.summary(t.introduction),e.QRcode(t.wechatQRCode),e.logo(t.logo),e.documentTitle(t)},summary:function(t){var e=this;if(e.$introduce=s(".module[data-type=introduce]"),e.$introduce.length<1)return!1;for(var n=0,a=e.$introduce.length;n
                            ');var r=t.find(".img_ul"),l=t.attr("data-canousel");if(!l)return!1;var d=s.parseJSON(l),u=d.list,c=u.length,p=d.playTime*1e3,o=d.changeTime,f=d.adapt,h=0,I=t.find(".barbox"),w="";if(c==1){var v=u[0];w+='
                            ',I.hide()}else if(c==2)for(var g=0;g<4;g++){var v=u[g%2];g==3?w+='
                            ':w+='
                            '}else for(var g=0;g
                            ':w+='
                            '}r.html(w);var j=t.find(".img_li"),x=j.length,b=I.find("li");b.eq(h).addClass("on");function L(){clearTimeout(e["carInter"+a]),e["carInter"+a]=setTimeout(function(){h++,r.css({transform:"translateX("+-h*10+"rem)","-webkit-transform":"translateX("+-h*10+"rem)","transition-duration":o+"s","-webkit-transition-duration":o+"s"}),b.removeClass("on"),c==2?b.eq(h%2).addClass("on"):b.eq(h%x).addClass("on"),T(h+1),L()},p)}function T(y){var q=y%x;j.eq(q).css("left",y*10+"rem")}if(c>=2){L();var N=0,k=0;n.addEventListener("touchstart",function(y){var q=y.targetTouches[0];N=q.pageX,clearInterval(e["carInter"+a])}),n.addEventListener("touchmove",function(y){var q=y.targetTouches[0];k=(q.pageX-N)/e.remSize,r.css({transform:"translateX("+(k-h*10)+"rem)","-webkit-transform":"translateX("+(k-h*10)+"rem)","transition-duration":"0s","-webkit-transition-duration":"0s"}),y.preventDefault()}),n.addEventListener("touchend",function(y){clearTimeout(e["carTimeout"+a]),k*k>9&&(k<0?(h++,T(h+1)):(h--,T(h-1))),r.css({transform:"translateX("+-h*10+"rem)","-webkit-transform":"translateX("+-h*10+"rem)","transition-duration":o/2+"s","-webkit-transition-duration":o/2+"s"}),b.removeClass("on"),c==2?b.eq(h%2).addClass("on"):b.eq(h%x).addClass("on"),e["carTimeout"+a]=setTimeout(function(){L()},o*1e3/2)})}},footerNav:function(){var t=this;t.$footerNav=s(".module[data-type=footerNav]");for(var e=0,n=t.$footerNav.length;e/g,l=r.exec(a)[0],d=s(l).filter(".content");s(".content").html(d.find(".curriculum").html()),s("head").append(''),s(".content").css("height","auto"),s(".course").css("overflow","hidden"),s(".content").append(''),s(".content").append(''),window.mainHome&&window.mainHome.init()}})}},renderFooterNav:function(t){var e=this,n=t.find("li"),a=t.attr("data-footernav");a&&(a=JSON.parse(a)),localStorage.home=s(".content").html(),comFun.getValue("designId")?e.designIdFooter(t,comFun.getValue("designId")):(n.eq(0).addClass("on"),a&&a.color&&(t.attr("data-color",a.color),n.eq(0).find("span").css("color",a.color)));var r=a.list;e.footDataList=r,n.on("click",function(){n.removeClass("on"),n.find("span").removeAttr("style");var l=s(this);l.addClass("on"),a&&a.color&&l.find("span").css("color",a.color);var d=l.index(),u=r[d].href,c=JSON.parse(u.data).data;if(c.designId)window.history.replaceState("/mp/index.shtml?designId="+c.designId,"","/mp/index.shtml?designId="+c.designId),e.getHtml(c.designId);else{var p=escape(window.location.origin+u.url);wx.miniProgram.navigateTo({url:"../innerview/innerview?relayurl="+p})}})},designIdFooter:function(t,e){var n=this;if(n.dfooter)return!1;n.dfooter=!0;var a=t.find("li");n.getHtml(e);var r=t.attr("data-footernav");r&&(r=JSON.parse(r));for(var l=r.list,d=0,u=l.length;d0)return!1;if(e.parent().attr("data-href")){var n=JSON.parse(e.parent().attr("data-href")),a=n.data;if(a.designId)t.getHtml(a.designId),t.loactHref=e.attr("mhref");else{var r=escape(window.location.origin+e.attr("mhref"));wx.miniProgram.navigateTo({url:"../innerview/innerview?relayurl="+r})}}else{var r=escape(window.location.origin+e.attr("mhref"));wx.miniProgram.navigateTo({url:"../innerview/innerview?relayurl="+r})}})},setAnimation:function(){}};i.init()})(jQuery,window),window.getPage||document.write(''),function(s,m){if(m.player)return!1;m.player={init:function(){var i=this;i.getVideoDatas()},getVideoDatas:function(){var i=this;i.playElement=s(".module[data-type=player]"),i.playerdatas=[];for(var t=0,e=i.playElement.length;t';s("#"+i.playerId).html(n)}},m.player.init()}(jQuery,window);function getCookie(s){for(var m=document.cookie,i=m.split("; "),t=0;t