sellerVrOrder.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { requestApi } from '../util/network'
  2. // 获取虚拟订单列表
  3. export const getOrderList =
  4. (params, order_sn, state_type) =>
  5. requestApi(
  6. '/Sellervrorder/order_list',
  7. 'POST',
  8. {
  9. 'order_sn': order_sn,
  10. 'state_type': state_type,
  11. 'page': params.page,
  12. 'per_page': params.per_page
  13. },
  14. 'seller'
  15. )
  16. // 获取订单信息
  17. export const getOrderInfo =
  18. (orderId) =>
  19. requestApi(
  20. '/Sellervrorder/order_info',
  21. 'POST',
  22. {
  23. 'order_id': orderId
  24. },
  25. 'seller'
  26. )
  27. // 取消订单
  28. export const cancelOrder =
  29. (orderId, reason) =>
  30. requestApi(
  31. '/Sellervrorder/order_cancel',
  32. 'POST',
  33. {
  34. 'order_id': orderId,
  35. 'reason': reason
  36. },
  37. 'seller'
  38. )
  39. // 核销兑换码
  40. export const exchangeCode =
  41. (vr_code) =>
  42. requestApi(
  43. '/Sellervrorder/exchange',
  44. 'POST',
  45. {
  46. 'vr_code': vr_code
  47. },
  48. 'seller'
  49. )