index.js
864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//获取首页统计数据API
const getHomeStatisticsApi = () => {
return uni.$u.http.get("/yt/homepage/app?login=false")
};
//获取视频分页API
const getCameraApi = (params = {}) => {
return uni.$u.http
.get('/yt/video', params)
};
//获取视频详情API
const byCameraIdGetDetailApi = (id) => {
return uni.$u.http.get(`/yt/video/url/${id}`)
};
//获取组态分页API
const getConfigurationApi = (params = {}) => {
return uni.$u.http
.get('/yt/configuration/center', params)
}
// 获取看板分页API
const getVisualBoardApi = (params) => {
return uni.$u.http.get('yt/data_board',params)
}
//获取组织列表
const getMeOrgListApi = () => {
return uni.$u.http
.get('/yt/organization/me/list')
}
export default {
getHomeStatisticsApi,
getCameraApi,
byCameraIdGetDetailApi,
getConfigurationApi,
getMeOrgListApi,
getVisualBoardApi
}