wallet.js 2.5 KB

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