wallet.js 2.5 KB

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