forget.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/public/forget" ], {
  2. 59: function(n, e, t) {
  3. (function(n) {
  4. function e(n) {
  5. return n && n.__esModule ? n : {
  6. default: n
  7. };
  8. }
  9. t(4), e(t(2)), n(e(t(60)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 60: function(n, e, t) {
  13. t.r(e);
  14. var o = t(61), r = t(63);
  15. for (var c in r) "default" !== c && function(n) {
  16. t.d(e, n, function() {
  17. return r[n];
  18. });
  19. }(c);
  20. t(65);
  21. var i = t(13), u = Object(i.default)(r.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
  22. u.options.__file = "pages/public/forget.vue", e.default = u.exports;
  23. },
  24. 61: function(n, e, t) {
  25. t.r(e);
  26. var o = t(62);
  27. t.d(e, "render", function() {
  28. return o.render;
  29. }), t.d(e, "staticRenderFns", function() {
  30. return o.staticRenderFns;
  31. }), t.d(e, "recyclableRender", function() {
  32. return o.recyclableRender;
  33. }), t.d(e, "components", function() {
  34. return o.components;
  35. });
  36. },
  37. 62: function(n, e, t) {
  38. t.r(e), t.d(e, "render", function() {
  39. return o;
  40. }), t.d(e, "staticRenderFns", function() {
  41. return c;
  42. }), t.d(e, "recyclableRender", function() {
  43. return r;
  44. }), t.d(e, "components", function() {});
  45. var o = function() {
  46. var n = this;
  47. n.$createElement;
  48. n._self._c;
  49. }, r = !1, c = [];
  50. o._withStripped = !0;
  51. },
  52. 63: function(n, e, t) {
  53. t.r(e);
  54. var o = t(64), r = t.n(o);
  55. for (var c in o) "default" !== c && function(n) {
  56. t.d(e, n, function() {
  57. return o[n];
  58. });
  59. }(c);
  60. e.default = r.a;
  61. },
  62. 64: function(n, e, t) {
  63. (function(n) {
  64. function o(n, e) {
  65. var t = Object.keys(n);
  66. if (Object.getOwnPropertySymbols) {
  67. var o = Object.getOwnPropertySymbols(n);
  68. e && (o = o.filter(function(e) {
  69. return Object.getOwnPropertyDescriptor(n, e).enumerable;
  70. })), t.push.apply(t, o);
  71. }
  72. return t;
  73. }
  74. function r(n) {
  75. for (var e = 1; e < arguments.length; e++) {
  76. var t = null != arguments[e] ? arguments[e] : {};
  77. e % 2 ? o(Object(t), !0).forEach(function(e) {
  78. c(n, e, t[e]);
  79. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : o(Object(t)).forEach(function(e) {
  80. Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(t, e));
  81. });
  82. }
  83. return n;
  84. }
  85. function c(n, e, t) {
  86. return e in n ? Object.defineProperty(n, e, {
  87. value: t,
  88. enumerable: !0,
  89. configurable: !0,
  90. writable: !0
  91. }) : n[e] = t, n;
  92. }
  93. Object.defineProperty(e, "__esModule", {
  94. value: !0
  95. }), e.default = void 0;
  96. var i = t(6), u = t(37), a = {
  97. data: function() {
  98. return {
  99. phone: "",
  100. code: "",
  101. time: "",
  102. countDown: 0
  103. };
  104. },
  105. onLoad: function() {},
  106. watch: {
  107. countDown: function(n) {
  108. 0 == n && clearInterval(this.time);
  109. }
  110. },
  111. methods: r(r({}, (0, i.mapMutations)("user", [ "setUserInfo", "login" ])), {}, {
  112. register: function() {
  113. var e = this;
  114. "" != e.phone ? /(^1[1|2|3|4|5|6|7|8|9][0-9]{9}$)/.test(this.phone) ? "" != e.code ? (0,
  115. u.loginMobile)({
  116. phone: e.phone,
  117. captcha: e.code
  118. }).then(function(t) {
  119. n.setStorageSync("token", t.data.token), (0, u.getUserInfo)({}).then(function(t) {
  120. e.setUserInfo(t.data), n.switchTab({
  121. url: "/pages/index/index"
  122. });
  123. });
  124. }).catch(function(n) {
  125. console.log(n);
  126. }) : e.$api.msg("请输入验证码") : e.$api.msg("请输入正确的手机号") : e.$api.msg("请输入电话号码");
  127. },
  128. verification: function() {
  129. var n = this;
  130. if ("" != this.phone) {
  131. if (!(this.phone.length < 11)) return !(n.countDown > 0) && (n.countDown = 60, n.time = setInterval(function() {
  132. n.countDown--;
  133. }, 1e3), void (0, u.verify)({
  134. phone: n.phone,
  135. type: "login"
  136. }).then(function(n) {
  137. n.data;
  138. }).catch(function(n) {
  139. console.log(n);
  140. }));
  141. this.$api.msg("请输入正确的手机号");
  142. } else this.$api.msg("请输入电话号码");
  143. }
  144. })
  145. };
  146. e.default = a;
  147. }).call(this, t(1).default);
  148. },
  149. 65: function(n, e, t) {
  150. t.r(e);
  151. var o = t(66), r = t.n(o);
  152. for (var c in o) "default" !== c && function(n) {
  153. t.d(e, n, function() {
  154. return o[n];
  155. });
  156. }(c);
  157. e.default = r.a;
  158. },
  159. 66: function(n, e, t) {}
  160. }, [ [ 59, "common/runtime", "common/vendor" ] ] ]);