!function(){function t(t,n,e,a,i,o,r){try{var s=t[o](r),u=s.value}catch(c){return void e(c)}s.done?n(u):Promise.resolve(u).then(a,i)}System.register(["./index.module-legacy.5373a284.js","./wx_bg-legacy.bbf15ca1.js","./index-legacy.77fd7daf.js"],(function(n){"use strict";var e,a,i,o,r,s,u,c,d,l,g,p,f,m;return{setters:[function(t){e=t._,a=t.a,i=t.b,o=t.c,r=t.d,s=t.s},function(t){u=t._},function(t){c=t.d,d=t.w,l=t.T,g=t.f,p=t.j,f=t.B,m=t.z}],execute:function(){var v=n("getAssetsHomeFile",(function(t){var n="./images/".concat(t);return{"./images/bg.png":e,"./images/logo.png":a,"./images/student_bg.png":i,"./images/teacher_bg.png":o,"./images/teacher_logo.png":r,"./images/wx_bg.png":u}[n].default}));n("default",c({name:"transfer",data:function(){return{wxStatus:!1,androidUrl:""}},mounted:function(){var n,e=this;return(n=regeneratorRuntime.mark((function t(){var n,a,i,o,r,s,u,c,g;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:"android-student",status:"history"}});case 3:n=t.sent,a=n.data,e.androidUrl=a.downloadUrl,t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:if(i=location,o=i.origin,r=i.pathname,s=o+r+"#/",(u=e.$route.query).url||u.action){t.next=15;break}return t.abrupt("return");case 15:s+=u.url,c={url:s,action:u.action||"h5",pageTag:u.pageTag||1},u.liveRoomId&&(c.params="",c.params=JSON.stringify({liveRoomId:u.liveRoomId})),g=encodeURIComponent(JSON.stringify(c)),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="ColexiuStudent://linkUrl=".concat(g):/(Android)/i.test(navigator.userAgent)?window.location.href="colexiustudent://html:8888/SplashActivity?url=".concat(g):l("请用手机或移动设备打开");case 20:case"end":return t.stop()}}),t,null,[[0,8]])})),function(){var e=this,a=arguments;return new Promise((function(i,o){var r=n.apply(e,a);function s(n){t(r,i,o,s,u,"next",n)}function u(n){t(r,i,o,s,u,"throw",n)}s(void 0)}))})()},methods:{downLoadApp:function(){g().weixin?this.wxStatus=!0:g().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="https://itunes.apple.com/cn/app/id1626971695?mt=8":/(Android)/i.test(navigator.userAgent)?window.location.href=this.androidUrl:this.$toast("请用手机或移动设备打开")}},render:function(){var t=this;return p("div",{class:s.downContainer},[p("div",{class:s.logo},[p("img",{src:v("logo.png"),alt:""},null)]),p("div",{class:s.down},[p(f,{type:"primary",round:!0,plain:!0,onClick:this.downLoadApp},{default:function(){return[m("点击下载App")]}})]),p("div",{class:s.mainImg},[p("img",{src:v("student_bg.png"),alt:""},null)]),this.wxStatus&&p("div",{class:s.wxpopup,onClick:function(){t.wxStatus=!1}},[p("img",{src:v("wx_bg.png"),alt:""},null)])])}}))}}}))}();
