webpackJsonp([83],{"2lHh":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2CGT"),o=s("Fd2+"),i={data:function(){return{userInfo:JSON.parse(sessionStorage.getItem("userInfo"))||{genderList:"",address:"",gender:"",nickName:"",memberName:"",cardNo:"",birthday:"",avatar:"",certificatePhoto:"",user:""},isDisable:!0}},methods:{getVal:function(t,e){this[e]=t.target.value.replace(/ /g,"")},goBack:function(){this.$router.go(-1)},goNext:function(){var t=this,e=this;return 11!=this.phone.length?(Object(o.c)("输入手机号有误"),!1):4!=this.code.length?(Object(o.c)("输入验证码有误"),!1):this.pwd.length<8||this.pwd.length>12?(Object(o.c)("请输入8-12位密码"),!1):this.pwd!=this.pwdCheck?(Object(o.c)("两次输入密码不一致"),!1):(o.c.loading({message:"加载中...",forbidClick:!0,duration:0}),void(this.isDisable&&(this.isDisable=!1,Object(a.f)({mobile:this.phone,password:this.pwd,code:this.code}).then(function(s){console.log(s),"0"==s.rc?(Object(o.c)("设置新密码成功"),t.goBack()):Object(o.c)(s.msg),setTimeout(function(){e.isDisable=!0},2e3)}))))}}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page"},[s("div",{staticClass:"common_title"},[s("div",{staticClass:"back_img",on:{click:function(e){return t.goBack()}}}),t._v(" "),s("div",{staticClass:"common_title_fl"},[t._v("会员信息")])]),t._v(" "),s("div",{staticClass:"content"},[s("div",{staticClass:"commonInputBox logoBox"},[s("div",{staticClass:"label"},[t._v("头像")]),t._v(" "),s("van-uploader",{attrs:{name:"avatar","before-read":t.beforeRead}},[s("div",{staticClass:"overBox"},[t.closeState?s("div",{staticClass:"close",on:{click:t.removeImg}}):t._e(),t._v(" "),s("div",{staticClass:"minImg"},[""==t.userInfo.avatar?s("div",{staticClass:"icon"}):s("van-image",{attrs:{height:"100%",width:"100%",fit:"cover",src:t.userInfo.avatar}})],1)])])],1),t._v(" "),s("div",{staticClass:"commonInputBox"},[s("div",{staticClass:"label"},[t._v("昵称")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请填写"},domProps:{value:t.userInfo.nickName},on:{blur:function(e){return t.getVal(e,"nickName")}}})]),t._v(" "),s("div",{staticClass:"commonInputBox"},[s("div",{staticClass:"label"},[t._v("性别")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请填写"},domProps:{value:t.userInfo.gender},on:{blur:function(e){return t.getVal(e,"gender")}}})]),t._v(" "),s("div",{staticClass:"commonInputBox"},[s("div",{staticClass:"label"},[t._v("生日")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请填写"},domProps:{value:t.userInfo.birthday},on:{blur:function(e){return t.getVal(e,"birthday")}}})]),t._v(" "),s("div",{staticClass:"commonInputBox"},[s("div",{staticClass:"label"},[t._v("真实姓名")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请填写"},domProps:{value:t.userInfo.memberName},on:{blur:function(e){return t.getVal(e,"memberName")}}})]),t._v(" "),s("div",{staticClass:"commonInputBox"},[s("div",{staticClass:"label"},[t._v("身份证")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请填写"},domProps:{value:t.userInfo.cardNo},on:{blur:function(e){return t.getVal(e,"cardNo")}}})]),t._v(" "),s("div",{staticClass:"commonInputBox"},[s("div",{staticClass:"label"},[t._v("收货地址")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请填写"},domProps:{value:t.userInfo.address.province},on:{blur:function(e){return t.getVal(e,"province")}}})]),t._v(" "),s("div",{staticClass:"commonInputBox"},[s("div",{staticClass:"label"},[t._v("详细地址")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"详细地址（用于邮寄证书）：如街道，小区，单元楼"},domProps:{value:t.userInfo.address.address},on:{blur:function(e){return t.getVal(e,"address")}}})]),t._v(" "),s("div",{staticClass:"commonInputBox logoBox"},[s("div",{staticClass:"label"},[t._v("证件照")]),t._v(" "),s("van-uploader",{attrs:{name:"certificatePhoto","before-read":t.beforeRead}},[s("div",{staticClass:"overBox"},[t.closeState?s("div",{staticClass:"close",on:{click:t.removeImg}}):t._e(),t._v(" "),s("div",{staticClass:"minImg"},[""==t.userInfo.certificatePhoto?s("div",{staticClass:"icon"}):s("van-image",{attrs:{height:"100%",width:"100%",fit:"cover",src:t.userInfo.certificatePhoto}})],1)])])],1),t._v(" "),s("div",{class:["commonBtn",this.phone&&this.code&&this.pwd&&this.pwdCheck?"commonBtn_blue":"commonBtn"],on:{click:function(e){return t.goNext()}}},[t._v("\n      完成\n    ")])])])},staticRenderFns:[]};var c=s("VU/8")(i,n,!1,function(t){s("Wg/W")},"data-v-13fc9e14",null);e.default=c.exports},"Wg/W":function(t,e){}});
//# sourceMappingURL=83.8cb2cd4fc2020544acc3.js.map