普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
1.6 KiB

  1. // 订单相关接口
  2. const api = {
  3. // 订单-订单状态统计
  4. getOrderStatistics: {
  5. url: '/order/statistics',
  6. method: 'POST',
  7. auth: true,
  8. },
  9. // 订单-列表查询
  10. getOrderList: {
  11. url: '/order/list',
  12. method: 'GET',
  13. auth: true,
  14. showLoading : true,
  15. },
  16. // 订单详情
  17. getOrderDetail: {
  18. url: '/order/detail',
  19. method: 'GET',
  20. auth: true,
  21. showLoading : true,
  22. },
  23. // 创建订单
  24. createOrder: {
  25. url: '/order/create',
  26. method: 'POST',
  27. auth: true,
  28. limit : 500,
  29. showLoading : true,
  30. },
  31. // 订单详情
  32. detailOrder: {
  33. url: '/order/detail',
  34. method: 'GET',
  35. auth: true,
  36. limit : 500,
  37. showLoading : true,
  38. },
  39. // 再次支付
  40. payOrder: {
  41. url: '/order/pay',
  42. method: 'POST',
  43. auth: true,
  44. limit : 500,
  45. showLoading : true,
  46. },
  47. // 确认收货
  48. confirmOrder: {
  49. url: '/order/confirm',
  50. method: 'POST',
  51. auth: true,
  52. limit : 500,
  53. showLoading : true,
  54. },
  55. // 申请售后
  56. afterSaleOrder: {
  57. url: '/order/afterSale',
  58. method: 'POST',
  59. auth: true,
  60. limit : 500,
  61. showLoading : true,
  62. },
  63. // 订单评价
  64. evaluateOrder: {
  65. url: '/order/evaluate',
  66. method: 'POST',
  67. auth: true,
  68. limit : 500,
  69. showLoading : true,
  70. },
  71. // 商品评价数量
  72. productEvaluateNum: {
  73. url: '/order/productEvaluateNum',
  74. method: 'POST',
  75. },
  76. // 商品评价
  77. productEvaluate: {
  78. url: '/order/productEvaluate',
  79. method: 'POST',
  80. },
  81. // 我的评价
  82. myEvaluate: {
  83. url: '/order/myEvaluate',
  84. method: 'POST',
  85. },
  86. // 删除评价
  87. deleteEvaluate: {
  88. url: '/order/deleteEvaluate',
  89. method: 'POST',
  90. auth: true,
  91. limit : 500,
  92. showLoading : true,
  93. },
  94. }
  95. export default api