wallet.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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 yue(data){
  12. return request({
  13. url:'/api/balance/LALA',
  14. method:'get',
  15. data
  16. })
  17. }
  18. // 获取汇总数据
  19. export function finance(data,state) {
  20. return request({
  21. url: '/api/finance',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 获取账户余额
  27. export function userBalance(data) {
  28. return request({
  29. url: '/api/user/balance',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 提现
  35. export function extractCash(data) {
  36. return request({
  37. url: '/api/extract/cash',
  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. // #ifdef H5
  51. // 公众号充值
  52. export function rechargeWechat(data) {
  53. return request({
  54. url: '/api/recharge/wechat',
  55. method: 'post',
  56. data
  57. });
  58. }
  59. // #endif
  60. // #ifdef MP
  61. // 小程序充值
  62. export function rechargeRoutine(data) {
  63. return request({
  64. url: '/api/recharge/routine',
  65. method: 'post',
  66. data
  67. });
  68. }
  69. // #endif
  70. // #ifdef APP-PLUS
  71. // App微信充值
  72. export function rechargeApp(data) {
  73. return request({
  74. url: '/api/recharge/app',
  75. method: 'post',
  76. data
  77. });
  78. }
  79. // App支付宝充值
  80. export function rechargeAli(data) {
  81. return request({
  82. url: '/api/recharge/ali',
  83. method: 'post',
  84. data
  85. });
  86. }
  87. // #endif
  88. // 获取提现支付宝账号
  89. export function aliInfo(data) {
  90. return request({
  91. url: '/api/ali/info',
  92. method: 'get',
  93. data
  94. });
  95. }
  96. //获取默认银行卡账号
  97. export function bankInfo(data) {
  98. return request({
  99. url: '/api/bank/info',
  100. method: 'get',
  101. data
  102. });
  103. }
  104. // 保存提现支付宝账号
  105. export function setAliInfo(data) {
  106. return request({
  107. url: '/api/ali/edit',
  108. method: 'post',
  109. data
  110. });
  111. }
  112. //保存默认银行卡账号
  113. export function setBankInfo(data) {
  114. return request({
  115. url: '/api/bank/edit',
  116. method: 'post',
  117. data
  118. });
  119. }
  120. // 账户余额
  121. export function balance(data) {
  122. return request({
  123. url: '/api/user/balance',
  124. method: 'get',
  125. data
  126. });
  127. }
  128. // 账户余额
  129. export function lalaprice(data) {
  130. return request({
  131. url: '/api/lala_price',
  132. method: 'get',
  133. data
  134. });
  135. }
  136. //充值金额
  137. export function moneyChong(data){
  138. return request({
  139. url:'/api/recharge/index',
  140. method:'get',
  141. data
  142. })
  143. }
  144. // 钱包流水
  145. export function USDT(data) {
  146. return request({
  147. url: '/api/money/log/USDT',
  148. method: 'get',
  149. data
  150. });
  151. }
  152. // 个人钱包
  153. export function getWallet(data) {
  154. return request({
  155. url: '/api/wallet',
  156. method: 'get',
  157. data
  158. });
  159. }
  160. //充值话费接口
  161. export function getPhone(data) {
  162. return request({
  163. url:'/api/mobile_recharge/index',
  164. method:'get',
  165. data
  166. })
  167. }
  168. // #ifdef H5
  169. // 公众号话费充值
  170. export function rechargePhoneWechat(data) {
  171. return request({
  172. url: '/api/mobile_recharge/wechat',
  173. method: 'post',
  174. data
  175. });
  176. }
  177. // #endif
  178. // #ifdef APP-PLUS
  179. // App微信话费充值
  180. export function rechargePhontApp(data) {
  181. return request({
  182. url: '/api/mobile_recharge/app',
  183. method: 'post',
  184. data
  185. });
  186. }
  187. // App支付宝话费充值
  188. export function rechargePhoneAli(data) {
  189. return request({
  190. url: '/api/mobile_recharge/ali',
  191. method: 'post',
  192. data
  193. });
  194. }