webpackjsonp([79],{"0clz":function(s,e,o){"use strict";object.defineproperty(e,"__esmodule",{value:!0});var r=o("dpxm"),t=o.n(r);for(var a in r)"default"!==a&&function(s){o.d(e,s,function(){return r[s]})}(a);var i=o("cict"),d=!1;var n=function(s){d||o("tmsu")},p=o("x4nt")(t.a,i.a,!1,n,null,null);p.options.__file="pages/login/forgetpassword.vue",e.default=p.exports},cict:function(s,e,o){"use strict";var r=function(){var s=this,e=s.$createelement,o=s._self._c||e;return o("div",{staticclass:"forget-password-wrap"},[o("top",{attrs:{searchtext:"搜索"}}),o("div",{staticclass:"find-password"},[o("div",{staticclass:"layout password"},[o("h5",{staticclass:"h"},[s._v("忘记密码")]),o("div",{staticclass:"process"},[o("span",{staticclass:"item",class:{active:1==s.step,finished:s.step>1}},[o("samp",[s._v("1")]),s._v("填写账号")]),o("span",{staticclass:"item",class:{active:2==s.step,finished:s.step>2}},[o("samp",[s._v("2")]),s._v("验证身份")]),o("span",{staticclass:"item",class:{active:3==s.step,finished:s.step>3}},[o("samp",[s._v("3")]),s._v("设置新密码")]),o("span",{staticclass:"item finish",class:{active:4==s.step}},[s._m(0),s._v("完成")])]),o("div",{staticclass:"findpassword"},[o("el-form",{ref:"findpasswordform",attrs:{model:s.findpasswordform,rules:s.findpasswordrules}},[1==s.step?o("el-form-item",{attrs:{prop:"username"}},[o("div",{staticclass:"item"},[o("label",[s._v("账号:")]),o("el-input",{staticclass:"big-input",attrs:{type:"",name:"",placeholder:"用户名/手机号"},model:{value:s.findpasswordform.username,callback:function(e){s.$set(s.findpasswordform,"username",e)},expression:"findpasswordform.username"}})],1)]):s._e(),1==s.step?o("el-form-item",{attrs:{prop:"imgcode"}},[o("div",{staticclass:"item"},[o("label",[s._v("图片验证码:")]),o("el-input",{staticclass:"small-input",attrs:{type:"",name:"",placeholder:"输入图片验证码"},model:{value:s.findpasswordform.imgcode,callback:function(e){s.$set(s.findpasswordform,"imgcode",e)},expression:"findpasswordform.imgcode"}}),o("span",{staticclass:"img-code-box vertical-m"},[o("img",{attrs:{src:s.imgcodepath},on:{click:s.refreshimgcode}})])],1)]):s._e(),2==s.step?o("el-form-item",{attrs:{prop:"mobile"}},[o("div",{staticclass:"item"},[o("label",[s._v("手机号:")]),o("span",{staticclass:"tip"},[s._v(s._s(s.mobile))])])]):s._e(),2==s.step?o("el-form-item",{attrs:{prop:"authcode"}},[o("div",{staticclass:"item"},[o("label",[s._v("短信验证码:")]),o("el-input",{staticclass:"code-input",attrs:{type:"",name:"",placeholder:"短信验证码"},model:{value:s.findpasswordform.authcode,callback:function(e){s.$set(s.findpasswordform,"authcode",e)},expression:"findpasswordform.authcode"}}),o("button",{staticclass:"default getcode",attrs:{type:"button",disabled:s.isgetauthcode},on:{click:s.getcodesms}},[s._v("\n "+s._s(s.getauthcodetip)+"\n ")])],1)]):s._e(),3==s.step?o("el-form-item",{attrs:{prop:"newpwd"}},[o("div",{staticclass:"item"},[o("label",[s._v("新密码:")]),o("el-input",{staticclass:"big-input",attrs:{type:"password",name:"",placeholder:"6-18位字符"},model:{value:s.findpasswordform.newpwd,callback:function(e){s.$set(s.findpasswordform,"newpwd",e)},expression:"findpasswordform.newpwd"}})],1)]):s._e(),3==s.step?o("el-form-item",{attrs:{prop:"checknewpwd"}},[o("div",{staticclass:"item"},[o("label",[s._v("确认密码:")]),o("el-input",{staticclass:"big-input",attrs:{type:"password",name:"",placeholder:"6-18位字符"},model:{value:s.findpasswordform.checknewpwd,callback:function(e){s.$set(s.findpasswordform,"checknewpwd",e)},expression:"findpasswordform.checknewpwd"}})],1)]):s._e(),4==s.step?o("div",{staticclass:"finish-box"},[o("div",{staticclass:"left"}),o("div",{staticclass:"right"},[o("p",[s._v("新密码设置成功!")]),o("span",[s._v("请牢记您设置的新密码。"),o("a",[s._v("返回首页")])])])]):s._e()],1),4!=s.step?o("button",{staticclass:"primary submit-btn",attrs:{type:"button"},on:{click:s.submit}},[s._v("\n 提交\n ")]):s._e()],1)])]),o("foot")],1)};r._withstripped=!0;var t={render:r,staticrenderfns:[function(){var s=this.$createelement,e=this._self._c||s;return e("samp",[e("img",{attrs:{src:"/images/find_password_success.png"}})])}]};e.a=t},dpxm:function(s,e,o){"use strict";object.defineproperty(e,"__esmodule",{value:!0});var r=w(o("4yfn")),t=w(o("xikd")),a=w(o("gp9p")),i=w(o("gcxn")),d=w(o("2zc1")),n=w(o("s/go")),p=w(o("psvj")),f=o("9rma");function w(s){return s&&s.__esmodule?s:{default:s}}e.default={layout:"default",data:function(){var s=this;return{step:1,userattrid:"",imgcodepath:"",mobile:null,isgetauthcode:!1,getauthcodetip:"获取验证码",yzinterval:null,findpasswordform:{username:"",imgcode:"",authcode:"",newpwd:"",checknewpwd:""},findpasswordrules:{username:[{validator:function(s,e,o){e?o():o(new error("请输入用户名/手机号!"))}}],imgcode:[{validator:function(s,e,o){e?o():o(new error("请输入验证码!"))}}],authcode:[{validator:function(s,e,o){e?n.default.isauthcode(e)?o():o(new error("请输入有效的手机验证码!")):o(new error("请输入手机验证码!"))}}],newpwd:[{validator:function(s,e,o){e?n.default.ispassword(e)?o():o(new error("密码为6~18位的字母和数字组成!")):o(new error("请输入新密码!"))}}],checknewpwd:[{validator:function(e,o,r){o?o!=s.findpasswordform.newpwd?r(new error("确认密码和新密码不一致!")):r():r(new error("请输入确认密码!"))}}]}}},computed:{},mounted:function(){this.userattrid=d.default.local.get("userattrid"),this.imgcodepath=p.default.sockethost+"/random?v="+math.random()+"&userattrid="+this.userattrid},methods:(0,r.default)({},(0,f.mapactions)({checkrandomcode:"login/checkrandomcode",sendauthcodesms:"login/sendauthcodesms",checkauthcodenoaccess:"login/checkauthcodenoaccess",dosetloginpwdbymobile:"login/dosetloginpwdbymobile",getlogintoken:"login/getlogintoken"}),{submit:function(){var s=this;switch(this.step){case 1:var e=!0,o=!0;this.$refs.findpasswordform.validatefield("username",function(s){e=!s}),this.$refs.findpasswordform.validatefield("imgcode",function(s){o=!s}),o&&e&&this.checkrandomcode([this.findpasswordform.username,this.findpasswordform.imgcode]).then(function(e){e.success?(s.step=2,s.mobile=e.target):s.$message.error(e&&e.message||"验证码无效或用户不存在!")}).catch(function(e){e&&s.$message.error(e)});break;case 2:this.checkphoneauthcode();break;case 3:this.findpasswordfn()}},refreshimgcode:function(){this.imgcodepath=p.default.sockethost+"/random?v="+math.random()+"&userattrid="+this.userattrid},checkphoneauthcode:function(){var s=this;this.$refs.findpasswordform.validatefield("authcode",function(e){e||s.checkauthcodenoaccess([s.mobile,s.findpasswordform.authcode]).then(function(e){e&&e.success?(s.step=3,clearinterval(s.yzinterval)):s.$message.error(e.message||"校验失败!")}).catch(function(e){e&&s.$message.error(e)})})},getcodesms:function(){var s=this,e=this.mobile,o=this.registerruleform.imgcode;e&&n.default.istel(e)?o?this.sendauthcodesms([e,o]).then(function(e){s.intervalyz()}).catch(function(e){e&&s.$message.error(e),s.step=1,s.refreshimgcode()}):this.$message.error("请输入图片验证码"):this.$message.error("请输入有效的电话号码")},intervalyz:function(){var s=this;this.isgetauthcode=!0;var e=60;this.getauthcodetip="重新获取("+e+")",this.yzinterval=setinterval(function(){e--,s.getauthcodetip="重新获取("+e+")",0==e&&(s.getauthcodetip="重新发送",clearinterval(s.yzinterval),s.isgetauthcode=!1)},1e3)},findpasswordfn:function(){var s=this,e=!0,o=!0;if(this.$refs.findpasswordform.validatefield("newpwd",function(s){e=!s}),this.$refs.findpasswordform.validatefield("checknewpwd",function(s){o=!s}),e&&o){this.getlogintoken({p0:""}).then(function(e){var o=n.default.encryptenc(s.findpasswordform.newpwd);s.dosetloginpwdbymobile([s.mobile,s.findpasswordform.authcode,o,e.encrypttoken]).then(function(e){e.success?(s.$message.success("密码找回成功"),s.$router.push({path:"/login"})):s.$message.error(error||"密码找回失败")}).catch(function(e){e&&s.$message.error(e)})})}}}),components:{top:t.default,foot:a.default,imgs:i.default}}},sheh:function(s,e,o){s.exports=o.p+"img/operation_success40.a176764.png"},yu5g:function(s,e,o){var r=o("l4zz");(s.exports=o("utlt")(!1)).push([s.i,'.forget-password-wrap ::-webkit-input-placeholder{color:#b2b2b2}.forget-password-wrap :-moz-placeholder,.forget-password-wrap ::-moz-placeholder{color:#b2b2b2}.forget-password-wrap :-ms-input-placeholder{color:#b2b2b2}.forget-password-wrap .top-wrap{border-bottom:2px solid #da251d}.forget-password-wrap a,.forget-password-wrap span{display:inline-block}.forget-password-wrap .find-password{background:#fff}.forget-password-wrap .find-password .password{border-bottom:1px solid #dbdbdb}.forget-password-wrap .find-password .password .h{color:#000;padding:30px 0 60px 160px;font-size:14px;font-weight:700}.forget-password-wrap .find-password .password .process{width:640px;margin:0 auto 90px;font-size:0}.forget-password-wrap .find-password .password .process .item{width:160px;font-size:14px;text-align:center;color:#8a8a8a;position:relative}.forget-password-wrap .find-password .password .process .item.active{color:#72c319}.forget-password-wrap .find-password .password .process .item.active>samp,.forget-password-wrap .find-password .password .process .item.active>samp:after{background:#72c319}.forget-password-wrap .find-password .password .process .item.finished{color:#c7e7a3}.forget-password-wrap .find-password .password .process .item.finished>samp,.forget-password-wrap .find-password .password .process .item.finished>samp:after{background:#c7e7a3}.forget-password-wrap .find-password .password .process .item>samp{display:block;margin:0 auto 12px;width:22px;height:22px;line-height:22px;background:#d8d8d8;color:#fff;border-radius:50%;position:relative;z-index:2}.forget-password-wrap .find-password .password .process .item>samp:after{content:"";display:inline-block;width:161px;height:5px;border-radius:5px;background:#d8d8d8;position:absolute;top:50%;left:-71px;margin-top:-2px;z-index:-1}.forget-password-wrap .find-password .password .findpassword{width:640px;margin:0 auto 90px}.forget-password-wrap .find-password .password .findpassword .el-form-item__content .el-form-item__error{position:absolute;top:100%;left:80px}.forget-password-wrap .find-password .password .findpassword .item>label{display:inline-block;width:105px;text-align:left;font-size:12px;color:#8a8a8a}.forget-password-wrap .find-password .password .findpassword .item .el-input input{height:36px;padding:0 15px;border:1px solid #cfcfcf;border-radius:0}.forget-password-wrap .find-password .password .findpassword .item>.tip{font-size:12px;color:#000;vertical-align:top}.forget-password-wrap .find-password .password .findpassword .item>.big-input{width:350px}.forget-password-wrap .find-password .password .findpassword .item>.small-input{width:177px}.forget-password-wrap .find-password .password .findpassword .item .img-code-box{width:122px;height:36px;margin-left:46px;overflow:hidden;vertical-align:middle;cursor:pointer;text-align:right}.forget-password-wrap .find-password .password .findpassword .item>.code-input{width:150px}.forget-password-wrap .find-password .password .findpassword .item>.getcode{width:180px;height:36px;margin-left:16px;font-size:12px;color:#000;background:#f2f2f2;border:1px solid #c5c5c5;vertical-align:top}.forget-password-wrap .find-password .password .findpassword .finish-box{text-align:center}.forget-password-wrap .find-password .password .findpassword .finish-box .left,.forget-password-wrap .find-password .password .findpassword .finish-box .right{display:inline-block;vertical-align:middle}.forget-password-wrap .find-password .password .findpassword .finish-box .left{width:40px;height:40px;margin-right:50px;background:url('+r(o("sheh"))+") no-repeat 50%}.forget-password-wrap .find-password .password .findpassword .finish-box .right{text-align:left}.forget-password-wrap .find-password .password .findpassword .finish-box .right>p{margin-bottom:26px;font-size:20px;color:#222}.forget-password-wrap .find-password .password .findpassword .finish-box .right>span{color:#444}.forget-password-wrap .find-password .password .findpassword .finish-box .right>span>a{color:#4a90e2}.forget-password-wrap .find-password .password .findpassword .finish-box .right>span>a:hover{color:#e60012}.forget-password-wrap .find-password .password .findpassword .submit-btn{width:380px;height:34px;margin:14px 0 60px 108px}",""])},tmsu:function(s,e,o){var r=o("yu5g");"string"==typeof r&&(r=[[s.i,r,""]]),r.locals&&(s.exports=r.locals);o("fiqi")("5275ec74",r,!1,{sourcemap:!1})}});