transfer-legacy.e2d6d566.js 2.6 KB

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