wallet.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. // #ifdef APP-PLUS
  55. // App微信充值
  56. export function rechargeApp(data) {
  57. return request({
  58. url: '/api/recharge/app',
  59. method: 'post',
  60. data
  61. });
  62. }
  63. // App支付宝充值
  64. export function rechargeAli(data) {
  65. return request({
  66. url: '/api/recharge/ali',
  67. method: 'post',
  68. data
  69. });
  70. }
  71. // #endif
  72. // 获取提现支付宝账号
  73. export function aliInfo(data) {
  74. return request({
  75. url: '/api/ali/info',
  76. method: 'get',
  77. data
  78. });
  79. }
  80. //获取默认银行卡账号
  81. export function bankInfo(data) {
  82. return request({
  83. url: '/api/bank/info',
  84. method: 'get',
  85. data
  86. });
  87. }
  88. // 保存提现支付宝账号
  89. export function setAliInfo(data) {
  90. return request({
  91. url: '/api/ali/edit',
  92. method: 'post',
  93. data
  94. });
  95. }
  96. //保存默认银行卡账号
  97. export function setBankInfo(data) {
  98. return request({
  99. url: '/api/bank/edit',
  100. method: 'post',
  101. data
  102. });
  103. }
  104. // 账户余额
  105. export function balance(data) {
  106. return request({
  107. url: '/api/user/balance',
  108. method: 'get',
  109. data
  110. });
  111. }
  112. export function integral(data) {
  113. return request({
  114. url:'/api/integral/list',
  115. method:'get',
  116. data
  117. })
  118. }