(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/forget"],{"12a5":function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=o(n("9523")),i=n("26cb"),r=n("ec28");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,c.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={data:function(){return{phone:"",code:"",time:"",countDown:0}},onLoad:function(){},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:u(u({},(0,i.mapMutations)("user",["setUserInfo","login"])),{},{register:function(){var e=this;""!=e.phone?/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.phone)?""!=e.code?(0,r.loginMobile)({phone:e.phone,captcha:e.code}).then((function(n){t.setStorageSync("token",n.data.token),(0,r.getUserInfo)({}).then((function(n){e.login(),e.setUserInfo(n.data),t.switchTab({url:"/pages/index/index"})}))})).catch((function(t){console.log(t)})):e.$api.msg("请输入验证码"):e.$api.msg("请输入正确的手机号"):e.$api.msg("请输入电话号码")},verification:function(){var t=this;if(""!=this.phone){if(!(this.phone.length<11))return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,r.verify)({phone:t.phone,type:"login"}).then((function(t){t.data})).catch((function(t){console.log(t)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},login:function(){t.navigateTo({url:"/pages/public/login"})}})};e.default=f}).call(this,n("543d")["default"])},3570:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},c=[]},7407:function(t,e,n){"use strict";var o=n("9b4b"),c=n.n(o);c.a},"9b4b":function(t,e,n){},b44d:function(t,e,n){"use strict";n.r(e);var o=n("12a5"),c=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=c.a},cd42:function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("3e39");o(n("66fd"));var c=o(n("d024"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(c.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},d024:function(t,e,n){"use strict";n.r(e);var o=n("3570"),c=n("b44d");for(var i in c)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(i);n("7407");var r=n("f0c5"),a=Object(r["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=a.exports}},[["cd42","common/runtime","common/vendor"]]]);