(function(l,g){var h=navigator.userAgent;if(!i||s)return!1;var f=l("html"),r=f.width()/10,a=parseFloat(f.css("fontSize")),n=r/a,e=r*n;t(),l(document).ready(function(){t(),setTimeout(function(){t()},300)});function t(){if(e==1)return!1;f.css("fontSize",r+"px"),l("meta[name=viewport]").attr("content","initial-scale="+n+", maximum-scale="+n+", minimum-scale="+n+", user-scalable=no")}function i(){return/(Android).*/i.test(h)}function s(){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 r=r||window.location.href,a=r.split("?");if(a.length==1)return null;if(a.length==2){for(var s=a[1].split("&"),o={},n=0;n'),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")),n="";switch(a){case 602:n="\u975E\u7F51\u6821\u7528\u6237\u7981\u6B62\u767B\u5F55";break;case 606:n="\u5F53\u524D\u8D26\u53F7\u4E0D\u5B58\u5728";break;case 509:n="\u5DF2\u5F00\u542F\u8BBE\u5907\u9650\u5236\uFF0C\u60A8\u53EA\u80FD\u5728\u56FA\u5B9A\u8BBE\u5907\u4E0A\u8FDB\u884C\u767B\u5F55";break;case 601:n="\u5DF2\u7ED1\u5B9A\u5176\u4ED6\u8D26\u53F7";break;case 602:n="\u7528\u6237\u8D26\u53F7\u88AB\u9501\u5B9A";break;case 606:n="\u7528\u6237\u8D26\u53F7\u88AB\u5220\u9664";break;case 707:n="\u60A8\u5DF2\u88AB\u7981\u6B62\u767B\u5F55";break}n&&(layer?layer.open({content:n,skin:"msg",time:2}):alert(n)),window.history.replaceState(null,null,"/")}var e=this;e.getLoginUser(),setTimeout(function(){e.handleBtn()},0),g.getValue("redirectUrl")&&!getCookie("token")&&l.loginLayer(function(s){s.success&&(window.location.href=g.getValue("redirectUrl"))}),g.getValue("redirect")&&!getCookie("token")&&l.loginLayer(function(s){s.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 n=this;getCookie("token")?l.isLogin(function(e){e.success?(n.loginUserData=e.data,n.login(e.data,e.timeStamp),a&&!l.loginAfterJump&&(e.data.userTypeExact=="STUDENT",window.location.href=window.basePath?"/"+window.basePath+"#/":"/#/")):n.carryStorageLogin()}):n.carryStorageLogin()},carryStorageLogin:function(){var a=this;if(localStorage.isSaveAPWordKey&&window.decrypt){var n=decrypt(localStorage.isSaveAPWordKey),e=JSON.parse(n),t=e.a,i=e.b,s=+e.t;Date.now()-s<3600*1e3*24*10&&l.login(t,i,function(o){if(o.success)a.getLoginUser(!0);else{var v=o.message;switch(parseInt(o.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(o.success){var p=o.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,n){for(var e=this,t=$(".module[data-type=registerLogin]"),i=(a==null?void 0:a.user)||{},s=0,o=t.length;s'+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,n=$("[data-handle=login]"),e=0,t=n.length;e0&&e.length>0&&designUploadPoint(e)})},bindLoginBtnEvent:function(a){var n=a.parents(".module[data-type=registerLogin]").attr("data-login");n&&(n=JSON.parse(n));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 n=this;a.on("click",function(){designUploadPoint($(this)),window.player.mobileVideoShow(!1),l.registerLayer(function(e){e.success&&n.getLoginUser(!0)})})},bindRegisterSchoolEvent:function(a){var n=this;a.on("click",function(){designUploadPoint($(this)),window.player.mobileVideoShow(!1),l.registerSchoolLayer()})},bindQQloginEvent:function(a){var n=this;a.on("click",function(){designUploadPoint($(this)),l.loginQQ()})},bindWechatLoginEvent:function(a){var n=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodeloginWeChat()})},bindenWechatLoginEvent:function(a){var n=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodeloginenWeChat()})},binddingdingLoginEvent:function(a){var n=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodelogindingding()})},bindappLoginEvent:function(a){var n=this;a.on("click",function(e){designUploadPoint($(this)),l.qrcodeloginapp()})},binddialogEvent:function(a){var n=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 n=this;a.on("click",function(){designUploadPoint($(this)),l.loginWeiBo()})},bindAlipayLoginEvent:function(a){var n=this;a.on("click",function(){designUploadPoint($(this)),l.loginAlipay()})},bindGetPasswodEvent:function(a){var n=this;a.on("click",function(){designUploadPoint($(this)),window.player.mobileVideoShow(!1),l.getPasswordLayer()})},bindGetUsernameEvent:function(a,n){var e=this;a.on("click",function(){designUploadPoint($(this)),l.getUsernameLayer(n)})},bindGetExchangecouponEvent:function(a){var n=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 n=this;a.on("click",function(e){designUploadPoint($(this)),window.user.useInfo?n.carryCouponEvent(a):l.loginLayer(function(){})})},carryCouponEvent:function(a,n){var e=this,t=JSON.parse(a.attr("data-href")),i=t.data.couponKeys.join(","),s=void 0;if(window.decrypt&&localStorage.encryptId){var o=window.decrypt(localStorage.encryptId).split(",");n?o.length>0&&(s=o[0]):o.length>1&&(s=o[1])}l.getDressUpCouponShareList({couponIds:i,shareId:s},function(v){v.success&&l.getCouponLayer(v.data,{couponIds:i,shareId:s})})},bindGoBuyCar:function(){var a=this;$("[data-event=goBuyCar]").on("click",function(){var n=$(this).parent().attr("data-href");a.loginUserData?a.goBuyCarEvent(n):l.loginLayer(function(e){e.success&&a.goBuyCarEvent(n)})})},goBuyCarEvent:function(a){var n=this,e=isJSON(a)?JSON.parse(a):!1;if(!e)return!1;var t=e.data,i="",s=[""],o=n.getValue("diliater")||"";window.base64&&(i=n.getValue("shareId")?base64.decode(n.getValue("shareId")):""),window.decrypt&&(s=decrypt(o).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:n.getclueChannel(),shareUserId:i||(s.length>1?s[1]:""),pvid:sessionStorage.pvid,uvcid:localStorage.uvcid}),async:!0,success:function(p){p.success&&(location.href="/pay/#/shopping")}})},getclueChannel:function(){var a=this,n=navigator.userAgent.toLowerCase(),e;if(window.__wxjs_environment==="miniprogram")e=4;else if(n.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 r=setInterval(function(){window.secondShareHtmlSuccess&&(clearInterval(r),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,r=document.createElement("script");r.type="text/javascript",r.readyState?r.onreadystatechange=function(){(r.readyState=="loaded"||r.readyState=="complete")&&(r.onreadystatechange=null,g.bind(f)(h))}:r.onload=function(){g.bind(f)(h)},r.src=l,document.body.appendChild(r)}function unit(l){return l/37.5+"rem"}(function(l,g){var h={init:function(){var r=this;l(document).ready(function(){setTimeout(function(){r.fixed()},100)}),r.serach(),r.course(),r.courseWare(),r.information(),r.getAjaxRoomInfo(),r.canousel(),r.footerNav(),r.setAnimation(),r.headerNav(),r.aHrefClick()},fixed:function(){for(var r=this,a=l(".module[data-fixed]"),n=0,e=a.length;n',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=o+"/bundle.html?cid="+u.courseId:d=o+"/info.html?cid="+u.courseId,'
  • '+u.courseName+''+u.mainTeacher+"
  • "};break;case"xtwlb":n='
      ',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=o+"/bundle.html?cid="+u.courseId:d=o+"/info.html?cid="+u.courseId,'
    • '+u.courseName+""+(s?''+u.mainTeacher+"":"")+(i?''+u.popularityCount+"":"")+"
    • "};break;case"twlb":n='
        ',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=o+"/bundle.html?cid="+u.courseId:d=o+"/info.html?cid="+u.courseId,'
      • '+u.courseName+''+u.introduce+""+(s?''+u.mainTeacher+"":"")+(i?''+u.popularityCount+"":"")+"
      • "};break;case"ttlb":var v="";parseInt(a[0].courseType)==2||parseInt(a[0].courseType)==4?v=o+"/bundle.html?cid="+a[0].courseId:v=o+"/info.html?cid="+a[0].courseId,n='
          ',n+='
        • '+a[0].courseName+''+a[0].mainTeacher+''+a[0].introduce+"
        • ",e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=o+"/bundle.html?cid="+u.courseId:d=o+"/info.html?cid="+u.courseId,'
        • '+u.courseName+''+u.mainTeacher+"
        • "};break;case"btrqlb":n='
            ',e=function(u){var d="";return parseInt(u.courseType)==2||parseInt(u.courseType)==4?d=o+"/bundle.html?cid="+u.courseId:d=o+"/info.html?cid="+u.courseId,'
          • '+u.courseName+''+u.introduce+""+(s?''+u.mainTeacher+"":"")+(i?''+u.popularityCount+"":"")+"
          • "};break}for(var p=0,c=a.length;p",r.item.html(n)},courseWare:function(){var r=this;r.$courseware=l(".module[data-type=courseware]");for(var a=0,n=r.$courseware.length;a',s=function(c){return'
          • '+c.courseWareName+''+c.realName+"
          • "};break;case"xtwlb":e='
              ',s=function(c){return'
            • '+c.courseWareName+""+(i?''+c.realName+"":"")+(t?''+c.popularityCount+"":"")+"
            • "};break;case"twlb":e='
                ',s=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+"
                • ",s=function(c){return'
                • '+c.courseWareName+''+c.realName+"
                • "};break;case"btrqlb":e='
                    ',s=function(c){return'
                  • '+c.courseWareName+''+c.introduce+""+(i?''+c.realName+"":"")+(t?''+c.popularityCount+"":"")+"
                  • "};break;default:}for(var o=0,v=a.length;o",r.item.html(e)},information:function(r){var a=this;a.$article=l(".module[data-type=article]");for(var n=0,e=a.$article.length;n'}return m};switch(r.styleType){case"wzlb":e='
                      ',t=function(d){return'
                    • '+d.title+''+n.getTimeString(d.gmtCreate)+"
                    • "};break;case"xtwlb":e='
                        ',t=function(d){return'
                      • '+d.title+""+(o?''+n.getTimeString(d.gmtCreate)+"":"")+(s?''+d.viewCount+"":"")+"
                      • "};break;case"twlb":e='
                          ',t=function(d){return'
                        • '+d.title+''+d.introduce+""+(o?''+n.getTimeString(d.gmtCreate)+"":"")+(s?''+d.viewCount+"":"")+"
                        • "};break;case"ttlb":e='
                            ',t=function(d,m){return'
                          • '+d.title+''+v(u.computerPicPath)+""+(o?''+n.getTimeString(d.gmtCreate)+"":"")+(s?''+d.viewCount+"":"")+"
                          • "};break;case"btrqlb":e='
                              ',t=function(d){return'
                            • '+d.title+''+d.introduce+""+(o?''+n.getTimeString(d.gmtCreate)+"":"")+(s?''+d.viewCount+"":"")+"
                            • "};break;default:}for(var p=document.createElement("div"),c=0,b=a.length;c",r.item.html(e)},getAjaxRoomInfo:function(){var r=this;l.ajax({type:"get",url:"/api/disk/home?projectid=12",dataType:"json",success:function(a){a.success&&(window.roominfo=a.data,r.roominfo=a.data,r.Render(a.data))}})},Render:function(r){var a=this;a.summary(r.introduction),a.QRcode(r.wechatQRCode),a.logo(r.logo),a.documentTitle(r)},summary:function(r){var a=this;if(a.$introduce=l(".module[data-type=introduce]"),a.$introduce.length<1)return!1;for(var n=0,e=a.$introduce.length;n
                              ');var t=r.find(".img_ul"),i=r.attr("data-canousel");if(!i)return!1;var s=l.parseJSON(i),o=s.list,v=r.find(".barbox");s.nav&&a.renderCanouselBarbox(v,o);var p=o.length,c=parseFloat(r[0].style.width)||10,b=s.playTime*1e3,u=s.changeTime,d=s.adapt,m=0,v=r.find(".barbox"),w="";if(p==1){var y=o[0];w+='
                              ',v.hide()}else if(p==2)for(var k=0;k<4;k++){var y=o[k%2];k==3?w+='
                              ':w+='
                              '}else for(var k=0;k
                              ':w+='
                              '}t.html(w);var N=r.find(".img_li"),S=N.length,I=v.find("li");I.eq(m).addClass("on"),s.nav&&a.animatesCanoousel(v,m);function T(){s.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 j=C%S;N.eq(j).css("left",C*c+"rem")}var P=parseFloat(l("html").css("fontSize"));if(p>=2){T();var q=0,x=0;n.addEventListener("touchstart",function(C){var j=C.targetTouches[0];q=j.pageX,clearInterval(a["carInter"+e])}),n.addEventListener("touchmove",function(C){var j=C.targetTouches[0];x=(j.pageX-q)/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()}),n.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(r,a){for(var n=this,e="",t=0,i=a.length;t';r.html(e)},animatesCanoousel:function(r,a){var n=r.find(".li");r.find(".on").removeClass("on"),n.eq(a).addClass("on")},footerNav:function(){var r=this;r.$footerNav=l(".module[data-type=footerNav]");for(var a=0,n=r.$footerNav.length;a-1&&r.indexOf("mainClassify")>-1||r=="/comment/#"&&g.location.href.indexOf("/comment/#")>-1)&&(a=!0),a},renderFooterNav:function(r){var a=this,n=r.find("li"),e=r.attr("data-footernav");e&&(e=JSON.parse(e)),n.removeClass("on");for(var t=0,i=n.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 s=window.user,o=l(this).attr("clickUrl"),v=function(c){c=="STUDENT"?o.indexOf("/pay/#")>-1?window.location.href=o.indexOf("/pay/#/")>-1?o:window.basePath?"/"+window.basePath+"#/":"/#/":window.location.href=o.indexOf("/myroom/#/")>-1?o:window.basePath?"/"+window.basePath+"#/":"/#/":window.location.href=o.indexOf("/aroom/#/")>-1?o:window.basePath?"/"+window.basePath+"#/":"/#/"},p=function(){window.player.mobileVideoShow(!1),s.loginLayer(function(c){c.success&&s.isLogin(function(b){b.success&&v(b.data.userTypeExact)})})};getCookie("token")||getCookie("stoken")?s.isLogin(function(c){c.success?v(c.data.userTypeExact):p()}):p()})},headerNav:function(){for(var r=this,a=l(".module[data-type=headerNav]"),n=0,e=a.length;n
                              '+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")}),r.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,r=h.playElement.length;f',t=l("#"+h.playerId);t.html(e);var i=t.find("video").eq(0),s=!1;t.on("click",function(){var o=i[0].paused,v=i[0].ended;s&&!v&&!o?(i.css({display:"none"}),i[0].pause()):(i.css({display:"block"}),i[0].play()),s=!0})},mobileVideoShow:function(h){for(var f=l(document).find("video"),r=0,a=f.length;r