memberRecharge.js 602 B

123456789101112131415161718192021222324252627282930313233
  1. import { requestApi } from '../util/network'
  2. export const getRechargeList =
  3. (params) =>
  4. requestApi(
  5. '/Memberfund/pdrechargelist',
  6. 'POST',
  7. {
  8. page:params.page,
  9. per_page:params.per_page
  10. },
  11. 'member'
  12. )
  13. export const getRechargeInfo =
  14. (paysn) =>
  15. requestApi(
  16. '/Recharge/recharge_order',
  17. 'POST',
  18. {
  19. paysn: paysn
  20. },
  21. 'member'
  22. )
  23. export const addRecharge =
  24. (amount) =>
  25. requestApi(
  26. '/Recharge/index',
  27. 'POST',
  28. {
  29. pdr_amount: amount
  30. },
  31. 'member'
  32. )