webpackJsonp([3],{64:function(e,t,n){n(85);var o=n(1)(n(81),n(91),null,null);o.options.__file="D:\\project\\source\\Question_manage\\src\\views\\login.vue",o.esModule&&Object.keys(o.esModule).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] login.vue: functional components are not supported with templates, they should use render functions."),e.exports=o.exports},81:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(24);n(2);t.default={data:function(){return{maxlength:15,loading:!1,primary_text:"登录",form:{username:"",passwd:""}}},created:function(){var e=(window.$,this);setTimeout(function(){document.onkeydown=function(t){var n=t||window.event;13==(n.keyCode||n.which||n.charCode)&&e.handleSubmit()}},10)},methods:{handleSubmit:function(){var e=this;return this.form.username?this.form.passwd?(this.primary_text="登录中...",this.loading=!0,void o.a.login(this.form.username,this.form.passwd,function(t){t.status?(e.primary_text="登录成功，正在跳转...",setTimeout(function(){window.config.userinfo=t,window.config.userinfo.photo="/public/vue/dist/face.jpg",localStorage.userinfo=JSON.stringify(window.config.userinfo),$(".wrapper .layout").css("background","#f5f7f9"),$("body").css("background","none"),__.go(e,"/")},0)):(e.primary_text="登录",e.loading=!1,e.$Message.warning("登录用户名或密码错误，请重新输入"))})):(this.$Message.warning("请输入登录密码"),!1):(this.$Message.warning("请输入登录用户名"),!1)}},mounted:function(){$(".wrapper .layout").css("background","none")},components:{}}},85:function(e,t){},91:function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._m(0),e._v(" "),n("div",{staticClass:"login"},[n("Card",[n("p",{attrs:{slot:"title"},slot:"title"},[n("Icon",{attrs:{type:"person-stalker"}}),e._v("  用户登录")],1),e._v(" "),n("Form",{attrs:{id:"form"}},[n("Form-item",{attrs:{label:"帐号"}},[n("Input",{attrs:{placeholder:"请输入登录帐号",maxlength:e.maxlength,name:"username"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),e._v(" "),n("Form-item",{attrs:{label:"密码"}},[n("Input",{attrs:{placeholder:"请输入登录密码",type:"password",maxlength:e.maxlength,name:"password"},model:{value:e.form.passwd,callback:function(t){e.$set(e.form,"passwd",t)},expression:"form.passwd"}})],1),e._v(" "),n("Form-item",[n("br"),e._v(" "),n("Button",{attrs:{type:"primary",icon:"android-done",loading:e.loading},on:{click:function(t){e.handleSubmit()}}},[e._v(e._s(e.primary_text))])],1)],1)],1)],1)])},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"mainBody"}},[n("div",{staticClass:"cloud",attrs:{id:"cloud1"}}),e._v(" "),n("div",{staticClass:"cloud",attrs:{id:"cloud2"}})])}]},e.exports.render._withStripped=!0}});