privacy.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 发送二次隐私认证验证码
  3. export function getPrivacyCode(data) {
  4. return request({
  5. url: 'admin/getPrivacyCode',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. // 填写验证码点击确认
  11. export function verifyPrivacyCode(data) {
  12. return request({
  13. url: 'admin/verifyPrivacyCode',
  14. method: 'post',
  15. data
  16. })
  17. }
  18. // 获取管理员手机号
  19. export function getAdminPhone(data) {
  20. return request({
  21. url: 'admin/getAdminPhone',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 获取旧手机号
  27. export function getCurrentUserPhone(data) {
  28. return request({
  29. url: 'platform_user/getCurrentUserPhone',
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 发送修改管理员手机号验证码
  35. export function getUpdatePhoneCode(data) {
  36. return request({
  37. url: 'admin/getUpdatePhoneCode',
  38. method: 'post',
  39. data
  40. })
  41. }
  42. // 修改管理员手机号
  43. export function updatePhone(data) {
  44. return request({
  45. url: 'platform_user/updatePhone',
  46. method: 'post',
  47. data
  48. })
  49. }
  50. // 是否24小时内验证了
  51. export function getPrivacySwitch(data) {
  52. return request({
  53. url: 'platform_user/getPrivacySwitch',
  54. method: 'post',
  55. data
  56. })
  57. }