wallet.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. import request from '@/utils/request'
  2. // 获取用户消费记录
  3. export function spreadCommission(data,state) {
  4. return request({
  5. url: '/api/spread/commission/'+state,
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 获取账户余额
  11. export function userBalance(data) {
  12. return request({
  13. url: '/api/user/balance',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 提现
  19. export function extractCash(data) {
  20. return request({
  21. url: '/api/extract/cash',
  22. method: 'post',
  23. data
  24. });
  25. }
  26. // 提现信息
  27. export function extractBank(data) {
  28. return request({
  29. url: '/api/extract/bank',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 公众号充值
  35. export function rechargeWechat(data) {
  36. return request({
  37. url: '/api/recharge/wechat',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 云仓充值
  43. export function rechargeyuncang(data) {
  44. return request({
  45. url: '/api/block/charge',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 小程序充值
  51. export function rechargeRoutine(data) {
  52. return request({
  53. url: '/api/recharge/routine',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // 获取提现支付宝账号
  59. export function aliInfo(data) {
  60. return request({
  61. url: '/api/ali/info',
  62. method: 'get',
  63. data
  64. });
  65. }
  66. //获取默认银行卡账号api/bank/info extract/info
  67. export function bankInfo(data) {
  68. return request({
  69. url: '/api/bank/info',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. // 保存提现支付宝账号
  75. export function setAliInfo(data) {
  76. return request({
  77. url: '/api/ali/edit',
  78. method: 'post',
  79. data
  80. });
  81. }
  82. //保存默认银行卡账号
  83. export function setBankInfo(data) {
  84. return request({
  85. url: '/api/bank/edit',
  86. method: 'post',
  87. data
  88. });
  89. }
  90. //积分记录
  91. export function integral(data) {
  92. return request({
  93. url: '/api/integral/list',
  94. method: 'GET',
  95. data
  96. });
  97. }
  98. //记录
  99. export function spread_commission(data,type) {
  100. return request({
  101. url: '/api/spread/commission/'+type,
  102. method: 'GET',
  103. data
  104. });
  105. }
  106. //记录
  107. export function capitallist(data,type) {
  108. return request({
  109. url: '/api/user/money_log',
  110. method: 'GET',
  111. data
  112. });
  113. }
  114. //佣金总和
  115. export function spreadCount(data) {
  116. return request({
  117. url: '/api/spread/count/3',
  118. method: 'GET',
  119. data
  120. });
  121. }
  122. // 总佣金
  123. export function commission(data) {
  124. return request({
  125. url: '/api/commission',
  126. method: 'GET',
  127. data
  128. });
  129. }