webpackJsonp([5],{"8zp9":function(r,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={name:"Register",data:function(){var r=this;return{regForm:{username:"",password:"",password_confirm:"",email:""},rules:{username:[{required:!0,message:"请输入用户名"}],password:[{required:!0,validator:function(e,o,t){""===o?t(new Error("请输入密码")):(""!==r.regForm.password_confirm&&r.$refs.regForm.validateField("password_confirm"),t())}}],password_confirm:[{required:!0,validator:function(e,o,t){""===o?t(new Error("请再次输入密码")):o!==r.regForm.password?t(new Error("两次输入密码不一致!")):t()}}],email:[{required:!0,message:"请输入常用的邮箱"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}]}}},methods:{onSubmit:function(r){this.$refs[r].validate(function(r){if(!r)return!1;alert("submit!")})}}},s={render:function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("div",[o("el-form",{ref:"regForm",staticClass:"reg-form",attrs:{model:r.regForm,"status-icon":"",rules:r.rules,"label-width":"80px"}},[o("h2",[r._v("用户注册")]),r._v(" "),o("el-form-item",{attrs:{label:"用户名",prop:"username"}},[o("el-input",{model:{value:r.regForm.username,callback:function(e){r.$set(r.regForm,"username",e)},expression:"regForm.username"}})],1),r._v(" "),o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:r.regForm.password,callback:function(e){r.$set(r.regForm,"password",e)},expression:"regForm.password"}})],1),r._v(" "),o("el-form-item",{attrs:{label:"确认密码",prop:"password_confirm"}},[o("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:r.regForm.password_confirm,callback:function(e){r.$set(r.regForm,"password_confirm",e)},expression:"regForm.password_confirm"}})],1),r._v(" "),o("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[o("el-input",{model:{value:r.regForm.email,callback:function(e){r.$set(r.regForm,"email",e)},expression:"regForm.email"}})],1),r._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(e){r.onSubmit("regForm")}}},[r._v("注册")]),r._v(" "),o("router-link",{attrs:{to:"/login"}},[r._v("已有账号？去登录")]),r._v(" | "),o("router-link",{attrs:{to:"/"}},[r._v("返回首页")])],1)],1)],1)},staticRenderFns:[]};var a=o("VU/8")(t,s,!1,function(r){o("I8no")},"data-v-6426f0d5",null);e.default=a.exports},I8no:function(r,e){}});
//# sourceMappingURL=5.d1d7303e40cf7949eead.js.map