homeBargain.js 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { requestApi } from '../util/network'
  2. // 获取砍价详情
  3. export const getBargainInfo =
  4. (bargain_id) =>
  5. requestApi(
  6. '/Bargain/get_info',
  7. 'POST',
  8. {
  9. bargain_id: bargain_id
  10. }
  11. )
  12. // 获取砍价详情
  13. export const getBargainOrderInfo =
  14. (bargainorder_id, key) =>
  15. requestApi(
  16. '/Bargain/get_order_info',
  17. 'POST',
  18. {
  19. bargainorder_id: bargainorder_id,
  20. key: key
  21. }
  22. )
  23. // 获取砍价列表
  24. export const getBargainList =
  25. (params) =>
  26. requestApi(
  27. '/Bargain/get_list',
  28. 'POST',
  29. {
  30. page: params.page,
  31. per_page: params.per_page
  32. }
  33. )
  34. // 获取砍价记录
  35. export const getBargainLogList =
  36. (bargainorder_id, params) =>
  37. requestApi(
  38. '/Bargain/get_log_list',
  39. 'POST',
  40. {
  41. bargainorder_id: bargainorder_id,
  42. page: params.page,
  43. per_page: params.per_page
  44. }
  45. )