market.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 mymining(data) {
  10. return request({
  11. url: '/api/my_mining',
  12. method: 'get',
  13. data
  14. });
  15. }
  16. export function buyMining(data,id) {
  17. return request({
  18. url: '/api/mining/'+id,
  19. method: 'post',
  20. data
  21. });
  22. }
  23. export function miningDateils(data,id) {
  24. return request({
  25. url: '/api/mining/'+id,
  26. method: 'get',
  27. data
  28. });
  29. }
  30. // 兑换记录
  31. export function getSp(data,id) {
  32. return request({
  33. url: '/api/lala/sp_exchange/'+id,
  34. method: 'get',
  35. data
  36. });
  37. }
  38. // 特别兑换
  39. export function spExchange(data,id) {
  40. return request({
  41. url: '/api/lala/sp_exchange/'+id,
  42. method: 'post',
  43. data
  44. });
  45. }
  46. export function activityDetail(data,id) {
  47. return request({
  48. url: '/api/activity/'+id,
  49. method: 'get',
  50. data
  51. });
  52. }
  53. export function joinActivity(data,id) {
  54. return request({
  55. url: '/api/activity/'+id,
  56. method: 'post',
  57. data
  58. });
  59. }
  60. export function myActivity(data,id) {
  61. return request({
  62. url: '/api/activity/children/'+id,
  63. method: 'get',
  64. data
  65. });
  66. }