set.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import request from '@/utils/request'
  2. // 修改用户信息
  3. export function userEdit(data) {
  4. return request({
  5. url: '/api/user/edit',
  6. method: 'post',
  7. data
  8. });
  9. }
  10. //退出登录
  11. export function logout(data) {
  12. return request({
  13. url: '/api/logout',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. //修改密码
  19. export function registerReset(data) {
  20. return request({
  21. url: '/api/register/reset',
  22. method: 'post',
  23. data
  24. });
  25. }
  26. //绑定手机
  27. export function binding(data) {
  28. return request({
  29. url: '/api/binding',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // #ifdef APP-PLUS
  35. //苹果生成账户
  36. export function applelogin(data) {
  37. return request({
  38. url: '/api/applelogin',
  39. method: 'post',
  40. data
  41. });
  42. }
  43. // #endif
  44. export function realName(data) {
  45. return request({
  46. url: '/api/rname',
  47. method: 'post',
  48. data
  49. });
  50. }
  51. //是否设置过交易密码
  52. export function is_pas(data) {
  53. return request({
  54. url: '/api/is_pas',
  55. method: 'get',
  56. data
  57. });
  58. }
  59. //修改交易密码
  60. export function transaction(data) {
  61. return request({
  62. url: '/api/set_payment',
  63. method: 'post',
  64. data
  65. });
  66. }
  67. //实名认证获取验证码
  68. export function checkUser(data) {
  69. return request({
  70. url: '/api/user/check',
  71. method: 'post',
  72. data
  73. });
  74. }
  75. export function test(data) {
  76. return request({
  77. url: '/api/test',
  78. method: 'get',
  79. data
  80. });
  81. }