1 |
- System.register(["./index-legacy.c1f63540.js"],(function(){"use strict";var t,o,e,n,a,s,r,i,u,p,c,T,l,f,h,v,m;return{setters:[function(w){t=w.d,o=w.r,e=w.b,n=w.c,a=w.a,s=w.T,r=w.F,i=w.V,u=w.A,p=w.h,c=w.i,T=w.p,l=w.k,f=w.e,h=w.f,v=w.g,m=w.j}],execute:function(){var w=t({name:"App",setup:function(){var t=o({showToast:!1,showToastCenter:!1});return e.on("toastShow",(function(o){"center"===o&&(t.showToastCenter=!0),t.showToast=!0})),e.on("toastClose",(function(o){t.showToast=!1,"center"===o&&setTimeout((function(){t.showToastCenter=!1}),300)})),e.on("toastStatus",(function(){return t.showToast})),function(){return n(r,null,[n(a("router-view"),null,null),n("div",{class:["appRootToast",t.showToastCenter?"appRootToastCenter":""]},[n(s,{show:t.showToast,"onUpdate:show":function(o){return t.showToast=o},overlay:!0,duration:3e4},{message:function(){return n(r,null,[n(i,{class:"toastAnimate",animationData:u},null)])}})])])}}}),g=p(w).use(c);T({api:"getToken"}).then((function(t){console.log(t,"res");var o=t.content;null!=o&&o.accessToken&&l(o.tokenType+" "+o.accessToken)})),f({api:"setBarStatus",content:{status:0}}),f({api:"getNavHeight"},(function(t){var o=t.content,e=o.dpi||2;if(o.navHeight){var n=o.navHeight/e;console.log(n,"navHeight"),v.navBarHeight=n}})),f({api:"getVersion"},(function(t){v.version=t.content.version}));var y=window.paymentType;h().isTeacher||"TEACHER"===y?v.platformType="TEACHER":h().isStudent||"STUDENT"===y?v.platformType="STUDENT":(h().isSchool,v.platformType="SCHOOL"),"TEACHER"===v.platformType&&(v.platformApi="/api-teacher"),"STUDENT"===v.platformType?v.platformApi="/api-student":v.platformApi="/api-school",g.use(m),g.mount("#app")}}}));
|