order.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '@/sheep/request';
  2. const PayOrderApi = {
  3. // 获得支付订单
  4. getOrder: (id) => {
  5. return request({
  6. url: '/pay/order/get',
  7. method: 'GET',
  8. params: { id }
  9. });
  10. },
  11. // 获得支付后的订单条件
  12. getByStatus: (id) => {
  13. return request({
  14. url: '/trade/order/getPayOrderByStatus',
  15. method: 'GET',
  16. params: { id }
  17. });
  18. },
  19. // 获得支付后的订单条件
  20. getByStatus2: (id) => {
  21. return request({
  22. url: '/trade/order/getPayOrderByStatus2',
  23. method: 'GET',
  24. params: { id }
  25. });
  26. },
  27. getPayOrder: (tradeOrderId) => {
  28. return request({
  29. url: '/trade/order/getPayOrder',
  30. method: 'GET',
  31. params: { tradeOrderId }
  32. });
  33. },
  34. // 提交支付订单
  35. submitOrder: (data) => {
  36. return request({
  37. url: '/pay/order/submit',
  38. method: 'POST',
  39. data
  40. });
  41. },
  42. // 第三方富友支付
  43. fuYouSubmitOrder: (data) => {
  44. return request({
  45. url: '/fuYou/pay/order/submit',
  46. method: 'POST',
  47. data
  48. });
  49. }
  50. };
  51. export default PayOrderApi;