baseUrl.js
2.17 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { getTabbarHeight } from '@/plugins/utils'
/**
* 服务端配置项
* baseUrl 服务端 api地址
* baseDrawioUrl 组态地址 注意端口
* baseLargeDesigner 新版看板 注意端口
* baseVisualUrl 旧版看板地址
* baseWebSocketUrl 服务端 websocket地址
* socketPrefix websocket前缀 ((https, wss),( http, ws))
*/
// const baseUrl = 'http://222.180.200.114:30427/api'
// const baseUrl = 'http://192.168.1.235:9527/api'
// const baseUrl = 'http://10.9.0.205:9527/api'
const baseUrl = 'http://10.9.4.101:8080/api'
const baseImgUrl = 'http://10.9.4.101:8080'
//
// const baseVisualUrl = 'http://222.180.200.114:30427'
const baseVisualUrl = 'http://192.168.1.235:9527'
// const baseDrawioUrl = 'http://222.180.200.114:30427/thingskit-scada'
const baseDrawioUrl = 'http://192.168.1.235:9527/thingskit-scada'
const baseLargeDesigner = 'http://192.168.1.235:9527/large-designer'
const baseWebSocketUrl = '192.168.1.235:9527'
const socketPrefix = 'ws'
let systemInfo = {
...getTabbarHeight(),
// #ifdef MP-ALIPAY
navBarH: uni.getSystemInfoSync().statusBarHeight + uni.getSystemInfoSync().titleBarHeight, //菜单栏总高度--单位px
titleBarHeight: uni.getSystemInfoSync().titleBarHeight, //标题栏高度--单位px
// #endif
// #ifndef MP-ALIPAY
navBarH: uni.getSystemInfoSync().statusBarHeight + 44, //菜单栏总高度--单位px
titleBarHeight: 44, //标题栏高度--单位px
// #endif
}
// 平台
// #ifdef MP-WEIXIN
systemInfo.platform = 'weixin'
// #endif
// #ifdef MP-ALIPAY
systemInfo.platform = 'alipay'
// #endif
// #ifdef MP-TOUTIAO
systemInfo.platform = 'toutiao'
// #endif
// #ifdef APP-PLUS
systemInfo.platform = 'plus'
// #endif
const courtConfig = {
publicAppId: '', //公众号appId
baseUrl, //服务端地址
baseVisualUrl, //服务端看板地址
baseDrawioUrl, //服务端组态地址
baseLargeDesigner,//服务端大屏地址
baseWebSocketUrl, //服务端websocket地址
socketPrefix, //websocket前缀
systemInfo: systemInfo, //系统信息
baseImgUrl,
mapData: {
key: '', //地图key
sk: '',
},
}
export default Object.assign({}, courtConfig)