text: webpackJsonp([1],{"/Hv2":function(e,t){},"85LB":function(e,t){},IjVM:function(e,t){},NHnr:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("IvJb"),s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-container",[o("el-header",{staticStyle:{"text-align":"center"}},[e._v("JavaWeb 登录注册作业")]),e._v(" "),o("el-main",[o("el-row",[o("el-col",{attrs:{span:12,offset:6}},[o("el-card",{staticClass:"box-card"},[o("div",{staticClass:"clearfix",staticStyle:{"text-align":"center"},attrs:{slot:"header"},slot:"header"},[o("a",{staticClass:"icon iconfont el-icon-icon",on:{click:e.login}},[e._v("用户登录")]),e._v("\n            /\n            "),o("a",{staticClass:"icon iconfont el-icon-zhuce",on:{click:e.register}},[e._v("用户注册")])]),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12,offset:6}},[o("router-view")],1)],1)],1)],1)],1)],1)],1)},staticRenderFns:[]};var u=o("C7Lr")({name:"App",methods:{login:function(){this.$router.push({path:"/login"})},register:function(){this.$router.push({path:"/register"})}}},s,!1,function(e){o("t+l5")},null,null).exports,r=o("zO6J"),n=o("4YfN"),l=o.n(n),f=o("9rMa"),i={name:"Login",computed:l()({},Object(f.c)(["form","status"])),methods:l()({},Object(f.b)(["loginTrue"])),watch:{status:function(){2==this.status&&this.$http.post("/api/login",{data:this.form}).then(function(e){console.log(e)}).catch(function(e){console.log(e)})}}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-form",{attrs:{"label-width":"80px"}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"密码"}},[o("el-input",{attrs:{type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.loginTrue({name:e.form.name,password:e.form.password})}}},[e._v("登陆")]),e._v(" "),o("el-button",[e._v("重置")])],1)],1)],1)},staticRenderFns:[]};var c=o("C7Lr")(i,d,!1,function(e){o("85LB")},"data-v-3e7f4af6",null).exports,p={name:"Register",computed:l()({},Object(f.c)(["form","status"])),methods:l()({},Object(f.b)(["registerTrue"])),watch:{status:function(){1==this.status&&(console.log(4545),this.$http.post("/api/register",{data:this.form}).then(function(e){console.log(e)}).catch(function(e){console.log(e)}))}}},m={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-form",{attrs:{model:e.form,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"密码"}},[o("el-input",{attrs:{type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号码"}},[o("el-input",{model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.registerTrue({name:e.form.name,password:e.form.password,phone:e.form.phone})}}},[e._v("注册")]),e._v(" "),o("el-button",[e._v("重置")])],1)],1)],1)},staticRenderFns:[]};var g=o("C7Lr")(p,m,!1,function(e){o("rpcU")},"data-v-d2c5081a",null).exports;a.default.use(r.a);var h=new r.a({routes:[{path:"/login",name:"login",component:c},{path:"/register",name:"register",component:g},{path:"/",redirect:"/login"}]}),v=o("aozt"),b=o.n(v),w={loginTrue:function(e,t){e.form.name=t.name,e.form.password=t.password,null!=t&&(e.status=2),setTimeout(function(){e.status=0},1e3)},registerTrue:function(e,t){e.form.name=t.name,e.form.password=t.password,e.form.phone=t.phone,null!=t&&(e.status=1),setTimeout(function(){e.status=0},1e3),console.log(t)}};a.default.use(f.a);var _=new f.a.Store({state:{form:{name:"",password:"",phone:""},status:0},mutations:w,actions:{loginTrue:function(e,t){(0,e.commit)("loginTrue",{name:t.name,password:t.password})},registerTrue:function(e,t){(0,e.commit)("registerTrue",{name:t.name,password:t.password,phone:t.phone})}},getters:{}}),x=(o("/Hv2"),o("IjVM"),o("t+b9"));a.default.use(x.Pagination),a.default.use(x.Dialog),a.default.use(x.Autocomplete),a.default.use(x.Dropdown),a.default.use(x.DropdownMenu),a.default.use(x.DropdownItem),a.default.use(x.Menu),a.default.use(x.Submenu),a.default.use(x.MenuItem),a.default.use(x.MenuItemGroup),a.default.use(x.Input),a.default.use(x.InputNumber),a.default.use(x.Radio),a.default.use(x.RadioGroup),a.default.use(x.RadioButton),a.default.use(x.Checkbox),a.default.use(x.CheckboxButton),a.default.use(x.CheckboxGroup),a.default.use(x.Switch),a.default.use(x.Select),a.default.use(x.Option),a.default.use(x.OptionGroup),a.default.use(x.Button),a.default.use(x.ButtonGroup),a.default.use(x.Table),a.default.use(x.TableColumn),a.default.use(x.DatePicker),a.default.use(x.TimeSelect),a.default.use(x.TimePicker),a.default.use(x.Popover),a.default.use(x.Tooltip),a.default.use(x.Breadcrumb),a.default.use(x.BreadcrumbItem),a.default.use(x.Form),a.default.use(x.FormItem),a.default.use(x.Tabs),a.default.use(x.TabPane),a.default.use(x.Tag),a.default.use(x.Tree),a.default.use(x.Alert),a.default.use(x.Slider),a.default.use(x.Icon),a.default.use(x.Row),a.default.use(x.Col),a.default.use(x.Upload),a.default.use(x.Progress),a.default.use(x.Badge),a.default.use(x.Card),a.default.use(x.Rate),a.default.use(x.Steps),a.default.use(x.Step),a.default.use(x.Carousel),a.default.use(x.CarouselItem),a.default.use(x.Collapse),a.default.use(x.CollapseItem),a.default.use(x.Cascader),a.default.use(x.ColorPicker),a.default.use(x.Container),a.default.use(x.Header),a.default.use(x.Aside),a.default.use(x.Main),a.default.use(x.Footer),a.default.use(x.Loading.directive),a.default.prototype.$loading=x.Loading.service,a.default.prototype.$msgbox=x.MessageBox,a.default.prototype.$alert=x.MessageBox.alert,a.default.prototype.$confirm=x.MessageBox.confirm,a.default.prototype.$prompt=x.MessageBox.prompt,a.default.prototype.$notify=x.Notification,a.default.prototype.$message=x.Message,a.default.prototype.$http=b.a,a.default.config.productionTip=!1,new a.default({el:"#app",router:h,store:_,components:{App:u},template:"<App/>"})},rpcU:function(e,t){},"t+l5":function(e,t){}},["NHnr"]);
  //# sourceMappingURL=app.dfbc2511380d464983ed.js.map