!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=["returnUrl","isRegister"];function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(Y){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),c=new R(n||[]);return i(a,"_invoke",{value:E(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(Y){return{type:"throw",arg:Y}}}e.wrap=f;var h={};function d(){}function g(){}function m(){}var y={};l(y,c,(function(){return this}));var v=Object.getPrototypeOf,k=v&&v(v(L([])));k&&k!==n&&o.call(k,c)&&(y=k);var b=m.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,u){var s=p(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function E(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}System.register(["./index-legacy-9ef0dc83.js","./index-legacy-3a68cd4d.js","./index-legacy-c0dc3d4e.js","./index-legacy-656d449e.js","./index-legacy-35481d42.js","./index-legacy-ca914990.js","./index-legacy-9b09ac87.js"],(function(t,n){"use strict";var i,c,s,l,f,p,h,d,g,m,y,v,k,b,w,x=document.createElement("style");return x.textContent="._login_pvck2_1{min-height:100vh;padding:0 1.28rem;background:linear-gradient(to bottom,#01c1b5,#1bcbbf)}._login_pvck2_1 ._codeText_pvck2_6{color:#fff}._login_pvck2_1 ._logo_pvck2_9{display:table;padding-top:2.66667rem;padding-bottom:2.4rem;width:4.26667rem;height:1.2rem;margin:0 auto}._login_pvck2_1 ._logo_pvck2_9 img{width:inherit;height:inherit}._login_pvck2_1 ._container_pvck2_21{background-color:transparent}._login_pvck2_1 ._input-group_pvck2_24{position:relative;border-radius:1.33333rem;border:.05333rem solid #fff;margin-bottom:.53333rem;padding-left:.8rem;padding-right:.8rem;display:flex;align-items:center;background:transparent}._login_pvck2_1 ._input-group_pvck2_24 input{flex:1;font-size:.37333rem;color:#fff;background:transparent;border:none}._login_pvck2_1 ._input-group_pvck2_24 input::-moz-placeholder{color:#fff}._login_pvck2_1 ._input-group_pvck2_24 input::placeholder{color:#fff}._login_pvck2_1 ._input-group_pvck2_24 ._code-text_pvck2_45{position:absolute;right:0;flex:1;display:block;width:2.50667rem;text-align:center;font-size:.37333rem;color:#fff;line-height:.8rem;height:.8rem}._login_pvck2_1 ._input-group_pvck2_24 .van-field__button{border-left:.05333rem solid #fff;margin-left:.32rem;margin-right:-.48rem}._login_pvck2_1 ._login-change_pvck2_62{padding-top:.21333rem;font-size:.37333rem;color:#fff;float:right;cursor:pointer}._login_pvck2_1 .van-button--disabled{opacity:1;color:rgba(0,0,0,.25)}\n",document.head.appendChild(x),{setters:[function(t){i=t.C,c=t.I},function(t){s=t.d,l=t.r,f=t.s,p=t.a,h=t.b,d=t.c,g=t.e,m=t.f,y=t.g,v=t.h,k=t.B},function(t){b=t.C},function(t){w=t.F},null,null,null],execute:function(){var n={login:"_login_pvck2_1",codeText:"_codeText_pvck2_6",logo:"_logo_pvck2_9",container:"_container_pvck2_21","input-group":"_input-group_pvck2_24","code-text":"_code-text_pvck2_45","login-change":"_login-change_pvck2_62"};t("default",s({name:"layout-login",data:function(){return{loginType:"SMS",username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4,imgCodeStatus:!1}},computed:{codeDisable:function(){var t=!0;return"PWD"===this.loginType?this.username&&this.password&&(t=!1):this.username&&this.smsCode&&(t=!1),t}},mounted:function(){l(),this.directNext()},methods:{directNext:function(){if("login"===f.user.status||"error"===f.user.status){var t=this.$route.query,r=t.returnUrl,n=(t.isRegister,u(t,e));this.$router.replace({path:r,query:a({},n)})}},onLogin:function(){var t=this;return o(r().mark((function e(){var n,o,i,c,u,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n={phone:t.username,clientId:"EDUCATION",clientSecret:"EDUCATION"},"PWD"!==t.loginType){e.next=12;break}return n.password=t.password,n.grant_type="password",e.next=7,p.post("/api-auth/usernameLogin",{requestType:"form",data:a({},n)});case 7:o=e.sent,i=o.data,h(i.authentication.token_type+" "+i.authentication.access_token),e.next=18;break;case 12:return n.smsCode=t.smsCode,e.next=15,p.post("/api-auth/smsLogin",{requestType:"form",data:a({},n)});case 15:c=e.sent,u=c.data,h(u.authentication.token_type+" "+u.authentication.access_token);case 18:return e.next=20,p.get("/api-web/schoolStaff/queryUserInfo",{initRequest:!0});case 20:s=e.sent,d(s.data),t.directNext(),e.next=27;break;case 25:e.prev=25,e.t0=e.catch(0);case 27:case"end":return e.stop()}}),e,null,[[0,25]])})))()},onSendCode:function(){var t=this;return o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g(t.username)){e.next=2;break}return e.abrupt("return",m("请输入正确的手机号码"));case 2:t.imgCodeStatus=!0;case 3:case"end":return e.stop()}}),e)})))()},onCodeSend:function(){var t=this;this.countDownStatus=!1,this.$nextTick((function(){t.$refs.countDownRef.start()}))},onFinished:function(){this.countDownStatus=!0,this.$refs.countDownRef.reset()},onChange:function(){"PWD"===this.loginType?this.loginType="SMS":"SMS"===this.loginType&&(this.loginType="PWD")}},render:function(){var t=this;return y("div",{class:[n.login]},[y("div",{class:n.logo},[y("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUQAAABaCAMAAAD3n9+rAAABNVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8BwbUUxrsNxbn4/v0eyb7v/Ptz3ddb2NCi6eRp29RB0snX9vQ4z8YlysC07uqX5uG/8O2r6+ff+PbN8/Hn+vnG8u/S9fKP5N+H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Tc9aq8cKlkthalFUiE/MeeA0lwoSGzj3zsofUqJOtwRLswr9a6ancoff53mr55kvTAvJrrqtsSqwDz+LDNP/hUe/7Y7k05H3rw0JeK3WiL65GF9MikRPSlWrsekbP5jYfIAh8mjRB4Nk4faTB6v9FiYPOhr8si5R8Tk4Ydj8BtP5UjXgZbThAAAAABJRU5ErkJggg=="},null)]),y(b,{class:n.container,border:!1},{default:function(){return[y(w,{modelValue:t.username,"onUpdate:modelValue":function(e){return t.username=e},name:"手机号",placeholder:"请输入您的手机号",type:"tel",class:n["input-group"],maxlength:11},null),"PWD"===t.loginType?y(w,{modelValue:t.password,"onUpdate:modelValue":function(e){return t.password=e},type:"password",name:"密码",class:n["input-group"],placeholder:"请输入密码"},null):y(w,{modelValue:t.smsCode,"onUpdate:modelValue":function(e){return t.smsCode=e},name:"验证码",placeholder:"请输入验证码",type:"tel",class:n["input-group"],maxlength:6},{button:function(){return t.countDownStatus?y("span",{class:n.codeText,onClick:t.onSendCode},[v("获取验证码")]):y(i,{ref:"countDownRef","auto-start":!1,time:t.countDownTime,onFinish:t.onFinished,format:"ss秒"},null)}})]}}),y("div",{class:n.margin34},[y(k,{round:!0,block:!0,disabled:this.codeDisable,onClick:this.onLogin},{default:function(){return[v("提交")]}}),y("span",{class:n["login-change"],onClick:this.onChange},["PWD"===this.loginType?"验证码登录":"密码登录"])]),this.imgCodeStatus?y(c,{value:this.imgCodeStatus,"onUpdate:value":function(e){return t.imgCodeStatus=e},phone:this.username,onClose:function(){t.imgCodeStatus=!1},onSendCode:this.onCodeSend},null):null])}}))}}}))}();