wallet.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. export function wallet(data) {
  19. return request({
  20. url: '/api/wallet',
  21. method: 'get',
  22. data
  23. });
  24. }
  25. // 提现
  26. export function extractCash(data) {
  27. return request({
  28. url: '/api/extract/cash',
  29. method: 'post',
  30. data
  31. });
  32. }
  33. // 提现
  34. export function exchangeCash(data) {
  35. return request({
  36. url: '/api/extract/brokerage',
  37. method: 'post',
  38. data
  39. });
  40. }
  41. // 提现信息
  42. export function extractBank(data) {
  43. return request({
  44. url: '/api/extract/bank',
  45. method: 'get',
  46. data
  47. });
  48. }
  49. // #ifdef H5
  50. // 公众号充值
  51. export function rechargeWechat(data) {
  52. return request({
  53. url: '/api/recharge/wechat',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // #endif
  59. // #ifdef MP
  60. // 小程序充值
  61. export function rechargeRoutine(data) {
  62. return request({
  63. url: '/api/recharge/routine',
  64. method: 'post',
  65. data
  66. });
  67. }
  68. // #endif
  69. // #ifdef APP-PLUS
  70. // 支付宝充值
  71. export function rechargeAli(data) {
  72. return request({
  73. url: '/api/recharge/ali',
  74. method: 'post',
  75. data
  76. });
  77. }
  78. // #endif
  79. // 获取提现支付宝账号
  80. export function aliInfo(data) {
  81. return request({
  82. url: '/api/auction/pay_list',
  83. method: 'get',
  84. data
  85. });
  86. }
  87. //获取默认银行卡账号
  88. export function bankInfo(data) {
  89. return request({
  90. url: '/api/bank/info',
  91. method: 'get',
  92. data
  93. });
  94. }
  95. // 保存提现支付宝账号
  96. export function setAliInfo(data) {
  97. return request({
  98. url: '/api/ali/edit',
  99. method: 'post',
  100. data
  101. });
  102. }
  103. //保存默认银行卡账号
  104. export function setBankInfo(data) {
  105. return request({
  106. url: '/api/bank/edit',
  107. method: 'post',
  108. data
  109. });
  110. }
  111. // 账户余额
  112. export function balance(data) {
  113. return request({
  114. url: '/api/user/balance',
  115. method: 'get',
  116. data
  117. });
  118. }
  119. // 账户余额
  120. export function cashList(data) {
  121. return request({
  122. url: '/api/cash/list',
  123. method: 'get',
  124. data
  125. });
  126. }
  127. //充值金额
  128. export function moneyChong(data) {
  129. return request({
  130. url: '/api/recharge/index',
  131. method: 'get',
  132. data
  133. })
  134. }
  135. //添加收款方式
  136. export function getMoneyType(data) {
  137. return request({
  138. url: '/api/auction/pay',
  139. method: 'post',
  140. data
  141. });
  142. }