sellerDeposit.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { requestApi } from '../util/network'
  2. // 获取店铺保证金记录
  3. export const getSellerDepositList =
  4. (params) =>
  5. requestApi(
  6. '/Sellerdeposit/index',
  7. 'POST',
  8. {
  9. 'page': params.page,
  10. 'per_page': params.per_page,
  11. 'client_type': 'wap'
  12. },
  13. 'seller'
  14. )
  15. // 获取店铺保证金提现记录
  16. export const getSellerDepositWithdrawList =
  17. (params) =>
  18. requestApi(
  19. '/Sellerdeposit/withdraw_list',
  20. 'POST',
  21. {
  22. 'page': params.page,
  23. 'per_page': params.per_page,
  24. 'client_type': 'wap'
  25. },
  26. 'seller'
  27. )
  28. // 补缴店铺保证金
  29. export const addSellerDeposit =
  30. (amount) =>
  31. requestApi(
  32. '/Sellerdeposit/recharge_add',
  33. 'POST',
  34. {
  35. 'pdc_amount': amount,
  36. 'client_type': 'wap'
  37. },
  38. 'seller'
  39. )
  40. // 取出店铺保证金
  41. export const reduceSellerDeposit =
  42. (amount) =>
  43. requestApi(
  44. '/Sellerdeposit/withdraw_add',
  45. 'POST',
  46. {
  47. 'pdc_amount': amount,
  48. 'client_type': 'wap'
  49. },
  50. 'seller'
  51. )