index-legacy.36c7d1f7.js 1.6 KB

12
  1. System.register(["./index-legacy.c1f63540.js"],(function(){"use strict";var t,o,e,n,a,s,r,i,p,u,T,c,l,f,h,m,v;return{setters:[function(w){t=w.d,o=w.r,e=w.b,n=w.c,a=w.a,s=w.T,r=w.F,i=w.V,p=w.A,u=w.p,T=w.s,c=w.e,l=w.f,f=w.g,h=w.h,m=w.i,v=w.j}],execute:function(){var w=t({name:"App",setup:function(){var t=o({showToast:!1,showToastCenter:!1});return e.on("toastShow",(function(o){"center"===o&&(t.showToastCenter=!0),t.showToast=!0})),e.on("toastClose",(function(o){t.showToast=!1,"center"===o&&setTimeout((function(){t.showToastCenter=!1}),300)})),e.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(o){return t.showToast=o},overlay:!0,duration:3e4},{message:function(){return n(r,null,[n(i,{class:"toastAnimate",animationData:p},null)])}})])])}}});u({api:"getToken"}).then((function(t){console.log(t,"res");var o=t.content;null!=o&&o.accessToken&&T(o.tokenType+" "+o.accessToken)})),c({api:"setBarStatus",content:{status:0}}),c({api:"getNavHeight"},(function(t){var o=t.content,e=o.dpi||2;if(o.navHeight){var n=o.navHeight/e;console.log(n,"navHeight"),f.navBarHeight=n}}));var g=window.paymentType;l().isTeacher||"TEACHER"===g?f.platformType="TEACHER":l().isStudent||"STUDENT"===g?f.platformType="STUDENT":l().isSchool||"SCHOOL"===g?f.platformType="SCHOOL":f.platformType="STUDENT","TEACHER"===f.platformType?f.platformApi="/api-teacher":"SCHOOL"===f.platformType?f.platformApi="/api-school":(f.platformType,f.platformApi="/api-student");var y=h(w).use(m);y.use(v),y.mount("#app")}}}));