import { request } from '../request.uts' // 基础 URL 配置 // #ifdef APP-ANDROID const BASE_URL = 'https://dev.xiaodingyun.cn' // #endif // #ifdef APP-IOS const BASE_URL = 'https://dev.xiaodingyun.cn' // #endif // #ifdef H5 const BASE_URL = '' // #endif // #ifdef MP-WEIXIN const BASE_URL = 'https://dev.xiaodingyun.cn' // #endif // #ifdef MP-HARMONY const BASE_URL = 'https://dev.xiaodingyun.cn' // #endif // 验证码登录 export function fetchLogin(data : any) : Promise { return request({ url: `${BASE_URL}/api/coachapp/account/login`, method: "POST", data: data }) } // 发送验证码 export function fetchSendcode(data : any) : Promise { return request({ url: `${BASE_URL}/api/coachapp/account/sendcode`, method: "POST", data: data }) }