set.js 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. // 实名认证
  45. export function realName(data) {
  46. return request({
  47. url: '/api/realName',
  48. method: 'post',
  49. data
  50. });
  51. }
  52. //交易密码设置
  53. export function transaction(data) {
  54. return request({
  55. url: '/api/transaction',
  56. method: 'post',
  57. data
  58. });
  59. }