forget.js 3.0 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/forget"],{"01a2":function(t,e,n){},"0a9e":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("26cb"),r=n("ca0f");function i(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 c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={data:function(){return{phone:"",code:"",time:"",countDown:0}},onLoad:function(){},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:c(c({},(0,o.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=u}).call(this,n("543d")["default"])},"27f6":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement;t._self._c},i=[]},"37f1":function(t,e,n){"use strict";(function(t){n("7154");o(n("66fd"));var e=o(n("d765"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"3d9a":function(t,e,n){"use strict";var o=n("01a2"),r=n.n(o);r.a},d765:function(t,e,n){"use strict";n.r(e);var o=n("27f6"),r=n("eda3");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("3d9a");var c,a=n("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);e["default"]=u.exports},eda3:function(t,e,n){"use strict";n.r(e);var o=n("0a9e"),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a}},[["37f1","common/runtime","common/vendor"]]]);