!function(){function t(t,n,e,i,a,r,o){try{var s=t[r](o),u=s.value}catch(d){return void e(d)}s.done?n(u):Promise.resolve(u).then(i,a)}System.register(["./index.module-legacy.5373a284.js","./wx_bg-legacy.bbf15ca1.js","./index-legacy.2562bdba.js"],(function(n){"use strict";var e,i,a,r,o,s,u,d,c,l,p,g,m;return{setters:[function(t){e=t._,i=t.a,a=t.b,r=t.c,o=t.d,s=t.s},function(t){u=t._},function(t){d=t.d,c=t.x,l=t.f,p=t.j,g=t.B,m=t.z}],execute:function(){var h=n("getAssetsHomeFile",(function(t){var n="./images/".concat(t);return{"./images/bg.png":e,"./images/logo.png":i,"./images/student_bg.png":a,"./images/teacher_bg.png":r,"./images/teacher_logo.png":o,"./images/wx_bg.png":u}[n].default}));n("default",d({name:"download",data:function(){return{type:this.$route.query.type||"student",androidUrl:"",wxStatus:!1}},mounted:function(){var n,e=this;return(n=regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="android-student","student"===e.type?(n="android-student",document.title="酷乐秀下载"):"teacher"===e.type&&(n="android-teacher",document.title="酷乐秀学院下载"),t.prev=2,t.next=5,c.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:n,status:"history"}});case 5:i=t.sent,a=i.data,e.androidUrl=a.downloadUrl,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(2);case 12:case"end":return t.stop()}}),t,null,[[2,10]])})),function(){var e=this,i=arguments;return new Promise((function(a,r){var o=n.apply(e,i);function s(n){t(o,a,r,s,u,"next",n)}function u(n){t(o,a,r,s,u,"throw",n)}s(void 0)}))})()},methods:{downLoadApp:function(){if(l().weixin)this.wxStatus=!0;else{var t="",n="";location.origin.indexOf("online.colexiu.com")>-1?"student"===this.type?(t="https://itunes.apple.com/cn/app/id1626971695?mt=8",n=this.androidUrl):"teacher"===this.type&&(t="https://itunes.apple.com/cn/app/id1626971149?mt=8",n=this.androidUrl):"student"===this.type?(t="https://www.pgyer.com/powy",n=this.androidUrl):(t="https://www.pgyer.com/iO0m",n=this.androidUrl),l().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=t:window.location.href=n}}},render:function(){var t=this;return p("div",{class:s.downContainer},[p("div",{class:s.logo},["student"===this.type?p("img",{src:h("logo.png"),alt:""},null):p("img",{src:h("teacher_logo.png"),alt:""},null)]),p("div",{class:s.down},[p(g,{type:"primary",round:!0,plain:!0,onClick:this.downLoadApp},{default:function(){return[m("点击下载App")]}})]),p("div",{class:s.mainImg},["student"===this.type?p("img",{src:h("student_bg.png"),alt:""},null):p("img",{src:h("teacher_bg.png"),alt:""},null)]),this.wxStatus&&p("div",{class:s.wxpopup,onClick:function(){t.wxStatus=!1}},[p("img",{src:h("wx_bg.png"),alt:""},null)])])}}))}}}))}();
