orders.js 721 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. const request = uni.$u.http
  2. // 订单列表
  3. export function getOrderList(data){
  4. return request.post(
  5. `v1/order/orderList`,
  6. data
  7. )
  8. }
  9. // 我的订单详情
  10. export function getOrderDetail(data){
  11. return request.post(
  12. `v1/order/orderDetail`,
  13. data
  14. )
  15. }
  16. // 订单兑换
  17. export function orderExchange(data){
  18. return request.post(
  19. `v1/order/orderExchange`,
  20. data
  21. )
  22. }
  23. // 核销订单
  24. export function confirmOrder(data){
  25. return request.post(
  26. `v1/order/confirmOrder`,
  27. data
  28. )
  29. }
  30. // 核销订单详情
  31. export function confirmOrderDetail(data){
  32. return request.post(
  33. `v1/order/confirmOrderDetail`,
  34. data
  35. )
  36. }
  37. export default {
  38. getOrderList,
  39. getOrderDetail,
  40. orderExchange,
  41. confirmOrder,
  42. confirmOrderDetail
  43. }