webpackJsonp([15],{"+igf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("2CGT"),c=n("Fd2+"),o={data:function(){return{phone:"",code:"",pwd:"",pwdCheck:"",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(c.c)("输入手机号有误"),!1):4!=this.code.length?(Object(c.c)("输入验证码有误"),!1):this.pwd.length<8||this.pwd.length>12?(Object(c.c)("请输入8-12位密码"),!1):this.pwd!=this.pwdCheck?(Object(c.c)("两次输入密码不一致"),!1):(c.c.loading({message:"加载中...",forbidClick:!0,duration:0}),void(this.isDisable&&(this.isDisable=!1,Object(i.f)({mobile:this.phone,password:this.pwd,code:this.code}).then(function(n){console.log(n),"0"==n.rc?(Object(c.c)("设置新密码成功"),t.goBack()):Object(c.c)(n.msg),setTimeout(function(){e.isDisable=!0},2e3)}))))}}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page"},[n("div",{staticClass:"common_title"},[n("div",{staticClass:"back_img",on:{click:function(e){return t.goBack()}}}),t._v(" "),n("div",{staticClass:"common_title_fl"},[t._v("找回密码")])]),t._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"common_input"},[n("input",{attrs:{type:"number",placeholder:"请输入手机号",maxlength:"11"},on:{input:function(e){return t.getVal(e,"phone")}}})]),t._v(" "),n("div",{staticClass:"common_input"},[n("input",{attrs:{type:"text",placeholder:"验证码",maxlength:"4"},on:{input:function(e){return t.getVal(e,"code")}}})]),t._v(" "),n("div",{staticClass:"common_input"},[n("input",{attrs:{type:"text",placeholder:"请输入新密码（8-12位的字母数字组合）",maxlength:"12",minlength:"8"},on:{input:function(e){return t.getVal(e,"pwd")}}})]),t._v(" "),n("div",{staticClass:"common_input"},[n("input",{attrs:{type:"text",placeholder:"再次输入新密码",maxlength:"12",minlength:"8"},on:{input:function(e){return t.getVal(e,"pwdCheck")}}})]),t._v(" "),n("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 a=n("VU/8")(o,s,!1,function(t){n("WV2n")},"data-v-e48acd1e",null);e.default=a.exports},WV2n:function(t,e){}});
//# sourceMappingURL=15.7cd1d7a29961e11c4bdf.js.map