pay.js 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from '@/sheep/request';
  2. export default {
  3. // 预支付
  4. prepay: (data) =>
  5. request({
  6. url: 'pay/prepay',
  7. method: 'POST',
  8. data,
  9. custom: {
  10. loadingMsg: '支付中',
  11. },
  12. }),
  13. // 发起提现
  14. withdraw: {
  15. list: (params) =>
  16. request({
  17. url: 'withdraw',
  18. method: 'GET',
  19. params,
  20. custom: {
  21. auth: true,
  22. },
  23. }),
  24. rules: () =>
  25. request({
  26. url: 'withdraw/rules',
  27. method: 'GET',
  28. custom: {
  29. auth: true,
  30. },
  31. }),
  32. apply: (data) =>
  33. request({
  34. url: '/app-api/trade/brokerage-withdraw/create',
  35. method: 'POST',
  36. data,
  37. custom: {
  38. loadingMsg: '申请中',
  39. // auth: true,
  40. },
  41. }),
  42. userGet: (params) =>
  43. request({
  44. url: '/app-api/trade/brokerage-user/get',
  45. method: 'GET',
  46. params,
  47. // custom: {
  48. // loadingMsg: '申请中',
  49. // auth: true,
  50. // },
  51. }),
  52. },
  53. };