set.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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/register/reset2',
  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
  53. //获取银行卡列表
  54. export function getBank(data) {
  55. return request({
  56. url: '/api/bank',
  57. method: 'get',
  58. data
  59. });
  60. }
  61. //获取银行卡信息
  62. export function bankInfo(data) {
  63. return request({
  64. url: `/api/bank/${data.id}`,
  65. method: 'get',
  66. data
  67. });
  68. }
  69. //添加、编辑银行卡信息
  70. export function addBank(data) {
  71. return request({
  72. url: `/api/bank/${data.id}`,
  73. method: 'post',
  74. data
  75. });
  76. }
  77. //删除银行卡信息
  78. export function delBank(data) {
  79. return request({
  80. url: `/api/bank/del/${data.id}`,
  81. method: 'post',
  82. data
  83. });
  84. }