index.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. import request from '@/utils/request'
  2. export function spreadList(data) {
  3. return request({
  4. url: '/api/user/spreadList',
  5. method: 'get',
  6. data
  7. });
  8. }
  9. export function moneyInfo(id) {
  10. return request({
  11. url: `/api/user/moneyInfo/token/${id}`,
  12. method: 'get',
  13. });
  14. }
  15. export function exchange(data) {
  16. return request({
  17. url: '/api/user/exchange',
  18. method: 'post',
  19. data
  20. });
  21. }
  22. export function mining(data) {
  23. return request({
  24. url: '/api/mining/lst',
  25. method: 'get',
  26. data
  27. });
  28. }
  29. export function detail(id) {
  30. return request({
  31. url: `/api/mining/detail/id/${id}`,
  32. method: 'get',
  33. });
  34. }
  35. export function myList(data) {
  36. return request({
  37. url: '/api/mining/myList',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. export function order(data) {
  43. return request({
  44. url: '/api/mining/order',
  45. method: 'POST',
  46. data
  47. });
  48. }
  49. export function getTokenLog(data) {
  50. return request({
  51. url: '/api/user/getTokenLog',
  52. method: 'get',
  53. data
  54. });
  55. }
  56. // 首页代币价格
  57. export function prices(data) {
  58. return request({
  59. url: '/api/prices',
  60. method: 'get',
  61. data
  62. });
  63. }
  64. export function getIndex(data) {
  65. return request({
  66. url: '/api/index',
  67. method: 'get',
  68. data
  69. });
  70. }
  71. // #ifndef MP
  72. /**
  73. * 版本号
  74. */
  75. export function getAppVersion(data) {
  76. return request({
  77. url: '/api/version',
  78. method: 'get',
  79. data
  80. });
  81. }
  82. // #endif
  83. export function getIndexs(data) {
  84. return request({
  85. url: '/api/user/index',
  86. method: 'get',
  87. data
  88. });
  89. }
  90. export function coin(data) {
  91. return request({
  92. url: '/api/user/chargeBNBCalculator',
  93. method: 'POST',
  94. data
  95. });
  96. }
  97. export function chargeBNB(data) {
  98. return request({
  99. url: '/api/user/chargeBNB',
  100. method: 'POST',
  101. data
  102. });
  103. }
  104. export function extractCalculator(data) {
  105. return request({
  106. url: '/api/user/extractCalculator',
  107. method: 'POST',
  108. data
  109. });
  110. }
  111. export function extract(data) {
  112. return request({
  113. url: '/api/user/extract',
  114. method: 'POST',
  115. data
  116. });
  117. }
  118. export function indexAll(data) {
  119. return request({
  120. url: '/api/index',
  121. method: 'POST',
  122. data
  123. });
  124. }
  125. // mayi的铸币
  126. export function chargeCalculator(data) {
  127. return request({
  128. url: '/api/user/chargeCalculator',
  129. method: 'POST',
  130. data
  131. });
  132. }
  133. export function charge(data) {
  134. return request({
  135. url: '/api/user/charge',
  136. method: 'POST',
  137. data
  138. });
  139. }
  140. export function transferDate(data) {
  141. return request({
  142. url: '/api/index/transferDate',
  143. method: 'POST',
  144. data
  145. });
  146. }
  147. export function childrenList(data) {
  148. return request({
  149. url: '/api/user/childrenList',
  150. method: 'get',
  151. data
  152. });
  153. }