| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // 导入请求
- import { request } from '../request.uts'
- // 基础 URL 配置
- // #ifdef APP-ANDROID
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- // #ifdef APP-IOS
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- // #ifdef H5
- const BASE_URL = ''
- // #endif
- // #ifdef MP-WEIXIN
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- // #ifdef MP-HARMONY
- const BASE_URL = 'http://192.168.0.9:8001'
- // #endif
- export function getAllData(params : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/orders/statistics`,
- method: "GET",
- params: params
- })
- }
- export function editCoachWorkState(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/work-status`,
- method: "POST",
- data: data
- })
- }
- export function editWorkTimeSetting(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/account/schedule`,
- method: "POST",
- data: data
- })
- }
- export function toggleProject(data : any) : Promise<any> {
- return request({
- url: `${BASE_URL}/api/coach/v3/projects/open`,
- method: "POST",
- data: data
- })
- }
|