(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21109be6"],{1823:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"el-fade-in-linear"}},[r("div",{staticClass:"app-myInfo"},[r("div",{staticClass:"app-header"},[r("appHeader"),r("el-divider")],1),r("div",{staticClass:"myInfo-body"},[r("el-card",{staticClass:"box-card editCard"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[e._v("个人信息修改")])]),r("el-form",{ref:"editForm",attrs:{model:e.editForm,"label-width":"80px",rules:e.editRules,"hide-required-asterisk":"true"}},[r("el-form-item",{attrs:{label:"昵称",prop:"name"}},[r("el-input",{attrs:{type:"text",autocomplete:"off",size:"small",placeholder:"昵称",maxlength:"30","show-word-limit":""},model:{value:e.editForm.name,callback:function(t){e.$set(e.editForm,"name",t)},expression:"editForm.name"}})],1),r("el-form-item",{attrs:{label:"电话号码",prop:"phone"}},[r("el-input",{attrs:{type:"text",autocomplete:"off",size:"small",placeholder:"电话号码","suffix-icon":"el-icon-mobile-phone"},model:{value:e.editForm.phone,callback:function(t){e.$set(e.editForm,"phone",t)},expression:"editForm.phone"}})],1),r("el-form-item",{attrs:{label:"性别",size:"medium",prop:"sex"}},[r("el-radio-group",{model:{value:e.editForm.sex,callback:function(t){e.$set(e.editForm,"sex",t)},expression:"editForm.sex"}},[r("el-radio",{attrs:{border:"",label:"男"}}),r("el-radio",{attrs:{border:"",label:"女"}})],1)],1),r("el-form-item",{staticClass:"editButtonItem"},[r("el-button",{staticClass:"editButton",attrs:{type:"primary"},on:{click:function(t){return e.submitEdit("editForm")}}},[e._v("提交")]),r("el-button",{staticClass:"resetButton",on:{click:function(t){return e.resetForm("editForm")}}},[e._v("重置")])],1)],1)],1)],1),r("div",{staticClass:"app-footer"},[r("el-divider"),r("appFooter",{staticClass:"app-footer"})],1)])])},a=[],i=r("1da1"),o=(r("96cf"),r("f392")),n=r("2c4b"),l=r("c24f"),d={name:"myInfo",components:{appHeader:o["a"],appFooter:n["a"]},data:function(){return{editForm:{sex:"",phone:"",name:"",address:""},editRules:{sex:[{required:!0,message:"请选择性别",trigger:"blur"}],phone:[{required:!0,message:"请输入电话号码",trigger:"blur"},{min:11,max:11,trigger:"blur"}],name:[{required:!0,message:"请输入您的昵称",trigger:"blur"},{min:3,max:30,trigger:"blur"}],address:[{required:!0,message:"请输入您的收货地址",trigger:"blur"},{min:3,max:50,trigger:"blur"}]}}},methods:{submitEdit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;t.onSubmit()}))},onSubmit:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["a"])({name:e.editForm.userName,sex:e.editForm.sex,phone:e.editForm.phone,address:e.editForm.address});case 2:r=t.sent,s=r.data,window.location.href="/",console.log(s),e.openSuccess();case 7:case"end":return t.stop()}}),t)})))()},openSuccess:function(){this.$message({message:"恭喜你，编辑个人信息成功!",type:"success"})},resetForm:function(e){this.$refs[e].resetFields()}}},m=d,u=(r("e583"),r("2877")),c=Object(u["a"])(m,s,a,!1,null,"7a69b27e",null);t["default"]=c.exports},a964:function(e,t,r){},e583:function(e,t,r){"use strict";r("a964")}}]);
//# sourceMappingURL=chunk-21109be6.6272a30d.js.map