teacher-legacy.fa04ed4c.js 1.8 KB

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