(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2032f0f4"],{"206d":function(t,e,a){"use strict";a("bf4b")},a55b:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login"},[a("div",{staticClass:"login-div"},[t._m(0),a("form",[a("div",{staticClass:"input_div"},[a("label",[t._v("用户名")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.logindata.username,expression:"logindata.username"}],attrs:{type:"text",placeholder:"请输入用户名"},domProps:{value:t.logindata.username},on:{input:function(e){e.target.composing||t.$set(t.logindata,"username",e.target.value)}}})]),a("div",{staticClass:"input_div"},[a("label",[t._v("密  码")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.logindata.password,expression:"logindata.password"}],attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:t.logindata.password},on:{input:function(e){e.target.composing||t.$set(t.logindata,"password",e.target.value)}}})]),a("div",{staticClass:"input_div code"},[a("img",{attrs:{src:t.code,alt:""},on:{click:t.getCode}}),a("label",[t._v("图形码")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.logindata.imgcode,expression:"logindata.imgcode"}],attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:t.logindata.imgcode},on:{input:function(e){e.target.composing||t.$set(t.logindata,"imgcode",e.target.value)}}})]),a("el-button",{staticClass:"login-btn",attrs:{type:"primary"},on:{click:t.login,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.login.apply(null,arguments)}}},[t._v("登 录")])],1)]),a("p",{staticClass:"footer"},[t._v("Copyright © "+t._s(t.copyrightdate)+" 湖南顽主杯 版权所有")])])},n=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h1",[o("img",{attrs:{width:"345",src:a("f773"),alt:""}})])}],i={name:"login",data:function(){return{tp:"xt",code:"",logindata:{username:"root",password:"123456",imgcode_id:"",imgcode:"",utype:2},copyrightdate:(new Date).getFullYear()}},methods:{keyupEnter:function(){var t=this;document.onkeydown=function(e){13===e.keyCode&&(console.log("enter"),t.login())}},login:function(){var t=this,e=this.logindata;console.log(e),this.$api.login(e).then((function(e){e.data;0==e.data.code?window.location.hash="/data":t.$message.error(e.data.message)}))},getCode:function(){var t=this;this.$api.getCode().then((function(e){t.code=e.data.data.imgcode,t.logindata.imgcode_id=e.data.data.imgcode_id}))}},created:function(){this.getCode()}},s=i,d=(a("206d"),a("4ac2")),l=Object(d["a"])(s,o,n,!1,null,null,null);e["default"]=l.exports},bf4b:function(t,e,a){},f773:function(t,e,a){t.exports=a.p+"img/title.d49039aa.png"}}]); //# sourceMappingURL=chunk-2032f0f4.a4feea6a.js.map