require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/retrievePassword/index"],{"0407":function(t,e,n){"use strict";n.r(e);var i=n("b1dd"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"041e":function(t,e,n){},4144:function(t,e,n){"use strict";n.r(e);var i=n("7a65"),a=n("0407");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("5c4b");var c=n("828b"),u=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"1873fff7",null,!1,i["a"],void 0);e["default"]=u.exports},"5c4b":function(t,e,n){"use strict";var i=n("041e"),a=n.n(i);a.a},"68ec":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("f076");i(n("3240"));var a=i(n("4144"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"7a65":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},b1dd:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7eb4")),r=i(n("ee10")),c=i(n("0293")),u=i(n("89cc")),s=n("92f9"),o=n("4d38"),f={name:"RetrievePassword",components:{Verify:function(){n.e("pages/users/components/verify/verify").then(function(){return resolve(n("2e78"))}.bind(null,n)).catch(n.oe)}},data:function(){return{account:"",password:"",passwordAgain:"",captcha:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1,imgHost:o.HTTP_REQUEST_URL,type:"login"}},mixins:[c.default,u.default],mounted:function(){},methods:{back:function(){t.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},registerReset:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.account){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:"请填写手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码"}));case 5:if(n.captcha){e.next=7;break}return e.abrupt("return",n.$util.Tips({title:"请填写验证码"}));case 7:if(n.password){e.next=9;break}return e.abrupt("return",n.$util.Tips({title:"请填写新密码"}));case 9:if(n.password==n.passwordAgain){e.next=11;break}return e.abrupt("return",n.$util.Tips({title:"两次密码不一致"}));case 11:(0,s.registerReset)({account:n.account,captcha:n.captcha,password:n.password,code:n.codeVal}).then((function(t){n.$util.Tips({title:t.msg},{tab:3})})).catch((function(t){n.$util.Tips({title:t})}));case 12:case"end":return e.stop()}}),e)})))()},success:function(t){var e=this;this.$refs.verify.hide(),(0,s.getCodeApi)().then((function(n){e.keyCode=n.data.key,e.getCode(t)})).catch((function(t){e.$util.Tips({title:t})}))},code:function(t){return this.account?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.account)?void this.$refs.verify.show():this.$util.Tips({title:"请输入正确的手机号码"}):this.$util.Tips({title:"请填写手机号码"})},getCode:function(t){var e=this;return(0,r.default)(a.default.mark((function n(){var i;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e,n.next=4,(0,s.registerVerify)({phone:i.account,type:i.type,key:i.keyCode,captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){i.$util.Tips({title:t.msg}),i.sendCode()})).catch((function(t){e.$refs.verify.refresh(),i.$util.Tips({title:t})}));case 4:case"end":return n.stop()}}),n)})))()}}};e.default=f}).call(this,n("df3c")["default"])}},[["68ec","common/runtime","common/vendor"]]]);