index-legacy.3676e193.js 1.7 KB

1
  1. System.register(["./ResizeObserver.es-legacy.42c87f31.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.u,c=y.p,l=y.s,f=y.e,h=y.f,v=y.g,w=y.h,m=y.j,g=y.k}],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().startListenErrorLog(),c({api:"getToken"}).then((function(t){console.log(t,"res");var e=t.content;null!=e&&e.accessToken&&l(e.tokenType+" "+e.accessToken)})),f({api:"setBarStatus",content:{status:0}}),f({api:"getNavHeight"},(function(t){var e=t.content,o=e.dpi||2;if(e.navHeight){var n=e.navHeight/o;console.log(n,"navHeight"),v.navBarHeight=n}}));var C=window.paymentType;h().isTeacher||"TEACHER"===C?v.platformType="TEACHER":h().isStudent||"STUDENT"===C?v.platformType="STUDENT":h().isSchool||"SCHOOL"===C?v.platformType="SCHOOL":v.platformType="STUDENT","TEACHER"===v.platformType?v.platformApi="/api-teacher":"SCHOOL"===v.platformType?v.platformApi="/api-school":(v.platformType,v.platformApi="/api-student");var S=w(y).use(m);S.use(g),S.mount("#app")}}}));