school-legacy.29710cd3.js 1.5 KB

1
  1. System.register(["./index-legacy.eb062188.js"],(function(){"use strict";var t,e,o,s,a,n,i,p,r,T,c,l,u,h,m,w,g;return{setters:[function(f){t=f.d,e=f.r,o=f.b,s=f.c,a=f.a,n=f.T,i=f.F,p=f.V,r=f.A,T=f.h,c=f.i,l=f.p,u=f.k,h=f.e,m=f.f,w=f.g,g=f.j}],execute:function(){var f=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(i,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(i,null,[s(p,{class:"toastAnimate",animationData:r},null)])})])])}});const v=T(f).use(c);l({api:"getToken"}).then((t=>{console.log(t,"res");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}));const y=window.paymentType;m().isTeacher||"TEACHER"===y?w.platformType="TEACHER":m().isStudent||"STUDENT"===y?w.platformType="STUDENT":(m().isSchool,w.platformType="SCHOOL"),"TEACHER"===w.platformType&&(w.platformApi="/api-teacher"),"STUDENT"===w.platformType?w.platformApi="/api-student":w.platformApi="/api-school",v.use(g),v.mount("#app")}}}));