memberVrOrder.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { requestApi } from '../util/network'
  2. // 获取用户订单列表
  3. export const getOrderList =
  4. (parmas, stateType, orderKey) =>
  5. requestApi(
  6. '/Membervrorder/order_list',
  7. 'POST',
  8. {
  9. 'page': parmas.page,
  10. 'per_page': parmas.per_page,
  11. 'state_type': stateType,
  12. 'order_key': orderKey
  13. },
  14. 'member'
  15. )
  16. // 获取订单信息
  17. export const getOrderInfo =
  18. (orderId) =>
  19. requestApi(
  20. '/Membervrorder/order_info',
  21. 'POST',
  22. {
  23. 'order_id': orderId
  24. },
  25. 'member'
  26. )
  27. // 订单评价
  28. export const saveOrderEvaluate =
  29. (orderId, result) =>
  30. requestApi(
  31. '/Memberevaluate/save_vr',
  32. 'POST',
  33. Object.assign(
  34. {
  35. 'order_id': orderId
  36. },
  37. result),
  38. 'member'
  39. )
  40. // 获取评价信息
  41. export const getOrderEvaluateInfo =
  42. (orderId) =>
  43. requestApi(
  44. '/Memberevaluate/vr',
  45. 'POST',
  46. {
  47. 'order_id': orderId
  48. },
  49. 'member'
  50. )
  51. // 取消订单
  52. export const cancelOrder =
  53. (orderId) =>
  54. requestApi(
  55. '/Membervrorder/order_cancel',
  56. 'POST',
  57. {
  58. 'order_id': orderId
  59. },
  60. 'member'
  61. )