apis.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import fetch from "../utils/request.js"
  2. // import {API,videoApi} from "./baseURL.js"
  3. // const API = 'https://poker2021-front-guess-api.lizhiyuedong.com'
  4. const videoApi = "https://lzyd-front-user-api.lizhiyuedong.com/"
  5. const sportApi = "http://lzyd-front-sport-api.lizhiyuedong.com/"
  6. const sportApi1 = "http://192.168.0.101:4002/"
  7. // //获取首页
  8. // export async function GetHome(payload) {
  9. // return fetch({
  10. // url: API + '/home/index',
  11. // payload,
  12. // method: 'get'
  13. // })
  14. // }
  15. // // 加入竞猜
  16. // export async function JoinGuess(payload) {
  17. // return fetch({
  18. // url: API + '/guess/joinguess',
  19. // payload,
  20. // method: 'post'
  21. // })
  22. // }
  23. // 获取用户信息
  24. export async function GetUserInfo(payload) {
  25. return fetch({
  26. url: videoApi + 'customer/getInfo',
  27. payload,
  28. method: 'get'
  29. })
  30. }
  31. // 获取运动参数
  32. export async function GetSportInfo(payload) {
  33. return fetch({
  34. url: sportApi + 'api/runData/speed',
  35. payload,
  36. method: 'get'
  37. })
  38. }
  39. // 获取运动参数
  40. export async function GetSportSummary(payload) {
  41. return fetch({
  42. url: sportApi + 'api/runData/summary',
  43. payload,
  44. method: 'post'
  45. })
  46. }
  47. // 获取地图参数
  48. export async function GetMapsInfo(payload) {
  49. return fetch({
  50. url: sportApi + 'api/correction/trackPointAmpSearch',
  51. payload,
  52. method: 'get'
  53. })
  54. }
  55. // 上传base64
  56. export async function uploadBase64(payload) {
  57. return fetch({
  58. url: 'https://lzyd-front-user-api.lizhiyuedong.com/customer/uploadBase64',
  59. payload,
  60. method: 'post'
  61. })
  62. }