1 |
- System.register(["./index-legacy.eb062188.js"],(function(){"use strict";var t,e,o,s,a,n,p,r,T,i,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,r=g.V,T=g.A,i=g.p,l=g.s,c=g.e,u=g.f,h=g.g,m=g.h,w=g.i,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(r,{class:"toastAnimate",animationData:T},null)])})])])}});i({api:"getToken"}).then((t=>{console.log(t,"res");const e=t.content;null!=e&&e.accessToken&&l(e.tokenType+" "+e.accessToken)})),c({api:"setBarStatus",content:{status:0}}),c({api:"getNavHeight"},(t=>{const{content:e}=t,o=e.dpi||2;if(e.navHeight){const t=e.navHeight/o;console.log(t,"navHeight"),h.navBarHeight=t}}));const y=window.paymentType;u().isTeacher||"TEACHER"===y?h.platformType="TEACHER":u().isStudent||"STUDENT"===y?h.platformType="STUDENT":u().isSchool||"SCHOOL"===y?h.platformType="SCHOOL":h.platformType="STUDENT","TEACHER"===h.platformType?h.platformApi="/api-teacher":"SCHOOL"===h.platformType?h.platformApi="/api-school":(h.platformType,h.platformApi="/api-student");const C=m(g).use(w);C.use(f),C.mount("#app")}}}));
|