memberBargain.js 735 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { requestApi } from '../util/network'
  2. // 新增砍价
  3. export const addBargain =
  4. (bargain_id) =>
  5. requestApi(
  6. '/member_bargain/add',
  7. 'POST',
  8. {
  9. bargain_id: bargain_id
  10. },
  11. 'member'
  12. )
  13. // 新增砍价记录
  14. export const addBargainLog =
  15. (bargainorder_id) =>
  16. requestApi(
  17. '/member_bargain/add_log',
  18. 'POST',
  19. {
  20. bargainorder_id: bargainorder_id
  21. },
  22. 'member'
  23. )
  24. // 获取砍价列表
  25. export const getBargainList =
  26. (params) =>
  27. requestApi(
  28. '/member_bargain/get_list',
  29. 'POST',
  30. {
  31. page: params.page,
  32. per_page: params.per_page
  33. },
  34. 'member'
  35. )