trade.js 771 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import request from '@/sheep/request';
  2. export default {
  3. order: (id) =>
  4. request({
  5. url: 'trade/order/' + id,
  6. method: 'GET',
  7. custom: {
  8. showLoading: false,
  9. },
  10. }),
  11. orderLog: (params) =>
  12. request({
  13. url: 'trade/order',
  14. method: 'GET',
  15. params,
  16. custom: {
  17. showLoading: false,
  18. },
  19. }),
  20. rechargeRules: () =>
  21. request({
  22. url: 'trade/order/rechargeRules',
  23. method: 'GET',
  24. custom: {
  25. showError: false,
  26. showLoading: false,
  27. },
  28. }),
  29. rechargeRules2: () =>
  30. request({
  31. url: '/app-api/pay/wallet-recharge-package/list',
  32. method: 'GET',
  33. custom: {
  34. showError: false,
  35. showLoading: false,
  36. },
  37. }),
  38. recharge: (data) =>
  39. request({
  40. url: '/app-api/pay/wallet-recharge/create',
  41. method: 'POST',
  42. data,
  43. }),
  44. };