payment.js 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import {request} from '@/utils/request.js'
  2. // 生成订单
  3. export function creatPayOrder(data) {
  4. return request({
  5. url: '/springbatchservice/pay/creatPayOrder',
  6. method:'post',
  7. data
  8. })
  9. }
  10. // 查询订单状态
  11. export function queryPayOrder(data) {
  12. return request({
  13. url: '/springbatchservice/pay/query/'+data,
  14. })
  15. }
  16. // 退款申请
  17. export function applyRefund(data) {
  18. return request({
  19. url: '/springbatchservice/pay/applicantRefund',
  20. method:'post',
  21. data
  22. })
  23. }
  24. // 支付详情
  25. export function payDetails(data) {
  26. return request({
  27. url: '/springbatchservice/order/user/orderDetail/'+data,
  28. })
  29. }
  30. // 取消退款申请
  31. export function unRefund(data) {
  32. return request({
  33. url: '/springbatchservice/pay/unRefund',
  34. method:'post',
  35. data
  36. })
  37. }
  38. // 关闭订单
  39. export function close(data) {
  40. return request({
  41. url: '/springbatchservice/pay/close/'+data,
  42. })
  43. }