memberInviter.js 864 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { requestApi } from '../util/network'
  2. // 检测是否有推广权限
  3. export const checkInviter =
  4. () =>
  5. requestApi(
  6. '/memberinviter/check',
  7. 'POST',
  8. {
  9. },
  10. 'member'
  11. )
  12. // 获取推广海报
  13. export const getInviterPoster =
  14. () =>
  15. requestApi(
  16. '/memberinviter/index',
  17. 'POST',
  18. {
  19. },
  20. 'member'
  21. )
  22. // 获取推广会员
  23. export const getInviterUser =
  24. (params) =>
  25. requestApi(
  26. '/memberinviter/user',
  27. 'POST',
  28. {
  29. page: params.page,
  30. per_page: params.per_page
  31. },
  32. 'member'
  33. )
  34. // 获取推广佣金
  35. export const getInviterOrder =
  36. (params) =>
  37. requestApi(
  38. '/memberinviter/order',
  39. 'POST',
  40. {
  41. page: params.page,
  42. per_page: params.per_page
  43. },
  44. 'member'
  45. )