(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/forget"],{121:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var o=r(t(122));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},122:function(n,e,t){"use strict";t.r(e);var r=t(123),o=t(125);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);t(127);var c,u=t(35),a=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],c);a.options.__file="pages/public/forget.vue",e["default"]=a.exports},123:function(n,e,t){"use strict";t.r(e);var r=t(124);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},124:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return r}));var o=function(){var n=this,e=n.$createElement;n._self._c},i=!1,c=[];o._withStripped=!0},125:function(n,e,t){"use strict";t.r(e);var r=t(126),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);e["default"]=o.a},126:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(t(11)),i=t(28),c=t(100);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,o.default)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f={data:function(){return{phone:"",code:"",time:"",countDown:0}},onLoad:function(){},watch:{countDown:function(n){0==n&&clearInterval(this.time)}},methods:a(a({},(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,c.loginMobile)({phone:e.phone,captcha:e.code}).then((function(t){n.setStorageSync("token",t.data.token),(0,c.getUserInfo)({}).then((function(t){e.login(),e.setUserInfo(t.data),n.switchTab({url:"/pages/index/index"})}))})).catch((function(n){console.log(n)})):e.$api.msg("请输入验证码"):e.$api.msg("请输入正确的手机号"):e.$api.msg("请输入电话号码")},verification:function(){var n=this;if(""!=this.phone){if(!(this.phone.length<11))return!(n.countDown>0)&&(n.countDown=60,n.time=setInterval((function(){n.countDown--}),1e3),void(0,c.verify)({phone:n.phone,type:"login"}).then((function(n){n.data})).catch((function(n){console.log(n)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},login:function(){n.navigateTo({url:"/pages/public/login"})}})};e.default=f}).call(this,t(2)["default"])},127:function(n,e,t){"use strict";t.r(e);var r=t(128),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);e["default"]=o.a},128:function(n,e,t){}},[[121,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/public/forget.js.map