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