(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ee566a6"],{"3e33":function(t,e,s){},"705c":function(t,e,s){"use strict";var a=s("3e33"),n=s.n(a);n.a},ff3a:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"change headP"},[s("Head",{attrs:{title:t.title}}),s("div",{staticClass:"changeIn"},[s("p",[t._v("未来bike运维平台")]),s("div",{staticClass:"inp"},[s("div",[s("i",{staticClass:"iconfont"},[t._v("")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.oldPwd,expression:"oldPwd"}],attrs:{type:"text",placeholder:"请输入原密码"},domProps:{value:t.oldPwd},on:{blur:t.ckOld,input:function(e){e.target.composing||(t.oldPwd=e.target.value)}}})]),s("div",[s("i",{staticClass:"iconfont"},[t._v("")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.newPwd,expression:"newPwd"}],attrs:{type:"text",placeholder:"请输入新密码"},domProps:{value:t.newPwd},on:{blur:t.ckNewpwd,input:function(e){e.target.composing||(t.newPwd=e.target.value)}}})]),s("div",[s("i",{staticClass:"iconfont"},[t._v("")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.sPwd,expression:"sPwd"}],attrs:{type:"text",placeholder:"请再次确认新密码"},domProps:{value:t.sPwd},on:{blur:t.ckSpwd,input:function(e){e.target.composing||(t.sPwd=e.target.value)}}})])])]),s("div",{staticClass:"btn"},[s("button",{on:{click:t.change}},[t._v("确认修改")])]),s("div",{staticClass:"issue"},[t._v("如遇到登陆问题请及时联系管理员")])],1)},n=[],o=s("76a0"),i={data:function(){return{title:"修改密码",oldPwd:"",newPwd:"",sPwd:""}},created:function(){},methods:{ckOld:function(){this.axios.post(config.url.verifyOldPassword,this.qs.stringify({old_password:this.oldPwd})).then(function(t){204==t.status?console.log(11111):console.log(22222)}).catch(function(t){Object(o["Toast"])(t.response.data.message)})},ckNewpwd:function(){var t=/^(?![^a-zA-Z]+$)(?!\D+$).{6,20}$/;this.newPwd?t.test(this.newPwd)||Object(o["Toast"])("请输入至少6位字母+数字"):Object(o["Toast"])("新密码不能为空")},ckSpwd:function(){var t=/^(?![^a-zA-Z]+$)(?!\D+$).{6,20}$/;this.newPwd?t.test(this.newPwd)||Object(o["Toast"])("请输入至少6位字母+数字"):Object(o["Toast"])("确认密码不能为空")},change:function(){var t=this;this.oldPwd?this.newPwd?this.sPwd?this.newPwd!=this.sPwd?o["MessageBox"].alert("确认密码与新密码不一致","提示"):this.oldPwd==this.newPwd?o["MessageBox"].alert("新密码不能与原密码一致","提示"):this.axios.post(config.url.changePassword,this.qs.stringify({new_password:this.newPwd,re_password:this.sPwd,old_password:this.oldPwd})).then(function(e){200==e.status&&t.$router.push({name:"login"})}).catch(function(t){Object(o["Toast"])(t.response.data.message)}):o["MessageBox"].alert("确认密码不能为空","提示"):o["MessageBox"].alert("新密码不能为空","提示"):o["MessageBox"].alert("原密码不能为空","提示")}}},d=i,c=(s("705c"),s("2877")),l=Object(c["a"])(d,a,n,!1,null,"0bdee990",null);e["default"]=l.exports}}]); //# sourceMappingURL=chunk-3ee566a6.96049542.js.map