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