school-legacy.d4b0b273.js 1.5 KB

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