wallet.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 rechargemoneys(data) {
  28. return request({
  29. url: '/api/user/do',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. //佣金转余额
  35. export function extractCashs(data) {
  36. return request({
  37. url: '/api/recharge/wechat',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 提现信息
  43. export function extractBank(data) {
  44. return request({
  45. url: '/api/extract/bank',
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 佣金信息
  51. export function commission(data) {
  52. return request({
  53. url: '/api/commission',
  54. method: 'get',
  55. data
  56. });
  57. }
  58. // 充值
  59. export function rechargeWechat(data) {
  60. return request({
  61. url: '/api/recharge/wechat',
  62. method: 'post',
  63. data
  64. });
  65. }
  66. // 获取提现支付宝账号
  67. export function aliInfo(data) {
  68. return request({
  69. url: '/api/ali/info',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. //获取默认银行卡账号
  75. export function bankInfo(data) {
  76. return request({
  77. url: '/api/bank/info',
  78. method: 'get',
  79. data
  80. });
  81. }
  82. // 保存提现支付宝账号
  83. export function setAliInfo(data) {
  84. return request({
  85. url: '/api/ali/edit',
  86. method: 'post',
  87. data
  88. });
  89. }
  90. //保存默认银行卡账号
  91. export function setBankInfo(data) {
  92. return request({
  93. url: '/api/bank/edit',
  94. method: 'post',
  95. data
  96. });
  97. }