1 |
- System.register(["./index-legacy.c1f63540.js"],(function(){"use strict";var t,o,e,n,a,s,r,i,p,u,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,p=w.A,u=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:p},null)])}})])])}}}),g=u(w).use(c);T({api:"getToken"}).then((function(t){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,console.log(t,"version")}));var C=window.paymentType;h().isTeacher||"TEACHER"===C?v.platformType="TEACHER":h().isStudent||"STUDENT"===C?v.platformType="STUDENT":h().isSchool||"SCHOOL"===C?v.platformType="SCHOOL":v.platformType="TEACHER","TEACHER"===v.platformType?v.platformApi="/api-teacher":"SCHOOL"===v.platformType?v.platformApi="/api-school":v.platformApi="/api-student",g.use(m),g.mount("#app")}}}));
|