import fetch from "../utils/request.js" // import {API,videoApi} from "./baseURL.js" // const API = 'https://poker2021-front-guess-api.lizhiyuedong.com' const videoApi = "https://lzyd-front-user-api.lizhiyuedong.com/" const sportApi = "http://lzyd-front-sport-api.lizhiyuedong.com/" const sportApi1 = "http://192.168.0.101:4002/" // //获取首页 // export async function GetHome(payload) { // return fetch({ // url: API + '/home/index', // payload, // method: 'get' // }) // } // // 加入竞猜 // export async function JoinGuess(payload) { // return fetch({ // url: API + '/guess/joinguess', // payload, // method: 'post' // }) // } // 获取用户信息 export async function GetUserInfo(payload) { return fetch({ url: videoApi + 'customer/getInfo', payload, method: 'get' }) } // 获取运动参数 export async function GetSportInfo(payload) { return fetch({ url: sportApi + 'api/runData/speed', payload, method: 'get' }) } // 获取运动参数 export async function GetSportSummary(payload) { return fetch({ url: sportApi + 'api/runData/summary', payload, method: 'post' }) } // 获取地图参数 export async function GetMapsInfo(payload) { return fetch({ url: sportApi + 'api/correction/trackPointAmpSearch', payload, method: 'get' }) } // 上传base64 export async function uploadBase64(payload) { return fetch({ url: 'https://lzyd-front-user-api.lizhiyuedong.com/customer/uploadBase64', payload, method: 'post' }) }