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