You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
652 B

  1. import {
  2. http
  3. } from '../../utils/http'
  4. /**
  5. * 验证码发送
  6. * @param data
  7. * @returns {*}
  8. */
  9. export const sendEmail = (data) => {
  10. return http({
  11. method: 'POST',
  12. url: '/UserLogin/sendEmail',
  13. data: data,
  14. })
  15. }
  16. /**
  17. * 验证码验证
  18. * @param data
  19. * @returns {*}
  20. */
  21. export const validateCode = (data) => {
  22. return http({
  23. method: 'POST',
  24. url: '/api/my/validateCode',
  25. data: data,
  26. })
  27. }
  28. export const sendPhone = (data) => {
  29. return http({
  30. method: 'POST',
  31. url: '/UserLogin/sendPhone',
  32. data: data,
  33. })
  34. }
  35. export const changeBind = (data) => {
  36. return http({
  37. method: 'POST',
  38. url: '/api/my/bindEmailOrPhone',
  39. data: data,
  40. })
  41. }