calculation.js 708 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import request from '@/utils/request'
  2. export function mining(data) {
  3. return request({
  4. url: '/api/mining',
  5. method: 'get',
  6. data
  7. });
  8. }
  9. export function buyMining(data,id) {
  10. return request({
  11. url: '/api/mining/'+id,
  12. method: 'post',
  13. data
  14. });
  15. }
  16. export function miningIndex(data) {
  17. return request({
  18. url: '/api/mining_index',
  19. method: 'get',
  20. data
  21. });
  22. }
  23. export function mymining(data) {
  24. return request({
  25. url: '/api/my_mining',
  26. method: 'get',
  27. data
  28. });
  29. }
  30. export function calculator(data) {
  31. return request({
  32. url: '/api/mining_calculator',
  33. method: 'get',
  34. data
  35. });
  36. }
  37. export function miningDateils(data,id) {
  38. return request({
  39. url: '/api/mining/'+id,
  40. method: 'get',
  41. data
  42. });
  43. }