order.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. import request from '@/utils/request'
  2. import {upFilse} from '@/utils/request'
  3. // 订单确认
  4. export function confirm(data) {
  5. return request({
  6. url: '/api/order/confirm',
  7. method: 'post',
  8. data
  9. });
  10. }
  11. // 大家还在拼
  12. export function nowPinkLst(data) {
  13. return request({
  14. url: '/api/combination/is_now_pink_lst',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. // 团长其他团
  20. export function pinkTAllList(data, id) {
  21. return request({
  22. url: '/api/combination/pinkT_all_list/' + id,
  23. method: 'get',
  24. data
  25. });
  26. }
  27. // 订单列表
  28. export function orderList(data) {
  29. return request({
  30. url: '/api/order/list',
  31. method: 'get',
  32. data
  33. });
  34. }
  35. // 订单详细
  36. export function orderDetail(data,orderid) {
  37. return request({
  38. url: '/api/order/detail/'+orderid,
  39. method: 'get',
  40. data
  41. });
  42. }
  43. // 拼团订单详情
  44. export function orderMake(data,orderid) {
  45. return request({
  46. url: '/api/pink/order/detail/'+orderid,
  47. method: 'get',
  48. data
  49. });
  50. }
  51. // 取消订单
  52. export function orderCancel(data) {
  53. return request({
  54. url: '/api/order/cancel',
  55. method: 'post',
  56. data
  57. });
  58. }
  59. // 删除订单
  60. export function orderDel(data) {
  61. return request({
  62. url: '/api/order/del',
  63. method: 'get',
  64. data
  65. });
  66. }
  67. // 申请退款
  68. export function refund(data) {
  69. return request({
  70. url: '/api/order/refund/verify',
  71. method: 'post',
  72. data
  73. });
  74. }
  75. // 退款理由列表
  76. export function refundReason(data) {
  77. return request({
  78. url: '/api/order/refund/reason',
  79. method: 'get',
  80. data
  81. });
  82. }
  83. // 确认收货
  84. export function orderTake(data) {
  85. return request({
  86. url: '/api/order/take',
  87. method: 'post',
  88. data
  89. });
  90. }
  91. //提交评论
  92. export function product(data) {
  93. return request({
  94. url: '/api/order/product',
  95. method: 'post',
  96. data
  97. });
  98. }
  99. //上传图片
  100. export function upload(data) {
  101. return upFilse({
  102. url: '/api/upload/image',
  103. method: 'post',
  104. data
  105. });
  106. }
  107. //提交评论
  108. export function order_comment(data) {
  109. return request({
  110. url: '/api/order/comment',
  111. method: 'post',
  112. data
  113. });
  114. }
  115. //接龙商品
  116. export function KlonDetail(data, id) {
  117. return request({
  118. url: '/api/jl/order/detail/' + id,
  119. method: 'get',
  120. data
  121. });
  122. }
  123. // 改变数量
  124. export function ChangeNum(data) {
  125. return request({
  126. url: '/api/cart/change_num',
  127. method: 'post',
  128. data
  129. });
  130. }