order.js 394 B

12345678910111213141516171819202122
  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. submitOrder: (data) => {
  13. return request({
  14. url: '/pay/order/submit',
  15. method: 'POST',
  16. data
  17. });
  18. }
  19. };
  20. export default PayOrderApi;