1 |
- !function(){function t(t,n,e,i,a,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(i,a)}System.register(["./index.module-legacy.5373a284.js","./wx_bg-legacy.bbf15ca1.js","./index-legacy.b903c881.js"],(function(n){"use strict";var e,i,a,o,r,s,u,c,d,l,g,p,f,m;return{setters:[function(t){e=t._,i=t.a,a=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.f,g=t.T,p=t.j,f=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":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,i,a,o,r,s,u,c,p;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,i=n.data,e.androidUrl=i.downloadUrl,t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:if(a=location,o=a.origin,r=a.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})),p=encodeURIComponent(JSON.stringify(c)),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="ColexiuStudent://linkUrl=".concat(p):l().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href="colexiustudent://html:8888/SplashActivity?url=".concat(p):g("请用手机或移动设备打开");case 20:case"end":return t.stop()}}),t,null,[[0,8]])})),function(){var e=this,i=arguments;return new Promise((function(a,o){var r=n.apply(e,i);function s(n){t(r,a,o,s,u,"next",n)}function u(n){t(r,a,o,s,u,"throw",n)}s(void 0)}))})()},methods:{downLoadApp:function(){l().weixin?this.wxStatus=!0:l().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="https://itunes.apple.com/cn/app/id1626971695?mt=8":l().huawei||/(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:h("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:h("student_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)])])}}))}}}))}();
|