memberPoint.js 649 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { requestApi } from '../util/network'
  2. // 获取用户积分列表
  3. export const getPointList =
  4. (params) =>
  5. requestApi(
  6. '/Memberpoints/pointslog',
  7. 'POST',
  8. {
  9. page: params.page,
  10. per_page: params.per_page
  11. },
  12. 'member'
  13. )
  14. // 获取签到日历
  15. export const getPointSignin =
  16. (search_day) =>
  17. requestApi(
  18. '/Memberpoints/points_signin',
  19. 'POST',
  20. {
  21. search_day: search_day
  22. },
  23. 'member'
  24. )
  25. // 签到
  26. export const addPointSignin =
  27. () =>
  28. requestApi(
  29. '/Memberpoints/signin_add',
  30. 'POST',
  31. {
  32. },
  33. 'member'
  34. )