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.

105 lines
1.5 KiB

  1. import { http } from '../../utils/http'
  2. /**
  3. *
  4. * @param data 模拟手机号码
  5. * {
  6. "loginType":"EMAIL", //登录方式
  7. "account":"q614588746@163.com" , //登陆账号 手机号/邮箱/dccode
  8. "verifyCode":"837012", //验证码
  9. "password":"", //密码
  10. "useCode":"true", //是否使用验证码 true/false
  11. "idToken":"", //第三方登录idToken
  12. }
  13. */
  14. export const LoginApi = (data) => {
  15. return http({
  16. method: 'GET',
  17. url: '/loginFailureWrongCode',
  18. data: {
  19. data
  20. },
  21. })
  22. }
  23. /**
  24. * 发送验证码
  25. * @param {*} phoneNumber
  26. * @returns
  27. */
  28. export const SendCodeApi = (data) => {
  29. return http({
  30. method: 'GET',
  31. url: '/sendCodeFailureTooFrequent',
  32. data:{
  33. data
  34. }
  35. })
  36. }
  37. /**
  38. * 注册
  39. */
  40. export const register = (data) => {
  41. return http({
  42. method: 'GET',
  43. url: '/register',
  44. data: {
  45. data
  46. },
  47. })
  48. }
  49. /**
  50. * 修改密码
  51. *
  52. */
  53. export const updatePassword = (data) => {
  54. return http({
  55. method: 'GET',
  56. url: '/updatePassword',
  57. data: {
  58. data
  59. },
  60. })
  61. }
  62. /**
  63. * 通过苹果登录
  64. */
  65. export const postLoginAppleSimpleAPI = (phoneNumber) => {
  66. return http({
  67. method: 'POST',
  68. url: '/login',
  69. data: {
  70. phoneNumber,
  71. },
  72. })
  73. }
  74. /**
  75. * 通过谷歌登录
  76. */
  77. export const postLoginGoogleSimpleAPI = (phoneNumber) => {
  78. return http({
  79. method: 'POST',
  80. url: '/login/wxMin/simple',
  81. data: {
  82. phoneNumber,
  83. },
  84. })
  85. }