1 |
- System.register(["./ResizeObserver.es-legacy.42c87f31.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(C){t=C.d,e=C.r,o=C.b,n=C.c,s=C.a,a=C.T,r=C.F,i=C.V,u=C.A,p=C.i,c=C.h,T=C.j,l=C.p,f=C.l,h=C.e,v=C.f,w=C.g,m=C.k,g=C.u}],execute:function(){var C=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 y=c(C).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 H=window.paymentType;v().isTeacher||"TEACHER"===H?w.platformType="TEACHER":v().isStudent||"STUDENT"===H?w.platformType="STUDENT":v().isSchool||"SCHOOL"===H?w.platformType="SCHOOL":w.platformType="TEACHER","TEACHER"===w.platformType?w.platformApi="/api-teacher":"SCHOOL"===w.platformType?w.platformApi="/api-school":w.platformApi="/api-student",y.use(m),g().startListenErrorLog(),y.mount("#app")}}}));
|