| 1 |
- System.register(["./ResizeObserver.es-legacy.f8737be3.js"],(function(){"use strict";var t,e,o,n,a,s,r,i,p,u,T,c,l,f,h,v,w,m,g;return{setters:[function(y){t=y.d,e=y.r,o=y.b,n=y.c,a=y.a,s=y.T,r=y.F,i=y.V,p=y.A,u=y.i,T=y.p,c=y.s,l=y.e,f=y.f,h=y.g,v=y.h,w=y.j,m=y.k,g=y.u}],execute:function(){var y=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(a("router-view"),null,null),n("div",{class:["appRootToast",t.showToastCenter?"appRootToastCenter":""]},[n(s,{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:p},null)])}})])])}}});void 0===window.ResizeObserver&&(window.ResizeObserver=u),T({api:"getToken"}).then((function(t){console.log(t,"res");var e=t.content;null!=e&&e.accessToken&&c(e.tokenType+" "+e.accessToken)})),l({api:"setBarStatus",content:{status:0}}),l({api:"getNavHeight"},(function(t){var e=t.content,o=e.dpi||2;if(e.navHeight){var n=e.navHeight/o;console.log(n,"navHeight"),h.navBarHeight=n}}));var C=window.paymentType;f().isTeacher||"TEACHER"===C?h.platformType="TEACHER":f().isStudent||"STUDENT"===C?h.platformType="STUDENT":f().isSchool||"SCHOOL"===C?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");var S=v(y).use(w);S.use(m),g().startListenErrorLog(),S.mount("#app")}}}));
|