mine.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import request from '../utils/request'
  2. //获取志愿者账户详细信息
  3. export function getVolunteerAccountInfo() {
  4. return request({
  5. url: `/core/volunteer/account/getVolunteerAccountInfo`,
  6. method: 'get',
  7. })
  8. }
  9. //志愿者订单统计
  10. export function volunteerOrderStatistics() {
  11. return request({
  12. url: `/core/volunteer/orders/volunteerOrderStatistics`,
  13. method: 'get',
  14. })
  15. }
  16. //查询自己的账户余额
  17. export function getAccountInfo() {
  18. return request({
  19. url: `/core/client/account/info`,
  20. method: 'get',
  21. })
  22. }
  23. //查询用户自己的账户变更记录
  24. export function getAccountChangeList(params) {
  25. return request({
  26. url: `/core/client/account-change`,
  27. method: 'get',
  28. params
  29. })
  30. }
  31. //查询用户的总收入和总支出
  32. export function getTotalMoney(params) {
  33. return request({
  34. url: `/core/client/account-change/totalMoney`,
  35. method: 'get',
  36. params
  37. })
  38. }
  39. //查询用户的总收入和总支出 志愿者
  40. export function getVolunteerTotalMoney(params) {
  41. return request({
  42. url: `/core/volunteer/account-change/totalMoney`,
  43. method: 'get',
  44. params
  45. })
  46. }
  47. //查询用户自己的账户变更记录 志愿者
  48. export function getVolunteerChangeList(params) {
  49. return request({
  50. url: `/core/volunteer/account-change/changeList`,
  51. method: 'get',
  52. params
  53. })
  54. }
  55. //提交提现申请
  56. export function submitAmountApply(data) {
  57. return request({
  58. url: `/core/volunteer/account/submitAmountApply`,
  59. method: 'post',
  60. data
  61. })
  62. }
  63. //获取当前用户提现状态
  64. export function getWithdrawStatus() {
  65. return request({
  66. url: `/core/volunteer/account/getWithdrawStatus`,
  67. method: 'get',
  68. })
  69. }
  70. //账单详情
  71. export function getIncomeDetails(volunteerTakeRecordId) {
  72. return request({
  73. url: `/core/volunteer/take/${volunteerTakeRecordId}`,
  74. method: 'get',
  75. })
  76. }
  77. // 他人账户提现回显
  78. export function vonTtAlipayAccountHistory() {
  79. return request({
  80. url: `/core/volunteer/take/getAlipayAccountHistory`,
  81. method: 'get',
  82. })
  83. }
  84. // 撤销提现
  85. export function volEetCancelTake(params) {
  86. return request({
  87. url: `/core/volunteer/account/cancelTake`,
  88. method: 'get',
  89. params
  90. })
  91. }