index.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. import request from '@/utils/request'
  2. // 获取首页信息
  3. export function loadIndexs(data) {
  4. return request({
  5. url: '/api/index/index',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 报单计算
  11. export function orderCalculator(data) {
  12. return request({
  13. url: '/api/order/orderCalculator',
  14. method: 'post',
  15. data
  16. });
  17. }
  18. // 生成报单
  19. export function creatorOrder(data) {
  20. return request({
  21. url: '/api/order/order',
  22. method: 'post',
  23. data
  24. });
  25. }
  26. // 报单支付
  27. export function payOrder(id,data) {
  28. return request({
  29. url: `/api/order/pay/id/${id}`,
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 閃兌
  35. export function exchange(data) {
  36. return request({
  37. url: `/api/user/exchange`,
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 推薦人列表
  43. export function spreadList(data) {
  44. return request({
  45. url: '/api/user/spreadList',
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 轉賬
  51. export function trade(data) {
  52. return request({
  53. url: `/api/user/trade`,
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // 交易記錄
  59. export function moneyLog(data) {
  60. return request({
  61. url: '/api/user/getTokenLog',
  62. method: 'get',
  63. data
  64. });
  65. }
  66. // 提現
  67. export function gameWallet(data) {
  68. return request({
  69. url: '/api/user/gameWallet',
  70. method: 'post',
  71. data
  72. });
  73. }
  74. // 提幣計算
  75. export function extractCalculator(data) {
  76. return request({
  77. url: '/api/user/extractCalculator',
  78. method: 'post',
  79. data
  80. });
  81. }
  82. // 提幣
  83. export function extract(data) {
  84. return request({
  85. url: '/api/user/extract',
  86. method: 'post',
  87. data
  88. });
  89. }
  90. // 报单计算
  91. export function pointCalculator(data) {
  92. return request({
  93. url: '/api/point/orderCalculator',
  94. method: 'post',
  95. data
  96. });
  97. }
  98. // 生成报单
  99. export function creatorPoint(data) {
  100. return request({
  101. url: '/api/point/order',
  102. method: 'post',
  103. data
  104. });
  105. }
  106. // 报单支付
  107. export function payPoint(id,data) {
  108. return request({
  109. url: `/api/point/pay/id/${id}`,
  110. method: 'post',
  111. data
  112. });
  113. }
  114. // 節點記錄
  115. export function myList(data) {
  116. return request({
  117. url: `/api/point/myList`,
  118. method: 'get',
  119. data
  120. });
  121. }
  122. // 共创社区
  123. export function orderList(data) {
  124. return request({
  125. url: `/api/order/myList`,
  126. method: 'get',
  127. data
  128. });
  129. }