(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5001fd2c"],{"053e":function(e,t,n){"use strict";n("dcf5")},4565:function(e,t,n){"use strict";n("6bec")},"5fbe":function(e,t,n){e.exports=n.p+"static/img/logo2.745fd978.png"},"6bec":function(e,t,n){},d5c2:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lowin  lowin-blue"},[e._m(0),n("div",{staticClass:"lowin-wrapper"},[n("div",{staticClass:"lowin-box lowin-register"},[n("div",{staticClass:"lowin-box-inner"},[n("el-form",{ref:"loginForm",attrs:{model:e.loginForm}},[n("p",[e._v("学之思考试系统")]),n("div",{staticClass:"lowin-group"},[n("label",[e._v("用户名 ")]),n("el-input",{ref:"userName",staticClass:"lowin-input",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(t){e.$set(e.loginForm,"userName",t)},expression:"loginForm.userName"}})],1),n("div",{staticClass:"lowin-group password-group"},[n("label",[e._v("密码")]),n("el-input",{ref:"password",staticClass:"lowin-input",attrs:{placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}})],1),n("div",{staticClass:"lowin-group"},[n("label",[e._v("年级 ")]),n("el-select",{staticClass:"lowin-input",attrs:{placeholder:"年级"},model:{value:e.loginForm.userLevel,callback:function(t){e.$set(e.loginForm,"userLevel",t)},expression:"loginForm.userLevel"}},e._l(e.levelEnum,(function(e){return n("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),n("el-button",{staticClass:"lowin-btn login-btn",attrs:{type:"text"},nativeOn:{click:function(t){return t.preventDefault(),e.handleRegister(t)}}},[e._v("注册")]),n("div",{staticClass:"text-foot"},[e._v(" 已有账号? "),n("router-link",{staticClass:"login-link",attrs:{to:"/login"}},[e._v(" 登录 ")])],1)],1)],1)])]),e._m(1)])},o=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"lowin-brand"},[s("img",{staticStyle:{"margin-top":"12px"},attrs:{src:n("5fbe"),alt:"logo"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"account-foot-copyright"},[n("span",[e._v("Copyright © 2021 武汉思维跳跃科技有限公司 版权所有")])])}],i=n("5530"),l=n("2f62"),r=n("b775"),a={register:function(e){return Object(r["b"])("/api/student/user/register",e)}},c={name:"Login",data:function(){return{loginForm:{userName:"",password:"",userLevel:1}}},methods:Object(i["a"])({handleRegister:function(){var e=this;a.register(this.loginForm).then((function(t){t&&1===t.code?e.$router.push({path:"/login"}):e.$message.error(t.message)}))}},Object(l["d"])("user",["setUserName"])),computed:Object(i["a"])({},Object(l["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},u=c,p=(n("4565"),n("053e"),n("2877")),m=Object(p["a"])(u,s,o,!1,null,"06b4c513",null);t["default"]=m.exports},dcf5:function(e,t,n){}}]);