require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_pwd_edit/index"],{3729:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},o=[]},8845:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("f448")),s=i("3c22"),r=i("cef1"),u=i("8f59"),a=i("d5b1"),c=i("0cce"),l=i("3c22"),d=getApp(),f={mixins:[o.default],components:{Verify:function(){i.e("pages/users/components/verifition/verify").then(function(){return resolve(i("8715"))}.bind(null,i)).catch(i.oe)}},data:function(){return{password:"",captcha:"",qr_password:"",isAuto:!1,isShowAuth:!1,theme:d.globalData.theme,bgColor:""}},computed:(0,u.mapGetters)(["isLogin","userInfo"]),onLoad:function(){this.isLogin||(0,r.toLogin)(),this.bgColor=(0,a.setThemeColor)(),t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.bgColor})},methods:{onLoadFun:function(t){},authColse:function(t){this.isShowAuth=t},handlerOnVerSuccess:function(t){this.$refs.verify.hide(),this.codeSend()},codeSend:function(){var t=this;(0,l.updatePasswordCodeApi)().then((function(e){t.$util.Tips({title:"发送成功"}),t.sendCode()})).catch((function(e){return t.$util.Tips({title:e})}))},code:(0,c.Debounce)((function(t){return this.userInfo.phone?this.qr_password!=this.password?this.$util.Tips({title:"两次输入的密码不一致！"}):void this.$refs.verify.show():this.$util.Tips({title:"手机号码不存在,无法发送验证码！"})})),checkPasd:function(t){var e=t.detail.value;if(this.password=e,!/^[a-zA-Z]\w{5,17}$/i.test(e))return this.$util.Tips({title:"密码格式错误，密码必须以字母开头，长度在6~8之间，只能包含字符数字和下划线"})},checkPassword:function(t){var e=t.detail.value;if(this.qr_password=e,e!=this.password)return this.$util.Tips({title:"两次输入的密码不一致！"})},editPwd:(0,c.Debounce)((function(e){var i=this,n=e.detail.value.password,o=e.detail.value.qr_password,r=e.detail.value.captcha;return n?o?r?(t.showLoading({title:"加载中",mask:!0}),void(0,s.phoneRegisterReset)({captcha:r,password:n}).then((function(e){return t.hideLoading(),i.$util.Tips({title:"操作成功"},{tab:3,url:1})})).catch((function(e){return t.hideLoading(),i.$util.Tips({title:e})}))):i.$util.Tips({title:"请输入验证码"}):i.$util.Tips({title:"请确认新密码"}):i.$util.Tips({title:"请输入新密码"})}))}};e.default=f}).call(this,i("df3c")["default"])},"88ea":function(t,e,i){},ae06:function(t,e,i){"use strict";var n=i("88ea"),o=i.n(n);o.a},b433:function(t,e,i){"use strict";i.r(e);var n=i("3729"),o=i("e392");for(var s in o)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(s);i("ae06");var r=i("828b"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},cc26:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1d3c");n(i("3240"));var o=n(i("b433"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},e392:function(t,e,i){"use strict";i.r(e);var n=i("8845"),o=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=o.a}},[["cc26","common/runtime","common/vendor","pages/users/common/vendor"]]]);