order.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import request from '@/utils/request'
  2. // 订单确认
  3. export function confirm(data) {
  4. return request({
  5. url: '/api/order/confirm',
  6. method: 'post',
  7. data
  8. });
  9. }
  10. // 订单列表
  11. export function orderList(data) {
  12. return request({
  13. url: '/api/order/list',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 订单详细
  19. export function orderDetail(data,orderid) {
  20. return request({
  21. url: '/api/order/detail/'+orderid,
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 取消订单
  27. export function orderCancel(data) {
  28. return request({
  29. url: '/api/order/cancel',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 删除订单
  35. export function orderDel(data) {
  36. return request({
  37. url: '/api/order/del',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 申请退款
  43. export function refund(data) {
  44. return request({
  45. url: '/api/order/refund/verify',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 退款理由列表
  51. export function refundReason(data) {
  52. return request({
  53. url: '/api/order/refund/reason',
  54. method: 'get',
  55. data
  56. });
  57. }
  58. // 确认收货
  59. export function orderTake(data) {
  60. return request({
  61. url: '/api/order/take',
  62. method: 'post',
  63. data
  64. });
  65. }