(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/password"],{5814:function(t,n,e){},"5a9a":function(t,n,e){"use strict";e.r(n);var c=e("9c43"),o=e.n(c);for(var r in c)"default"!==r&&function(t){e.d(n,t,(function(){return c[t]}))}(r);n["default"]=o.a},"9c43":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=e("4f00"),o=e("26cb"),r=e("1d0e");function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);n&&(c=c.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,c)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?i(Object(e),!0).forEach((function(n){a(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function a(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var s={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1}},computed:u({},(0,o.mapState)(["userInfo"])),onLoad:function(){null==this.userInfo.phone?this.account="":(this.account=this.userInfo.phone,this.show=!1)},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:{verification:function(){var t=this;if(""!=this.account){if(/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.account))return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,c.verify)({phone:t.account,type:""}).then((function(t){t.data})).catch((function(t){console.log(t)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},confirm:function(t){var n=this;this.loding=!0,(0,r.registerReset)({account:this.account,captcha:this.captcha,password:this.password}).then((function(t){t.data;n.loding=!1,n.$api.msg("修改成功")})).catch((function(t){n.loding=!1,console.log(t)}))}}};n.default=s},b714:function(t,n,e){"use strict";var c;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return c}));var o=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){!t.loding&&t.confirm()})},r=[]},c92c:function(t,n,e){"use strict";e.r(n);var c=e("b714"),o=e("5a9a");for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("ffc6");var i,u=e("f0c5"),a=Object(u["a"])(o["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],i);n["default"]=a.exports},d98b:function(t,n,e){"use strict";(function(t){e("e27b");c(e("66fd"));var n=c(e("c92c"));function c(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},ffc6:function(t,n,e){"use strict";var c=e("5814"),o=e.n(c);o.a}},[["d98b","common/runtime","common/vendor"]]]);