mine.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. }