pay.js 784 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: 'withdraw/apply',
  35. method: 'POST',
  36. data,
  37. custom: {
  38. loadingMsg: '申请中',
  39. auth: true,
  40. },
  41. }),
  42. },
  43. };