finance.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import request from '@/utils/request'
  2. import {upFilse} from '@/utils/request'
  3. export function recharge(data) {
  4. return request({
  5. url: '/api/recharge/money',
  6. method: 'post',
  7. data
  8. });
  9. }
  10. //上传图片
  11. export function upload(data) {
  12. return upFilse({
  13. url: '/api/upload/image',
  14. method: 'post',
  15. data
  16. });
  17. }
  18. export function money(data,id) {
  19. return request({
  20. url: '/api/recharge/money/'+id,
  21. method: 'post',
  22. data
  23. });
  24. }
  25. export function wallet(data) {
  26. return request({
  27. url: '/api/wallet',
  28. method: 'get',
  29. data
  30. });
  31. }
  32. export function moneyLog(data,code) {
  33. return request({
  34. url: '/api/money/log/'+code,
  35. method: 'get',
  36. data
  37. });
  38. }
  39. export function cash(data) {
  40. return request({
  41. url: '/api/extract/cash',
  42. method: 'POST',
  43. data
  44. });
  45. }
  46. export function spread(data) {
  47. return request({
  48. url: '/api/spread/people',
  49. method: 'POST',
  50. data
  51. });
  52. }
  53. export function goPay(data) {
  54. return request({
  55. url: '/api/trade/go_pay',
  56. method: 'POST',
  57. data
  58. });
  59. }
  60. export function trade(data) {
  61. return request({
  62. url: '/api/trade/money_type',
  63. method: 'get',
  64. data
  65. });
  66. }
  67. export function cashmoney_type(data) {
  68. return request({
  69. url: '/api/cash/money_type',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. export function calculator(data) {
  75. return request({
  76. url: '/api/extract/calculator',
  77. method: 'post',
  78. data
  79. });
  80. }
  81. export function edit(data,id) {
  82. return request({
  83. url: '/api/wallet/address/edit/'+id,
  84. method: 'post',
  85. data
  86. });
  87. }
  88. export function miner(data) {
  89. return request({
  90. url: '/api/spread/people/all',
  91. method: 'post',
  92. data
  93. })
  94. }