set.js 896 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import request from '@/utils/request'
  2. // 修改用户信息
  3. export function userEdit(data) {
  4. return request({
  5. // url: '/api/password/reset/trade_password',
  6. url: '/api/user/edit',
  7. method: 'post',
  8. data
  9. });
  10. }
  11. //退出登录
  12. export function logout(data) {
  13. return request({
  14. url: '/api/logout',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. //修改密码
  20. export function registerReset(data) {
  21. return request({
  22. url: '/api/register/reset',
  23. method: 'post',
  24. data
  25. });
  26. }
  27. //修改交易密码
  28. export function Reset(data) {
  29. return request({
  30. url: '/api/password/reset/trade_password',
  31. method: 'post',
  32. data
  33. });
  34. }
  35. //绑定手机
  36. export function binding(data) {
  37. return request({
  38. url: '/api/binding',
  39. method: 'post',
  40. data
  41. });
  42. }
  43. // #ifdef APP-PLUS
  44. //苹果生成账户
  45. export function applelogin(data) {
  46. return request({
  47. url: '/api/applelogin',
  48. method: 'post',
  49. data
  50. });
  51. }
  52. // #endif