wallet.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. // #ifdef H5
  35. // 公众号充值
  36. export function rechargeWechat(data) {
  37. return request({
  38. url: '/api/recharge/wechat',
  39. method: 'post',
  40. data
  41. });
  42. }
  43. // #endif
  44. // #ifdef MP
  45. // 小程序充值
  46. export function rechargeRoutine(data) {
  47. return request({
  48. url: '/api/recharge/routine',
  49. method: 'post',
  50. data
  51. });
  52. }
  53. // #endif
  54. // 获取提现支付宝账号
  55. export function aliInfo(data) {
  56. return request({
  57. url: '/api/ali/info',
  58. method: 'get',
  59. data
  60. });
  61. }
  62. //获取默认银行卡账号
  63. export function bankInfo(data) {
  64. return request({
  65. url: '/api/bank/info',
  66. method: 'get',
  67. data
  68. });
  69. }
  70. // 保存提现支付宝账号
  71. export function setAliInfo(data) {
  72. return request({
  73. url: '/api/ali/edit',
  74. method: 'post',
  75. data
  76. });
  77. }
  78. //保存默认银行卡账号
  79. export function setBankInfo(data) {
  80. return request({
  81. url: '/api/bank/edit',
  82. method: 'post',
  83. data
  84. });
  85. }
  86. // 账户余额
  87. export function balance(data) {
  88. return request({
  89. url: '/api/user/balance',
  90. method: 'get',
  91. data
  92. });
  93. }
  94. //
  95. export function yue(data) {
  96. return request({
  97. url: '/api/now_money/list',
  98. method: 'get',
  99. data
  100. });
  101. }
  102. export function integral(data) {
  103. return request({
  104. url: '/api/integral/list',
  105. method: 'get',
  106. data
  107. });
  108. }
  109. export function getBank(data) {
  110. return request({
  111. url: '/api/auction/pay_list',
  112. method: 'get',
  113. data
  114. });
  115. }
  116. export function setBank(data) {
  117. return request({
  118. url: '/api/auction/pay',
  119. method: 'post',
  120. data
  121. });
  122. }
  123. export function getIntegralList(data) {
  124. // integral/list
  125. return request({
  126. url: '/api/integral/list',
  127. method: 'get',
  128. data
  129. });
  130. }