account.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { dD as e } from "./index2.js";
  2. const i = () => window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  3. function a(t = {}) {
  4. return window.$utils.http({
  5. url: `${i()}/sysAccountConfig/listByActivate`,
  6. data: t
  7. });
  8. }
  9. function d() {
  10. return window.$utils.http({
  11. url: `${i()}/sysPwdConfig/getFirstData`
  12. });
  13. }
  14. function c(t = null) {
  15. return window.$utils.http({
  16. method: "get",
  17. url: `${i()}/qrLogin/generate`,
  18. data: t
  19. });
  20. }
  21. function l(t) {
  22. return window.$utils.http({
  23. url: `${i()}/user/getValidationCodeWithoutToken`,
  24. data: t
  25. });
  26. }
  27. function w(t, n) {
  28. return window.$utils.http({
  29. url: `${i()}/user/checkValidationCodeWithoutToken?${e.stringify({ code: t, no: n })}`
  30. });
  31. }
  32. function $(t, n, o, u) {
  33. return window.$utils.http({
  34. url: `${i()}/user/updatePasswordWithoutToken?${e.stringify({ password: t, no: n, code: o })}`,
  35. headers: { "user-token": u }
  36. });
  37. }
  38. function h(t, n, o, u, r) {
  39. return window.$utils.http({
  40. url: `${i()}/user/checkUseInfo?${e.stringify({
  41. no: t,
  42. name: n,
  43. certNo: o,
  44. validationCode: u,
  45. validationCodeId: r
  46. })}`
  47. });
  48. }
  49. function f(t) {
  50. return window.$utils.http({
  51. url: `${i()}/user/getActivateValidationCode`,
  52. data: t
  53. });
  54. }
  55. function g(t, n) {
  56. return window.$utils.http({
  57. url: `${i()}/user/checkActivateValidationCode?${e.stringify({ code: t, userId: n })}`
  58. });
  59. }
  60. function p(t, n) {
  61. return window.$utils.http({
  62. url: `${i()}/user/activateUpdatePassword?${e.stringify({ userId: t, oldPassword: n })}`
  63. });
  64. }
  65. export {
  66. c as a,
  67. d as b,
  68. l as c,
  69. w as d,
  70. h as e,
  71. g as f,
  72. a as g,
  73. f as h,
  74. p as i,
  75. $ as u
  76. };