order.js 552 B

1234567891011121314151617181920212223242526272829
  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. getPayOrder: (tradeOrderId) => {
  12. return request({
  13. url: '/pay/order/getPayOrder',
  14. method: 'GET',
  15. params: { tradeOrderId }
  16. });
  17. },
  18. // 提交支付订单
  19. submitOrder: (data) => {
  20. return request({
  21. url: '/pay/order/submit',
  22. method: 'POST',
  23. data
  24. });
  25. }
  26. };
  27. export default PayOrderApi;