homeBonus.js 685 B

12345678910111213141516171819202122232425262728293031323334
  1. import { requestApi } from '../util/network'
  2. // 获取活动红包详情
  3. export const getBonusDetail =
  4. (bonusId) =>
  5. requestApi(
  6. '/Bonus/detail',
  7. 'GET',
  8. {
  9. 'bonus_id': bonusId
  10. }
  11. )
  12. // 领取红包
  13. export const receiveBonus =
  14. (bonusId) =>
  15. requestApi(
  16. '/Memberbonus/receive',
  17. 'GET',
  18. {
  19. 'bonus_id': bonusId
  20. },
  21. 'member'
  22. )
  23. // 领取红包
  24. export const getReceiveList =
  25. (params) =>
  26. requestApi(
  27. '/Memberbonus/get_receive_list',
  28. 'GET',
  29. {
  30. page: params.page,
  31. per_page: params.per_page
  32. },
  33. 'member'
  34. )