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