|
|
-!function(){function t(t,e,n,r,o,s,a){try{var u=t[s](a),c=u.value}catch(i){return void n(i)}u.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./index-legacy.2562bdba.js","./index-legacy.62a1eaaf.js","./auth-legacy.291d9f1d.js","./routes-common-legacy.a9a11b1c.js"],(function(e){"use strict";var n,r,o,s,a,u,c,i,f,l;return{setters:[function(t){n=t.d,r=t.g,o=t.t,s=t.p,a=t.i,u=t.j,c=t.C,i=t.F},function(t){f=t.a,l=t.b},function(){},function(){}],execute:function(){e("default",n({name:"home-layout-center",data:function(){return{status:!1}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e,n=this;return(e=regeneratorRuntime.mark((function t(){var e,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,f.post("/api-auth/smsLogin",{requestType:"form",data:{clientId:"student",clientSecret:"student",phone:r.orchestraInfo.phone,token:r.orchestraInfo.token,isSurportRegister:!0}});case 3:return e=t.sent,u=e.data.authentication,o(u.token_type+" "+u.access_token),s({api:"setCache",content:{key:"h5-colexiu-token",value:u.token_type+" "+u.access_token}}),t.next=9,f.get("/api-student/student/queryUserInfo",{initRequest:!0});case 9:c=t.sent,a(c.data),n.$router.push("/home"),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),n.status=!0;case 17:case"end":return t.stop()}}),t,null,[[0,14]])})),function(){var n=this,r=arguments;return new Promise((function(o,s){var a=e.apply(n,r);function u(e){t(a,o,s,u,c,"next",e)}function c(e){t(a,o,s,u,c,"throw",e)}u(void 0)}))})()}},render:function(){return u(i,null,[this.status?u("div",{class:l.error},[u(c,{type:"notFond",classImgSize:"CERT",tips:"加载失败,请稍后重试",buttonText:"重新加载",plain:!0,onClick:this.getUserInfo},null)]):u("div",null,null)])}}))}}}))}();
|