account.js 1014 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { http } from '@/common/service/service.js'
  2. const apiService = {
  3. // 获取当前账户余额
  4. getAccountInfo() {
  5. return http.get('/merchant/account/index');
  6. },
  7. // 获取财务订单统计
  8. getFinanceStats(params) {
  9. return http.get('/merchant/account/orderStats',{params});
  10. },
  11. // 获取账户明细
  12. getAccountList(params) {
  13. return http.get('/merchant/account/flowList',{params});
  14. },
  15. // 初始化提现数据
  16. initWithdrawalData() {
  17. return http.get('/merchant/withdraw/initApply');
  18. },
  19. // 申请提现
  20. applyWithdrawal(params) {
  21. return http.post('/merchant/withdraw/apply',params);
  22. },
  23. // 提现详情
  24. getWithdrawalDetails(id) {
  25. return http.get(`/merchant/withdraw/detail?withdrawNo=${id}`);
  26. },
  27. // 结算详情
  28. settlementDetail(id) {
  29. return http.get(`/merchant/account/settlementDetail?settlementId=${id}`);
  30. },
  31. // 结算订单详情
  32. orderClearDetail(id) {
  33. return http.get(`/merchant/account/orderClearDetail?orderId=${id}`);
  34. },
  35. };
  36. export default apiService;