memberPointsorder.js 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { requestApi } from '../util/network'
  2. // 获取用户订单列表
  3. export const getOrderList =
  4. (params, stateType, orderKey) =>
  5. requestApi(
  6. '/Memberpointorder/orderlist',
  7. 'POST',
  8. {
  9. 'page': params.page,
  10. 'per_page':params.per_page,
  11. 'state_type': stateType,
  12. 'order_key': orderKey
  13. },
  14. 'member'
  15. )
  16. // 获取订单信息
  17. export const getOrderInfo =
  18. (orderId) =>
  19. requestApi(
  20. '/Memberpointorder/order_info',
  21. 'GET',
  22. {
  23. 'order_id': orderId
  24. },
  25. 'member'
  26. )
  27. // 取消订单
  28. export const cancelOrder =
  29. (orderId) =>
  30. requestApi(
  31. '/Memberpointorder/cancel_order',
  32. 'POST',
  33. {
  34. 'order_id': orderId
  35. },
  36. 'member'
  37. )
  38. // 订单收货
  39. export const receiveOrder =
  40. (orderId) =>
  41. requestApi(
  42. '/Memberpointorder/receiving_order',
  43. 'POST',
  44. {
  45. 'order_id': orderId
  46. },
  47. 'member'
  48. )