pages-public-forget.3eaf8de7.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["pages-public-forget"], {
  2. "2b9a": function (t, i, n) {
  3. "use strict";
  4. var a = n("4ea4");
  5. Object.defineProperty(i, "__esModule", {value: !0}), i.login = o, i.register = s, i.verify = r, i.getUserInfo = c, i.loginMobile = u, i.bangding = d;
  6. var e = a(n("13b0"));
  7. function o(t) {
  8. return (0, e.default)({url: "/api/login", method: "post", data: t})
  9. }
  10. function s(t) {
  11. return (0, e.default)({url: "/api/register", method: "post", data: t})
  12. }
  13. function r(t) {
  14. return (0, e.default)({url: "/api/register/verify", method: "post", data: t})
  15. }
  16. function c(t) {
  17. return (0, e.default)({url: "/api/userinfo", method: "get", data: t})
  18. }
  19. function u(t) {
  20. return (0, e.default)({url: "/api/login/mobile", method: "post", data: t})
  21. }
  22. function d(t) {
  23. return (0, e.default)({url: "/api/binding", method: "POST", data: t})
  24. }
  25. }, 3836: function (t, i, n) {
  26. "use strict";
  27. var a = n("b03f"), e = n.n(a);
  28. e.a
  29. }, "590b": function (t, i, n) {
  30. "use strict";
  31. var a = n("4ea4");
  32. Object.defineProperty(i, "__esModule", {value: !0}), i.userEdit = o, i.logout = s, i.registerReset = r, i.binding = c, i.realName = u, i.is_pas = d, i.transaction = l;
  33. var e = a(n("13b0"));
  34. function o(t) {
  35. return (0, e.default)({url: "/api/user/edit", method: "post", data: t})
  36. }
  37. function s(t) {
  38. return (0, e.default)({url: "/api/logout", method: "get", data: t})
  39. }
  40. function r(t) {
  41. return (0, e.default)({url: "/api/register/reset", method: "post", data: t})
  42. }
  43. function c(t) {
  44. return (0, e.default)({url: "/api/binding", method: "post", data: t})
  45. }
  46. function u(t) {
  47. return (0, e.default)({url: "/api/rname", method: "post", data: t})
  48. }
  49. function d(t) {
  50. return (0, e.default)({url: "/api/is_pas", method: "get", data: t})
  51. }
  52. function l(t) {
  53. return (0, e.default)({url: "/api/set_payment", method: "post", data: t})
  54. }
  55. }, "5bfb": function (t, i, n) {
  56. var a = n("24fb");
  57. i = a(!1), i.push([t.i, '@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-470dc43c]{min-height:100%;background-color:#fff}uni-page-body .container[data-v-470dc43c]{width:100%;padding:%?60?% %?70?%}.logo-img[data-v-470dc43c]{width:%?161?%;height:%?161?%;margin:auto;margin-top:%?52?%!important;margin-bottom:%?15?%!important;box-shadow:0 %?12?% %?13?% 0 rgba(68,150,157,.47);border-radius:50%}.logo-img uni-image[data-v-470dc43c]{width:%?161?%;height:%?161?%;border-radius:50%}.logo[data-v-470dc43c]{font-size:%?36?%;font-weight:400;color:#5dbc7c;text-align:center}.phone[data-v-470dc43c]{height:%?43?%!important;width:%?27?%!important}.codeimg[data-v-470dc43c]{height:%?39?%!important;width:%?31?%!important}.login_text[data-v-470dc43c]{border-radius:%?20?%;margin-top:%?80?%}.login_text .login_input[data-v-470dc43c]{margin-bottom:%?35?%;padding-bottom:%?60?%}.login_text .login_input .login_img[data-v-470dc43c]{height:%?35?%;width:%?31?%;margin-right:%?20?%}.login_text .login_input .login_img uni-image[data-v-470dc43c]{width:100%;height:100%}.login_text .login_input .uni-input[data-v-470dc43c]{text-align:left;width:%?400?%;font-size:%?32?%!important}.login_text .login_input .login_name[data-v-470dc43c]{color:#333}.login_text .login_input .login_name .code[data-v-470dc43c]{color:#5dbc7c;font-size:%?23?%;border-left:1px solid #eee;width:%?150?%;flex-shrink:0;text-align:center}.login[data-v-470dc43c]{background:#5dbc7c;margin-top:%?96?%;color:#fff;text-align:center;padding:%?26?% %?0?%;border-radius:%?20?%}body.?%PAGE?%[data-v-470dc43c]{background-color:#fff}', ""]), t.exports = i
  58. }, "6e16": function (t, i, n) {
  59. "use strict";
  60. n.r(i);
  61. var a = n("8da0"), e = n.n(a);
  62. for (var o in a) "default" !== o && function (t) {
  63. n.d(i, t, (function () {
  64. return a[t]
  65. }))
  66. }(o);
  67. i["default"] = e.a
  68. }, "8da0": function (t, i, n) {
  69. "use strict";
  70. Object.defineProperty(i, "__esModule", {value: !0}), i.default = void 0;
  71. var a = n("590b"), e = n("2b9a"), o = {
  72. data: function () {
  73. return {phone: "", code: "", password2: "", password: "", time: "", countDown: 0}
  74. }, onLoad: function () {
  75. }, watch: {
  76. countDown: function (t) {
  77. 0 == t && clearInterval(this.time)
  78. }
  79. }, methods: {
  80. updatalogin: function () {
  81. var t = this;
  82. "" != t.phone ? /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(t.phone) || /(^1[3|4|5|6|7|8|9][0-9]{9}$)/.test(this.phone) ? "" != t.password ? "" != t.password2 ? t.password2 == t.password ? "" != t.code ? (0, a.registerReset)({
  83. account: t.phone,
  84. password: t.password,
  85. password2: t.password2,
  86. type: 1,
  87. captcha: t.code
  88. }).then((function (i) {
  89. t.$api.msg(i.msg), uni.navigateTo({url: "/pages/public/login"})
  90. })).catch((function (t) {
  91. console.log(t)
  92. })) : t.$api.msg("请输入验证码") : t.$api.msg("两次密码不正确") : t.$api.msg("请再次输入密码") : t.$api.msg("请输入密码") : t.$api.msg("请输入正确的邮箱或手机") : t.$api.msg("请输入邮箱")
  93. }, verification: function () {
  94. var t = this;
  95. if ("" != this.phone) {
  96. if (/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(t.phone) || /(^1[3|4|5|6|7|8|9][0-9]{9}$)/.test(this.phone)) return !(t.countDown > 0) && (t.countDown = 60, t.time = setInterval((function () {
  97. t.countDown--
  98. }), 1e3), void (0, e.verify)({phone: t.phone, type: "login"}).then((function (t) {
  99. t.data;
  100. uni.showToast({title: "验证码已发送", duration: 2e3, position: "top", icon: "none"})
  101. })).catch((function (t) {
  102. console.log(t)
  103. })));
  104. t.$api.msg("请输入正确的邮箱或手机")
  105. } else this.$api.msg("请输入邮箱号码")
  106. }
  107. }
  108. };
  109. i.default = o
  110. }, "98c9": function (t, i, n) {
  111. t.exports = n.p + "static/img/log.34930231.png"
  112. }, a62e: function (t, i, n) {
  113. "use strict";
  114. n.r(i);
  115. var a = n("b1d8"), e = n("6e16");
  116. for (var o in e) "default" !== o && function (t) {
  117. n.d(i, t, (function () {
  118. return e[t]
  119. }))
  120. }(o);
  121. n("3836");
  122. var s, r = n("f0c5"),
  123. c = Object(r["a"])(e["default"], a["b"], a["c"], !1, null, "470dc43c", null, !1, a["a"], s);
  124. i["default"] = c.exports
  125. }, b03f: function (t, i, n) {
  126. var a = n("5bfb");
  127. "string" === typeof a && (a = [[t.i, a, ""]]), a.locals && (t.exports = a.locals);
  128. var e = n("4f06").default;
  129. e("01a20e48", a, !0, {sourceMap: !1, shadowMode: !1})
  130. }, b1d8: function (t, i, n) {
  131. "use strict";
  132. var a;
  133. n.d(i, "b", (function () {
  134. return e
  135. })), n.d(i, "c", (function () {
  136. return o
  137. })), n.d(i, "a", (function () {
  138. return a
  139. }));
  140. var e = function () {
  141. var t = this, i = t.$createElement, a = t._self._c || i;
  142. return a("v-uni-view", {staticClass: "container"}, [a("v-uni-view", {staticClass: "logo-img"}, [a("v-uni-image", {
  143. attrs: {
  144. src: n("98c9"),
  145. mode: ""
  146. }
  147. })], 1), a("v-uni-view", {staticClass: "logo"}, [t._v("易趣go")]), a("v-uni-view", {staticClass: "login_text"}, [a("v-uni-view", {staticClass: "login_input flex_item"}, [a("v-uni-view", {staticClass: "login_img"}, [a("v-uni-image", {
  148. staticClass: "phone",
  149. attrs: {src: "/static/img/phone.png"}
  150. })], 1), a("v-uni-view", {staticClass: "login_name"}, [a("v-uni-input", {
  151. staticClass: "uni-input",
  152. attrs: {type: "text", focus: !0, placeholder: "请输入手机"},
  153. model: {
  154. value: t.phone, callback: function (i) {
  155. t.phone = i
  156. }, expression: "phone"
  157. }
  158. })], 1)], 1), a("v-uni-view", {staticClass: "login_input flex_item"}, [a("v-uni-view", {staticClass: "login_img"}, [a("v-uni-image", {attrs: {src: "/static/img/zfpwd.png"}})], 1), a("v-uni-view", {staticClass: "login_name"}, [a("v-uni-input", {
  159. staticClass: "uni-input",
  160. attrs: {type: "password", focus: !0, placeholder: " 请输入新的不少于6位的密码"},
  161. model: {
  162. value: t.password, callback: function (i) {
  163. t.password = i
  164. }, expression: "password"
  165. }
  166. })], 1)], 1), a("v-uni-view", {staticClass: "login_input flex_item"}, [a("v-uni-view", {staticClass: "login_img"}, [a("v-uni-image", {attrs: {src: "/static/img/zfpwd.png"}})], 1), a("v-uni-view", {staticClass: "login_name"}, [a("v-uni-input", {
  167. staticClass: "uni-input",
  168. attrs: {type: "password", focus: !0, placeholder: "请重复输入新密码"},
  169. model: {
  170. value: t.password2, callback: function (i) {
  171. t.password2 = i
  172. }, expression: "password2"
  173. }
  174. })], 1)], 1), a("v-uni-view", {staticClass: "login_input flex"}, [a("v-uni-view", {staticClass: "login_img"}, [a("v-uni-image", {
  175. staticClass: "codeimg",
  176. attrs: {src: "/static/img/yan.png"}
  177. })], 1), a("v-uni-view", {staticClass: "login_name flex"}, [a("v-uni-input", {
  178. staticClass: "uni-input width",
  179. attrs: {type: "number", focus: !0, placeholder: "请输入验证码"},
  180. model: {
  181. value: t.code, callback: function (i) {
  182. t.code = i
  183. }, expression: "code"
  184. }
  185. }), a("v-uni-view", {
  186. staticClass: "code", on: {
  187. click: function (i) {
  188. arguments[0] = i = t.$handleEvent(i), t.verification.apply(void 0, arguments)
  189. }
  190. }
  191. }, [t._v(t._s(0 == t.countDown ? "发送验证码" : t.countDown))])], 1)], 1)], 1), a("v-uni-view", {
  192. staticClass: "login",
  193. on: {
  194. click: function (i) {
  195. arguments[0] = i = t.$handleEvent(i), t.updatalogin.apply(void 0, arguments)
  196. }
  197. }
  198. }, [t._v("确认修改")])], 1)
  199. }, o = []
  200. }
  201. }]);