mine.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. export function getWithdrawStatus() {
  71. return request({
  72. url: `/core/volunteer/take/mini/list`,
  73. method: 'get',
  74. })
  75. }
  76. //账单详情
  77. export function getIncomeDetails(volunteerTakeRecordId) {
  78. return request({
  79. url: `/core/volunteer/take/${volunteerTakeRecordId}`,
  80. method: 'get',
  81. })
  82. }
  83. // 他人账户提现回显
  84. export function vonTtAlipayAccountHistory() {
  85. return request({
  86. url: `/core/volunteer/take/getAlipayAccountHistory`,
  87. method: 'get',
  88. })
  89. }
  90. // 撤销提现
  91. export function volEetCancelTake(params) {
  92. return request({
  93. url: `/core/volunteer/account/cancelTake`,
  94. method: 'get',
  95. params
  96. })
  97. }