(function(l,g){var h=navigator.userAgent;if(!i||o)return!1;var f=l("html"),n=f.width()/10,a=parseFloat(f.css("fontSize")),r=n/a,e=n*r;t(),l(document).ready(function(){t(),setTimeout(function(){t()},300)});function t(){if(e==1)return!1;f.css("fontSize",n+"px"),l("meta[name=viewport]").attr("content","initial-scale="+r+", maximum-scale="+r+", minimum-scale="+r+", user-scalable=no")}function i(){return/(Android).*/i.test(h)}function o(){return/MiuiBrowser/ig.test(h)}})(jQuery,window),function(l,g){var h={init:function(){var f=this;f.getValue("token")&&(f.setCookie("token",f.getValue("token")),f.setCookie("openid",f.getValue("openid"))),g.location.href.indexOf("/mp/index.shtml")>-1||g.location.href.indexOf("/pages/routine/")>-1?(f.miniprogram=!0,localStorage.miniprogram=!0):(f.miniprogram=!1,localStorage.miniprogram=!1)},getValue:function(f){var n=n||window.location.href,a=n.split("?");if(a.length==1)return null;if(a.length==2){for(var o=a[1].split("&"),s={},r=0;r'),document.write(''),document.write(''),document.write(''),document.write(''),document.write(''),document.write(''),document.write(''),document.write(''),document.write('');var scriptUrl="/design/designstatic/common/js/userMobile.js";loadScriptmin(scriptUrl,function(){var l=window.user,g=window.tokenjs,h=window.player,f={init:function(){if(g.getValue("errorCode")){var a=parseInt(g.getValue("errorCode")),r="";switch(a){case 602:r="\u975E\u7F51\u6821\u7528\u6237\u7981\u6B62\u767B\u5F55";break;case 606:r="\u5F53\u524D\u8D26\u53F7\u4E0D\u5B58\u5728";break;case 509:r="\u5DF2\u5F00\u542F\u8BBE\u5907\u9650\u5236\uFF0C\u60A8\u53EA\u80FD\u5728\u56FA\u5B9A\u8BBE\u5907\u4E0A\u8FDB\u884C\u767B\u5F55";break;case 601:r="\u5DF2\u7ED1\u5B9A\u5176\u4ED6\u8D26\u53F7";break;case 602:r="\u7528\u6237\u8D26\u53F7\u88AB\u9501\u5B9A";break;case 606:r="\u7528\u6237\u8D26\u53F7\u88AB\u5220\u9664";break;case 707:r="\u60A8\u5DF2\u88AB\u7981\u6B62\u767B\u5F55";break}r&&(layer?layer.open({content:r,skin:"msg",time:2}):alert(r)),window.history.replaceState(null,null,"/")}var e=this;e.getLoginUser(),setTimeout(function(){e.handleBtn()},0),g.getValue("redirectUrl")&&!getCookie("token")&&l.loginLayer(function(o){o.success&&(window.location.href=g.getValue("redirectUrl"))}),g.getValue("redirect")&&!getCookie("token")&&l.loginLayer(function(o){o.success&&(window.location.href=g.getValue("redirect")+"?cwid="+g.getValue("cwid")+"&courseId="+g.getValue("courseId"))});var t=localStorage.getItem("queryusernameloginShow");if(t&&Date.parse(new Date)-JSON.parse(unescape(t)).time<1e4){var i=JSON.parse(unescape(t));i.data=="1"?l.loginLayer():i.data=="2"&&l.getPasswordLayer(),localStorage.removeItem("queryusernameloginShow")}e.bindGoBuyCar()},getLoginUser:function(a){var r=this;getCookie("token")?l.isLogin(function(e){e.success?(r.loginUserData=e.data,r.login(e.data,e.timeStamp),a&&!l.loginAfterJump&&(e.data.userTypeExact=="STUDENT",window.location.href=window.basePath?"/"+window.basePath+"#/":"/#/")):r.carryStorageLogin()}):r.carryStorageLogin()},carryStorageLogin:function(){var a=this;if(localStorage.isSaveAPWordKey&&window.decrypt){var r=decrypt(localStorage.isSaveAPWordKey),e=JSON.parse(r),t=e.a,i=e.b,o=+e.t;Date.now()-o<3600*1e3*24*10&&l.login(t,i,function(s){if(s.success)a.getLoginUser(!0);else{var v=s.message;switch(parseInt(s.code)){case 200:v="\u5BC6\u7801\u6216\u8D26\u53F7\u4E0D\u6B63\u786E\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165";break;case 400:v="\u8BE5\u7F51\u6821\u9700\u8981\u4F7F\u7528\u9501\u5C4F\u6D4F\u89C8\u5668\u767B\u5F55";break;case 403:v="\u8D26\u53F7\u7C7B\u578B\u4E0D\u6B63\u786E";break;case 503:v="\u5DF2\u88AB\u9650\u5236\u767B\u5F55";break;case 707:v="\u60A8\u5DF2\u88AB\u7981\u6B62\u767B\u5F55";break}if(s.success){var p=s.data;if(p){var c=p.errCode;c=="4012"?v="\u8D85\u8FC7\u9650\u5236\u6B21\u6570"+p.limitCount+"\u6B21\uFF0C\u8BF7"+p.denyTime/60+"\u5206\u949F\u540E\u91CD\u8BD5":v="\u5BC6\u7801\u6216\u8D26\u53F7\u4E0D\u6B63\u786E\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"}else v="\u5BC6\u7801\u6216\u8D26\u53F7\u4E0D\u6B63\u786E\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"}window.layer?layer.msg(v,{icon:1}):alert(v)}})}},login:function(a,r){for(var e=this,t=$(".module[data-type=registerLogin]"),i=(a==null?void 0:a.user)||{},o=0,s=t.length;o'+escape(i.nickname||i.name||"")+' | \u9000\u51FA';v.find(".box").html(p)}$(".quitBtn").on("click",function(){window.player.mobileVideoShow(!1),l.loginout(function(c){c.success&&window.location.reload()})})},handleBtn:function(){for(var a=this,r=$("[data-handle=login]"),e=0,t=r.length;e0&&e.length>0&&designUploadPoint(e)})},bindLoginBtnEvent:function(a){var r=a.parents(".module[data-type=registerLogin]").attr("data-login");r&&(r=JSON.parse(r));var e=this;a.on("click",function(){designUploadPoint($(this)),window.player.mobileVideoShow(!1),window.location=location.origin+(window.basePath?"/"+window.basePath+"#/":"/#/")+"login"})},bindRegisterEvent:function(a){var r=this;a.on("click",function(){designUploadPoint($(this)),window.player.mobileVideoShow(!1),l.registerLayer(function(e){e.success&&r.getLoginUser(!0)})})},bindRegisterSchoolEvent:function(a){var r=this;a.on("click",function(){designUploadPoint($(this)),window.player.mobileVideoShow(!1),l.registerSchoolLayer()})},bindQQloginEvent:function(a){var r=this;a.on("click",function(){designUploadPoint($(this)),l.loginQQ()})},bindWechatLoginEvent:function(a){var r=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodeloginWeChat()})},bindenWechatLoginEvent:function(a){var r=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodeloginenWeChat()})},binddingdingLoginEvent:function(a){var r=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodelogindingding()})},bindappLoginEvent:function(a){var r=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodeloginapp()})},binddialogEvent:function(a){var r=this;a.on("click",function(e){designUploadPoint($(this));var t=a.attr("data-href")?JSON.parse(a.attr("data-href")):{};l.dialogBtnx(t)})},bindWeiboLoginEvent:function(a){var r=this;a.on("click",function(){designUploadPoint($(this)),l.loginWeiBo()})},bindAlipayLoginEvent:function(a){var r=this;a.on("click",function(){designUploadPoint($(this)),l.loginAlipay()})},bindGetPasswodEvent:function(a){var r=this;a.on("click",function(){designUploadPoint($(this)),window.player.mobileVideoShow(!1),l.getPasswordLayer()})},bindGetUsernameEvent:function(a,r){var e=this;a.on("click",function(){designUploadPoint($(this)),l.getUsernameLayer(r)})},bindGetExchangecouponEvent:function(a){var r=this;a.on("click",function(){designUploadPoint($(this)),l.isLogin(function(e){e.success?l.getExchangecoupon():l.loginLayer()})})},bindGoBack:function(a){a.on("click",function(){designUploadPoint($(this)),window.history.go(-1)})},BindQRcode:function(a){a.on("click",function(){designUploadPoint($(this)),l.getQRcodeLayer()})},BindCollectionCoupon:function(a){var r=this;a.on("click",function(e){designUploadPoint($(this)),window.user.useInfo?r.carryCouponEvent(a):l.loginLayer(function(){})})},carryCouponEvent:function(a,r){var e=this,t=JSON.parse(a.attr("data-href")),i=t.data.couponKeys.join(","),o=void 0;if(window.decrypt&&localStorage.encryptId){var s=window.decrypt(localStorage.encryptId).split(",");r?s.length>0&&(o=s[0]):s.length>1&&(o=s[1])}l.getDressUpCouponShareList({couponIds:i,shareId:o},function(v){v.success&&l.getCouponLayer(v.data,{couponIds:i,shareId:o})})},bindGoBuyCar:function(){var a=this;$("[data-event=goBuyCar]").on("click",function(){var r=$(this).parent().attr("data-href");a.loginUserData?a.goBuyCarEvent(r):l.loginLayer(function(e){e.success&&a.goBuyCarEvent(r)})})},goBuyCarEvent:function(a){var r=this,e=isJSON(a)?JSON.parse(a):!1;if(!e)return!1;var t=e.data,i="",o=[""],s=r.getValue("diliater")||"";window.base64&&(i=r.getValue("shareId")?base64.decode(r.getValue("shareId")):""),window.decrypt&&(o=decrypt(s).split(","));var v=[{goodsId:t.vipId,price:t.price,goodsUrl:location.origin+"/pages/memberDetail.html?vipId="+t.vipId,goodsType:"7",goodsName:t.vipName,cover:t.cover,introduce:t.remark,endTime:t.deadline}];$.ajax({type:"POST",headers:{token:getCookie("token")},url:"/api/order/shoppingCart",contentType:"application/json",dataType:"json",data:JSON.stringify({goodsList:v,clientType:r.getclueChannel(),shareUserId:i||(o.length>1?o[1]:""),pvid:sessionStorage.pvid,uvcid:localStorage.uvcid}),async:!0,success:function(p){p.success&&(location.href="/pay/#/shopping")}})},getclueChannel:function(){var a=this,r=navigator.userAgent.toLowerCase(),e;if(window.__wxjs_environment==="miniprogram")e=4;else if(r.match(/MicroMessenger/i)=="micromessenger"){var t={win:!1,mac:!1},i=navigator.platform;t.win=i.indexOf("Win")==0,t.mac=i.indexOf("Mac")==0,t.win||t.mac?e=9:e=1}else localStorage.appAdapt===!0||localStorage.appAdapt==="true"?e=a.getValue("channel")||5:a.getValue("channel")?e=a.getValue("channel"):/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)?e=2:e=3;return e}};if(window.mainHome=f,window.secondShareHtml)var n=setInterval(function(){window.secondShareHtmlSuccess&&(clearInterval(n),f.init())},20);else f.init()});function escape(l){var g=document.createElement("div"),h=document.createTextNode(l);return g.appendChild(h),g.innerHTML}function loadScriptmin(l,g,h){var f=this,n=document.createElement("script");n.type="text/javascript",n.readyState?n.onreadystatechange=function(){(n.readyState=="loaded"||n.readyState=="complete")&&(n.onreadystatechange=null,g.bind(f)(h))}:n.onload=function(){g.bind(f)(h)},n.src=l,document.body.appendChild(n)}function unit(l){return l/37.5+"rem"}(function(l,g){var h={init:function(){var n=this;l(document).ready(function(){setTimeout(function(){n.fixed()},100)}),n.serach(),n.course(),n.courseWare(),n.information(),n.getAjaxRoomInfo(),n.canousel(),n.footerNav(),n.setAnimation(),n.headerNav(),n.aHrefClick()},fixed:function(){for(var n=this,a=l(".module[data-fixed]"),r=0,e=a.length;r',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=s+"/bundle.html?cid="+u.courseId:d=s+"/info.html?cid="+u.courseId,'
  • '+u.courseName+''+u.mainTeacher+"
  • "};break;case"xtwlb":r='
      ',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=s+"/bundle.html?cid="+u.courseId:d=s+"/info.html?cid="+u.courseId,'
    • '+u.courseName+""+(o?''+u.mainTeacher+"":"")+(i?''+u.popularityCount+"":"")+"
    • "};break;case"twlb":r='
        ',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=s+"/bundle.html?cid="+u.courseId:d=s+"/info.html?cid="+u.courseId,'
      • '+u.courseName+''+u.introduce+""+(o?''+u.mainTeacher+"":"")+(i?''+u.popularityCount+"":"")+"
      • "};break;case"ttlb":var v="";parseInt(a[0].courseType)==2||parseInt(a[0].courseType)==4?v=s+"/bundle.html?cid="+a[0].courseId:v=s+"/info.html?cid="+a[0].courseId,r='
          ',r+='
        • '+a[0].courseName+''+a[0].mainTeacher+''+a[0].introduce+"
        • ",e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=s+"/bundle.html?cid="+u.courseId:d=s+"/info.html?cid="+u.courseId,'
        • '+u.courseName+''+u.mainTeacher+"
        • "};break;case"btrqlb":r='
            ',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=s+"/bundle.html?cid="+u.courseId:d=s+"/info.html?cid="+u.courseId,'
          • '+u.courseName+''+u.introduce+""+(o?''+u.mainTeacher+"":"")+(i?''+u.popularityCount+"":"")+"
          • "};break}for(var p=0,c=a.length;p",n.item.html(r)},courseWare:function(){var n=this;n.$courseware=l(".module[data-type=courseware]");for(var a=0,r=n.$courseware.length;a',o=function(c){return'
          • '+c.courseWareName+''+c.realName+"
          • "};break;case"xtwlb":e='
              ',o=function(c){return'
            • '+c.courseWareName+""+(i?''+c.realName+"":"")+(t?''+c.popularityCount+"":"")+"
            • "};break;case"twlb":e='
                ',o=function(c){return'
              • '+c.courseWareName+''+c.introduce+""+(i?''+c.realName+"":"")+(t?''+c.popularityCount+"":"")+"
              • "};break;case"ttlb":e='
                  ',e+='
                • '+a[0].courseWareName+''+a[0].realName+''+a[0].introduce+"
                • ",o=function(c){return'
                • '+c.courseWareName+''+c.realName+"
                • "};break;case"btrqlb":e='
                    ',o=function(c){return'
                  • '+c.courseWareName+''+c.introduce+""+(i?''+c.realName+"":"")+(t?''+c.popularityCount+"":"")+"
                  • "};break;default:}for(var s=0,v=a.length;s",n.item.html(e)},information:function(n){var a=this;a.$article=l(".module[data-type=article]");for(var r=0,e=a.$article.length;r'}return m};switch(n.styleType){case"wzlb":e='
                      ',t=function(d){return'
                    • '+d.title+''+r.getTimeString(d.gmtCreate)+"
                    • "};break;case"xtwlb":e='
                        ',t=function(d){return'
                      • '+d.title+""+(s?''+r.getTimeString(d.gmtCreate)+"":"")+(o?''+d.viewCount+"":"")+"
                      • "};break;case"twlb":e='
                          ',t=function(d){return'
                        • '+d.title+''+d.introduce+""+(s?''+r.getTimeString(d.gmtCreate)+"":"")+(o?''+d.viewCount+"":"")+"
                        • "};break;case"ttlb":e='
                            ',t=function(d,m){return'
                          • '+d.title+''+v(u.computerPicPath)+""+(s?''+r.getTimeString(d.gmtCreate)+"":"")+(o?''+d.viewCount+"":"")+"
                          • "};break;case"btrqlb":e='
                              ',t=function(d){return'
                            • '+d.title+''+d.introduce+""+(s?''+r.getTimeString(d.gmtCreate)+"":"")+(o?''+d.viewCount+"":"")+"
                            • "};break;default:}for(var p=document.createElement("div"),c=0,b=a.length;c",n.item.html(e)},getAjaxRoomInfo:function(){var n=this;l.ajax({type:"get",url:"/api/disk/home?projectid=12",dataType:"json",success:function(a){a.success&&(window.roominfo=a.data,n.roominfo=a.data,n.Render(a.data))}})},Render:function(n){var a=this;a.summary(n.introduction),a.QRcode(n.wechatQRCode),a.logo(n.logo),a.documentTitle(n)},summary:function(n){var a=this;if(a.$introduce=l(".module[data-type=introduce]"),a.$introduce.length<1)return!1;for(var r=0,e=a.$introduce.length;r
                              ');var t=n.find(".img_ul"),i=n.attr("data-canousel");if(!i)return!1;var o=l.parseJSON(i),s=o.list,v=n.find(".barbox");o.nav&&a.renderCanouselBarbox(v,s);var p=s.length,c=parseFloat(n[0].style.width)||10,b=o.playTime*1e3,u=o.changeTime,d=o.adapt,m=0,v=n.find(".barbox"),w="";if(p==1){var y=s[0];w+='
                              ',v.hide()}else if(p==2)for(var k=0;k<4;k++){var y=s[k%2];k==3?w+='
                              ':w+='
                              '}else for(var k=0;k
                              ':w+='
                              '}t.html(w);var N=n.find(".img_li"),S=N.length,I=v.find("li");I.eq(m).addClass("on"),o.nav&&a.animatesCanoousel(v,m);function T(){o.nav&&a.animatesCanoousel(v,m%p),clearTimeout(a["carInter"+e]),a["carInter"+e]=setTimeout(function(){m++,t.css({transform:"translateX("+-m*c+"rem)","-webkit-transform":"translateX("+-m*c+"rem)","transition-duration":u+"s","-webkit-transition-duration":u+"s"}),I.removeClass("on"),p==2?I.eq(m%2).addClass("on"):I.eq(m%S).addClass("on"),L(m+1),T()},b)}function L(C){var q=C%S;N.eq(q).css("left",C*c+"rem")}var P=parseFloat(l("html").css("fontSize"));if(p>=2){T();var j=0,x=0;r.addEventListener("touchstart",function(C){var q=C.targetTouches[0];j=q.pageX,clearInterval(a["carInter"+e])}),r.addEventListener("touchmove",function(C){var q=C.targetTouches[0];x=(q.pageX-j)/P,t.css({transform:"translateX("+(x-m*c)+"rem)","-webkit-transform":"translateX("+(x-m*c)+"rem)","transition-duration":"0s","-webkit-transition-duration":"0s"}),x>.5&&C.preventDefault()}),r.addEventListener("touchend",function(C){clearTimeout(a["carTimeout"+e]),x*x>9&&(x<-.5?(m++,L(m+1)):x>.5&&(m--,L(m-1))),t.css({transform:"translateX("+-m*c+"rem)","-webkit-transform":"translateX("+-m*c+"rem)","transition-duration":u/2+"s","-webkit-transition-duration":u/2+"s"}),I.removeClass("on"),p==2?I.eq(m%2).addClass("on"):I.eq(m%S).addClass("on"),a["carTimeout"+e]=setTimeout(function(){T()},u*1e3/2)})}},renderCanouselBarbox:function(n,a){for(var r=this,e="",t=0,i=a.length;t';n.html(e)},animatesCanoousel:function(n,a){var r=n.find(".li");n.find(".on").removeClass("on"),r.eq(a).addClass("on")},footerNav:function(){var n=this;n.$footerNav=l(".module[data-type=footerNav]");for(var a=0,r=n.$footerNav.length;a-1&&n.indexOf("mainClassify")>-1||n=="/comment/#"&&g.location.href.indexOf("/comment/#")>-1)&&(a=!0),a},renderFooterNav:function(n){var a=this,r=n.find("li"),e=n.attr("data-footernav");e&&(e=JSON.parse(e)),r.removeClass("on");for(var t=0,i=r.length;t-1||t.attr("href").indexOf("/myroom/#")>-1&&t.attr("href").indexOf("/nolimit")<0||t.attr("href").indexOf("/pay/#")>-1)&&(t.attr("clickUrl",t.attr("href")),t.removeAttr("href"))}l("a[clickUrl]").on("click",function(i){var o=window.user,s=l(this).attr("clickUrl"),v=function(c){c=="STUDENT"?s.indexOf("/pay/#")>-1?window.location.href=s.indexOf("/pay/#/")>-1?s:window.basePath?"/"+window.basePath+"#/":"/#/":window.location.href=s.indexOf("/myroom/#/")>-1?s:window.basePath?"/"+window.basePath+"#/":"/#/":window.location.href=s.indexOf("/aroom/#/")>-1?s:window.basePath?"/"+window.basePath+"#/":"/#/"},p=function(){window.player.mobileVideoShow(!1),o.loginLayer(function(c){c.success&&o.isLogin(function(b){b.success&&v(b.data.userTypeExact)})})};getCookie("token")||getCookie("stoken")?o.isLogin(function(c){c.success?v(c.data.userTypeExact):p()}):p()})},headerNav:function(){for(var n=this,a=l(".module[data-type=headerNav]"),r=0,e=a.length;r
                              '+a.title+'
                              ",l("body").append(t);var v=l("#"+e),p=v.find(".drawer-menu"),c=p.find(".menuheight").height()-p.height(),b=!1,u,d,m;v.on("touchstart",function(w){d=w.originalEvent.targetTouches[0].pageY,c>0&&(u=setInterval(function(){b=!1,d=c&&(b=!0)},20))}),v.on("touchend",function(w){clearInterval(u)}),v.on("touchmove",function(w){c<0?w.preventDefault():b?(m=w.originalEvent.targetTouches[0].pageY,w.preventDefault()):(m=w.originalEvent.targetTouches[0].pageY,window.event.returnValue=!0)}),v.on("click",".drawer-mask",function(w){v.removeClass("drawer-open"),window.player&&window.player.mobileVideoShow(!0)}),v.on("click","a[data-handle]",function(w){v.removeClass("drawer-open")}),n.on("click",function(w){v.addClass("drawer-open"),v.find(".drawer-title span").text(a.title),a.roominfo&&v.find(".drawer-title img").attr("src",(window.cdnPath||"")+a.roominfo.logo),window.player&&window.player.mobileVideoShow(!1)})}};if(window.secondShareHtml)var f=setInterval(function(){window.secondShareHtmlSuccess&&(clearInterval(f),h.init())},20);else h.init();g.getWapRoom=h})(jQuery,window),document.write(''),!window.getPage&&!window.secondShareHtml&&document.write(''),function(l,g){if(g.player)return!1;g.player={init:function(){var h=this;h.getVideoDatas()},getVideoDatas:function(){var h=this;h.playElement=l(".module[data-type=player]"),h.playerdatas=[];for(var f=0,n=h.playElement.length;f',t=l("#"+h.playerId);t.html(e);var i=t.find("video").eq(0),o=!1;t.on("click",function(){var s=i[0].paused,v=i[0].ended;o&&!v&&!s?(i.css({display:"none"}),i[0].pause()):(i.css({display:"block"}),i[0].play()),o=!0})},mobileVideoShow:function(h){for(var f=l(document).find("video"),n=0,a=f.length;n