webpackJsonp([13],{"0hNr":function(e,r){},dOXA:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=t("Xxa5"),o=t.n(s),a=t("exGp"),n=t.n(a),l=t("4MTg"),i={data:function(){return{form:{email:"",password:""},rules:{email:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},methods:{login:function(){var e=this;this.$refs.form.validate(function(r){if(!r)return!1;e.sendData()})},sendData:function(){var e=this;return n()(o.a.mark(function r(){return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(l.h)(e.form);case 2:e.$router.push("/");case 3:case"end":return r.stop()}},r,e)}))()},keypress:function(e){"Enter"===e.code&&this.login()}}},u={render:function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"wl-login",attrs:{id:"wl-login"}},[t("div",{staticClass:"wl-login__content"},[t("h2",{staticClass:"wl-login__title"},[e._v("walle 瓦力")]),e._v(" "),t("el-form",{ref:"form",attrs:{model:e.form}},[t("el-form-item",{attrs:{prop:"email",rules:e.rules.email}},[t("el-input",{attrs:{"auto-complete":"off",placeholder:"请输入邮箱","prefix-icon":"wl-icon-email"},model:{value:e.form.email,callback:function(r){e.$set(e.form,"email",r)},expression:"form.email"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"password",rules:e.rules.password}},[t("input",{staticClass:"wl-login__pwd",attrs:{type:"password",autocomplete:"new-password"}}),e._v(" "),t("el-input",{attrs:{"auto-complete":"off",type:"password",placeholder:"请输入密码","prefix-icon":"wl-icon-password"},nativeOn:{keypress:function(r){return e.keypress(r)}},model:{value:e.form.password,callback:function(r){e.$set(e.form,"password",r)},expression:"form.password"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.login}},[e._v("登陆")])],1)],1)],1)])},staticRenderFns:[]};var c=t("VU/8")(i,u,!1,function(e){t("0hNr")},null,null);r.default=c.exports}});