index-legacy.17fc4440.js 1.7 KB

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