Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cmsApp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李翠鸿
cmsApp
Commits
71df02fd
Commit
71df02fd
authored
Aug 17, 2021
by
李翠鸿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v3
parent
678ba089
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
244 additions
and
112 deletions
+244
-112
uni.scss
common/uni.scss
+5
-0
toast.js
js/toast.js
+6
-0
manifest.json
manifest.json
+60
-59
pages.json
pages.json
+6
-0
index.vue
pages/data/index.vue
+0
-0
index.vue
pages/login/index.vue
+21
-0
index.vue
pages/monitoring/index.vue
+0
-17
index.vue
pages/monitoring/monitoring-view/index.vue
+0
-0
index.vue
pages/working/index.vue
+76
-4
api.js
request/api.js
+28
-1
request.js
request/request.js
+7
-1
index.js
store/index.js
+33
-28
__uniappchooselocation.js
unpackage/dist/dev/app-plus/__uniappchooselocation.js
+0
-0
app-config-service.js
unpackage/dist/dev/app-plus/app-config-service.js
+2
-2
No file name available
+0
-0
No files found.
common/uni.scss
View file @
71df02fd
...
@@ -12,3 +12,7 @@
...
@@ -12,3 +12,7 @@
.base-style
{
.base-style
{
position
:
absolute
;
position
:
absolute
;
}
}
.data-conponent-style
{
box-sizing
:
border-box
;
}
\ No newline at end of file
js/toast.js
View file @
71df02fd
...
@@ -18,9 +18,15 @@ const showModal = (title, success) => {
...
@@ -18,9 +18,15 @@ const showModal = (title, success) => {
success
:
success
success
:
success
})
})
}
}
const
defaultLoading
=
()
=>
{
return
uni
.
showLoading
({
title
:
"加载中"
});
}
export
default
{
export
default
{
toast
:
toast
,
toast
:
toast
,
showModal
:
showModal
,
showModal
:
showModal
,
defaultLoading
:
defaultLoading
// successToast: successToast,
// successToast: successToast,
// showLoading: showLoading,
// showLoading: showLoading,
// tipLoading: tipLoading,
// tipLoading: tipLoading,
...
...
manifest.json
View file @
71df02fd
{
{
"name"
:
"demo2"
,
"name"
:
"demo2"
,
"appid"
:
"__UNI__630CE47"
,
"appid"
:
"__UNI__630CE47"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
/*
模块配置
*/
/*
模块配置
*/
"modules"
:
{},
"modules"
:
{},
/*
应用发布信息
*/
/*
应用发布信息
*/
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"android"
:
{
"android"
:
{
"permissions"
:
[
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
...
@@ -41,34 +41,36 @@
...
@@ -41,34 +41,36 @@
]
]
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{},
"ios"
:
{},
/*
SDK配置
*/
/*
SDK配置
*/
"sdkConfigs"
:
{}
"sdkConfigs"
:
{
"ad"
:
{}
}
}
}
},
},
/*
快应用特有相关
*/
/*
快应用特有相关
*/
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
""
,
"appid"
:
""
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
"urlCheck"
:
false
},
},
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-baidu"
:
{
"mp-baidu"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-toutiao"
:
{
"mp-toutiao"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
false
"enable"
:
false
},
},
"orientation"
:
[
"orientation"
:
[
//竖屏正方向
//竖屏正方向
"portrait-primary"
,
"portrait-primary"
,
//竖屏反方向
//竖屏反方向
...
@@ -80,27 +82,26 @@
...
@@ -80,27 +82,26 @@
//自然方向
//自然方向
"default"
"default"
],
],
"h5"
:
{
"h5"
:
{}
//
"devServer"
:
{
//
"https"
:
false
,
//
"proxy"
:
{
//
//
"/web"
:
{
//
//
"target"
:
"http://192.168.1.151:8804"
,
//
//
"changeOrigin"
:
true
,
//
//
"secure"
:
false
,
//
//
"pathRewrite"
:
{
//
//
"^/web"
:
"/"
//
//
}
//
//
}
//
"/api"
:
{
//
"target"
:
"http://192.168.1.151:8804"
,
//
"changeOrigin"
:
true
,
//
"pathRewrite"
:{
//
"^/api"
:
"/api"
//
}
//
}
//
}
//
}
}
}
}
//
"devServer"
:
{
//
"https"
:
false
,
//
"proxy"
:
{
//
//
"/web"
:
{
//
//
"target"
:
"http://192.168.1.151:8804"
,
//
//
"changeOrigin"
:
true
,
//
//
"secure"
:
false
,
//
//
"pathRewrite"
:
{
//
//
"^/web"
:
"/"
//
//
}
//
//
}
//
"/api"
:
{
//
"target"
:
"http://192.168.1.151:8804"
,
//
"changeOrigin"
:
true
,
//
"pathRewrite"
:{
//
"^/api"
:
"/api"
//
}
//
}
//
}
//
}
pages.json
View file @
71df02fd
...
@@ -68,6 +68,12 @@
...
@@ -68,6 +68,12 @@
//
"titleNView"
:
false
//
"titleNView"
:
false
//
}
//
}
}
}
},
{
"path"
:
"pages/data/jump-view/index"
,
"style"
:
{
//
"navigationBarTitleText"
:
"数据"
}
}
}
],
],
"tabBar"
:
{
"tabBar"
:
{
...
...
pages/data/index.vue
View file @
71df02fd
This diff is collapsed.
Click to expand it.
pages/login/index.vue
View file @
71df02fd
...
@@ -90,9 +90,30 @@
...
@@ -90,9 +90,30 @@
})
})
// #endif
// #endif
// #ifdef H5
// #ifdef H5
this
.
$api
.
login
(
this
.
userName
,
this
.
password
).
then
(
res
=>
{
console
.
log
(
JSON
.
stringify
(
data
))
let
data
=
res
.
data
.
data
if
(
data
)
{
// console.log(data.LoginIsSuccess)
if
(
data
.
LoginIsSuccess
)
{
console
.
log
(
JSON
.
stringify
(
data
))
uni
.
setStorageSync
(
'userInfo1'
,
data
);
this
.
$toast
.
toast
(
'登录成功'
)
this
.
$api
.
loginInOutRecord
(
data
.
SCMSUserName
,
'网页登录'
).
then
(
res
=>
{
console
.
log
(
'登录成功'
)
uni
.
switchTab
({
uni
.
switchTab
({
url
:
"/pages/monitoring/index"
url
:
"/pages/monitoring/index"
})
})
})
}
else
{
this
.
$toast
.
toast
(
'登录失败'
)
}
}
}).
catch
(
error
=>
{
this
.
$toast
.
toast
(
error
)
})
// #endif
// #endif
},
},
...
...
pages/monitoring/index.vue
View file @
71df02fd
...
@@ -135,24 +135,7 @@
...
@@ -135,24 +135,7 @@
console
.
log
(
err
)
console
.
log
(
err
)
})
})
},
},
//建立WebSocket连接
getWebSocket
()
{
uni
.
connectSocket
({
url
:
'ws://api/hubs/chart'
,
//仅为示例,并非真实接口地址
success
:
(
res
=>
{
// console.log('res==>' + JSON.stringify(res))
}),
complete
:
(
res
)
=>
{
// console.log('res==>'+JSON.stringify(res))
}
});
uni
.
onSocketMessage
(
function
(
res
)
{
console
.
log
(
'收到服务器内容:'
+
res
.
data
);
});
}
},
},
mounted
()
{
mounted
()
{
...
...
pages/monitoring/monitoring-view/index.vue
View file @
71df02fd
This diff is collapsed.
Click to expand it.
pages/working/index.vue
View file @
71df02fd
<!-- 工作页面 -->
<!-- 工作页面 -->
<
template
>
<
template
>
<view></view>
<view
@
click=
"test"
style=
"height: 50px;background-color: #007AFF;"
>
<button></button>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
timer1
:
null
}
},
methods
:
{
test
()
{
clearInterval
(
this
.
timer1
)
this
.
timer1
=
null
this
.
timer1
=
setInterval
(()
=>
{
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
// console.log(JSON.stringify(i))
let
data
=
{
"filterControls"
:
[{
"value1"
:
"2020-8-1"
,
"controlType"
:
"AssociateDateTimePicker"
,
"pickerType"
:
"BeginTime"
,
"name"
:
"a1"
},
{
"value1"
:
"2021-9-1"
,
"controlType"
:
"AssociateDateTimePicker"
,
"pickerType"
:
"EndTime"
,
"name"
:
"a2"
}
],
"variables"
:
[{
"name"
:
"EJZ2"
,
"digit"
:
5
},
{
"name"
:
"EJZ1"
,
"digit"
:
5
},
{
"name"
:
"EJZ3"
,
"digit"
:
5
},
{
"name"
:
"EJZ4"
,
"digit"
:
5
}
],
"sourceType"
:
"History"
,
"historySettings"
:
{
"pre"
:
40
,
"valueMethod"
:
"Sum"
,
"xAxisSetting"
:
"Time"
}
}
this
.
$api
.
getQueryMulitySource
(
data
).
then
(
res
=>
{
// console.log(JSON.stringify(res))
}).
catch
(
err
=>
{
// console.log('err=>'+JSON.stringify(err))
})
}
},
1000
)
}
},
beforeDestroy
()
{
clearInterval
(
this
.
timer1
)
},
onShow
()
{
console
.
log
(
22
)
// this.test()
},
onHide
()
{
console
.
log
(
JSON
.
stringify
(
this
.
timer1
))
if
(
this
.
timer1
){
clearInterval
(
Number
(
this
.
timer1
))
this
.
timer1
=
null
}
}
},
},
onLoad
()
{
onLoad
()
{
...
...
request/api.js
View file @
71df02fd
...
@@ -107,7 +107,28 @@ function getChartQuery(data){
...
@@ -107,7 +107,28 @@ function getChartQuery(data){
return
api
.
baseRequest
(
`/api/chart/query`
,
"POST"
,
1
,
data
)
return
api
.
baseRequest
(
`/api/chart/query`
,
"POST"
,
1
,
data
)
}
}
//获取app制作画面数据
function
getView
(
projectName
,
viewName
){
return
api
.
baseRequest
(
`/api/view/getview?projectName=
${
projectName
}
&viewName=
${
viewName
}
`
,
"GET"
,
0
)
}
//获取app制作画面页面图片
function
getAppDataImage
(
projectName
,
viewName
,
imageName
){
return
api
.
baseRequest
(
`/api/view/GetImage?projectName=
${
projectName
}
&viewName=
${
viewName
}
&imageName=
${
imageName
}
`
,
"GET"
,
0
)
}
//获取全局属性
function
getGlobalProps
(
projectName
){
return
api
.
baseRequest
(
`/api/view/GetGlobalProps?projectName=
${
projectName
}
`
,
"GET"
,
0
)
}
//数据选项卡历史、实时、统计、外部数据请求
function
getQueryMulitySource
(
data
){
return
api
.
baseRequest
(
`/api/Data/QueryMulitySource`
,
"POST"
,
1
,
data
)
}
//获取开始时间
function
getStartTime
(
time
,
recent
,
setting
){
return
api
.
baseRequest
(
`/api/Data/GetTime?endTime=
${
time
}
&recent=
${
recent
}
&setting=
${
setting
}
`
,
"GET"
,
1
)
}
...
@@ -131,7 +152,13 @@ export default {
...
@@ -131,7 +152,13 @@ export default {
executeScript
,
executeScript
,
getRelayEchart
,
getRelayEchart
,
getChartControlNames
,
getChartControlNames
,
getChartQuery
getChartQuery
,
getView
,
getAppDataImage
,
getGlobalProps
,
getQueryMulitySource
,
getStartTime
}
}
request/request.js
View file @
71df02fd
import
$toast
from
'../js/toast.js'
// 全局请求封装
// 全局请求封装
const
token
=
'自己的token令牌,最好读取缓存中的'
const
token
=
'自己的token令牌,最好读取缓存中的'
...
@@ -7,7 +8,7 @@ const apiUrl = 'http://192.168.1.68:8804' //app ip
...
@@ -7,7 +8,7 @@ const apiUrl = 'http://192.168.1.68:8804' //app ip
const
apiUrl1
=
'http://192.168.1.68:8806'
//web ip
const
apiUrl1
=
'http://192.168.1.68:8806'
//web ip
//#endif
//#endif
//#ifndef APP-PLUS
//#ifndef APP-PLUS
const
apiUrl
=
'http://192.168.1.68:8806
'
const
apiUrl
1
=
'/apv
'
//#endif
//#endif
// const apiUrl = 'http://localhost:5000'
// const apiUrl = 'http://localhost:5000'
...
@@ -31,9 +32,11 @@ const baseRequest = (url,method,type,data) => {
...
@@ -31,9 +32,11 @@ const baseRequest = (url,method,type,data) => {
newApiUrl
=
serviceAddress
+
url
//app ip
newApiUrl
=
serviceAddress
+
url
//app ip
}
else
if
(
type
==
1
){
}
else
if
(
type
==
1
){
newApiUrl
=
apiAddress
+
url
//web ip
newApiUrl
=
apiAddress
+
url
//web ip
}
else
{
}
else
{
newApiUrl
=
url
//完整路径
newApiUrl
=
url
//完整路径
}
}
console
.
log
(
'url1=>'
+
newApiUrl
)
console
.
log
(
'url1=>'
+
newApiUrl
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
uni
.
request
({
...
@@ -43,6 +46,7 @@ const baseRequest = (url,method,type,data) => {
...
@@ -43,6 +46,7 @@ const baseRequest = (url,method,type,data) => {
header
:
{
header
:
{
// 'token': token
// 'token': token
},
},
sslVerify
:
false
,
success
(
res
)
{
success
(
res
)
{
// console.log(JSON.stringify(res))
// console.log(JSON.stringify(res))
//响应成功拦截
//响应成功拦截
...
@@ -50,6 +54,8 @@ const baseRequest = (url,method,type,data) => {
...
@@ -50,6 +54,8 @@ const baseRequest = (url,method,type,data) => {
},
},
fail
(
err
)
{
fail
(
err
)
{
//响应失败拦截
//响应失败拦截
// console.log(22+JSON.stringify(err))
$toast
.
toast
(
err
.
errMsg
)
reject
(
err
)
reject
(
err
)
},
},
complete
(
res
)
{
complete
(
res
)
{
...
...
store/index.js
View file @
71df02fd
...
@@ -8,8 +8,9 @@ const store = new Vuex.Store({
...
@@ -8,8 +8,9 @@ const store = new Vuex.Store({
state
:
{
//存放状态
state
:
{
//存放状态
routerInfo
:
''
,
routerInfo
:
''
,
systemInfo
:
''
,
//系统信息
systemInfo
:
''
,
//系统信息
GetProjectResourceBaseUrl
:
'/api/view/GetProjectResource'
,
GetProjectResourceBaseUrl
:
'/api/view/GetProjectResource'
,
baseUrl
:
'http://192.168.1.68:8806'
GetViewImgResourceBaseUrl
:
'/api/view/GetImage'
,
//获取app制作图片
baseUrl
:
'http://192.168.1.68:8806'
},
},
actions
:
{
actions
:
{
//扫码获取信息
//扫码获取信息
...
@@ -21,34 +22,32 @@ const store = new Vuex.Store({
...
@@ -21,34 +22,32 @@ const store = new Vuex.Store({
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// #ifdef APP-PLUS
// #ifdef APP-PLUS
uni
.
scanCode
({
uni
.
scanCode
({
// onlyFromCamera: true,
scanType
:
[
'qrCode'
,
'barCode'
],
scanType
:
[
'qrCode'
,
'barCode'
],
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// console.log(333)
// console.log(333)
let
projectName
=
res
.
result
let
projectName
=
res
.
result
// console.log(22+JSON.stringify(res))
// console.log(22 + JSON.stringify(res))
if
(
projectName
)
{
if
(
projectName
){
$api
.
getAppInfo
(
projectName
).
then
(
res
=>
{
// console.log(88+JSON.stringify(projectName))
console
.
log
(
88
+
JSON
.
stringify
(
res
.
data
.
data
))
$api
.
getAppInfo
(
projectName
).
then
(
res
=>
{
console
.
log
(
88
+
JSON
.
stringify
(
res
.
data
.
data
))
const
code
=
res
.
data
.
code
const
code
=
res
.
data
.
code
// console.log(JSON.stringify( res.data.data))
// console.log(JSON.stringify( res.data.data))
if
(
code
==
1
)
{
if
(
code
==
1
)
{
$toast
.
toast
(
res
.
data
.
msg
)
$toast
.
toast
(
res
.
data
.
msg
)
}
else
{
}
else
{
uni
.
setStorageSync
(
'projectInfo'
,
res
.
data
.
data
);
uni
.
setStorageSync
(
'projectInfo'
,
res
.
data
.
data
);
resolve
(
res
)
resolve
(
res
)
}
}
if
(
res
.
statusCode
==
500
)
{
if
(
res
.
statusCode
==
500
)
{
$toast
.
toast
(
'
扫码
失败'
)
$toast
.
toast
(
'
获取工程信息
失败'
)
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
'err'
+
JSON
.
stringify
(
res
))
console
.
log
(
'err'
+
JSON
.
stringify
(
err
))
$toast
.
toast
(
'
扫码
失败'
)
$toast
.
toast
(
'
获取工程信息
失败'
)
})
})
}
else
{
}
else
{
// console.log(444)
// console.log(444)
$toast
.
toast
(
'扫码失败'
)
$toast
.
toast
(
'扫码失败'
)
}
}
...
@@ -64,16 +63,17 @@ const store = new Vuex.Store({
...
@@ -64,16 +63,17 @@ const store = new Vuex.Store({
}
}
});
});
// uni.redirectTo({
// url: "/pages/login/index"
// })
// #endif
// #endif
// #ifndef APP-PLUS || APP-NVUE
// #ifndef APP-PLUS || APP-NVUE
$api
.
getAppInfo
(
'test'
).
then
(
res
=>
{
uni
.
removeStorageSync
(
'projectInfo'
);
let
projectName
=
'http://192.168.1.72:5000/api/view/GetAppInfo?projectName=测试项目'
$api
.
getAppInfo
(
projectName
).
then
(
res
=>
{
const
code
=
res
.
data
.
code
const
code
=
res
.
data
.
code
if
(
code
==
1
)
{
if
(
code
==
1
)
{
$toast
.
toast
(
res
.
data
.
msg
)
$toast
.
toast
(
res
.
data
.
msg
)
}
else
{
}
else
{
console
.
log
(
JSON
.
stringify
(
res
.
data
.
data
))
uni
.
setStorageSync
(
'projectInfo'
,
res
.
data
.
data
);
uni
.
setStorageSync
(
'projectInfo'
,
res
.
data
.
data
);
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
"/pages/login/index"
url
:
"/pages/login/index"
...
@@ -81,11 +81,11 @@ const store = new Vuex.Store({
...
@@ -81,11 +81,11 @@ const store = new Vuex.Store({
resolve
(
res
)
resolve
(
res
)
}
}
if
(
res
.
statusCode
==
500
)
{
if
(
res
.
statusCode
==
500
)
{
$toast
.
toast
(
'扫码失败'
)
$toast
.
toast
(
'扫码失败'
)
}
}
}).
catch
(
res
=>
{
}).
catch
(
res
=>
{
$toast
.
toast
(
'扫码失败'
)
$toast
.
toast
(
'扫码失败'
)
})
})
...
@@ -96,8 +96,11 @@ const store = new Vuex.Store({
...
@@ -96,8 +96,11 @@ const store = new Vuex.Store({
},
},
//权限请求
//权限请求
jurisdictionShow
(
context
,
payload
)
{
jurisdictionShow
(
context
,
payload
)
{
const
{
item
,
dataId
}
=
payload
const
{
item
,
dataId
}
=
payload
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
userinfoID
=
''
let
userinfoID
=
''
// console.log(uni.getStorageSync('userInfo1'))
// console.log(uni.getStorageSync('userInfo1'))
...
@@ -116,6 +119,8 @@ const store = new Vuex.Store({
...
@@ -116,6 +119,8 @@ const store = new Vuex.Store({
reject
(
res
.
data
)
reject
(
res
.
data
)
}
}
}).
catch
(
err
=>
{
reject
(
res
.
data
)
})
})
})
})
...
...
unpackage/dist/dev/app-plus/__uniappchooselocation.js
View file @
71df02fd
This diff is collapsed.
Click to expand it.
unpackage/dist/dev/app-plus/app-config-service.js
View file @
71df02fd
var
isReady
=
false
;
var
onReadyCallbacks
=
[];
var
isReady
=
false
;
var
onReadyCallbacks
=
[];
var
isServiceReady
=
false
;
var
onServiceReadyCallbacks
=
[];
var
isServiceReady
=
false
;
var
onServiceReadyCallbacks
=
[];
var
__uniConfig
=
{
"pages"
:[
"pages/scan-code/index"
,
"pages/login/index"
,
"pages/monitoring/index"
,
"pages/data/index"
,
"pages/working/index"
,
"pages/message/index"
,
"pages/my/index"
,
"pages/monitoring/monitoring-view/index"
,
"pages/scan-code/app-scan/index"
],
"window"
:{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
"cms"
,
"navigationBarBackgroundColor"
:
"#00B2A5"
,
"backgroundColor"
:
"#f2f2f2"
,
"pageOrientation"
:
"portrait-primary"
},
"tabBar"
:{
"color"
:
"#2D2D2D"
,
"selectedColor"
:
"#2D2D2D"
,
"borderStyle"
:
"rgba(220, 220, 220, 0.24)"
,
"backgroundColor"
:
"#ffffff"
,
"height"
:
"50px"
,
"fontSize"
:
"10px"
,
"iconWidth"
:
"22px"
,
"spacing"
:
"2px"
,
"list"
:[{
"pagePath"
:
"pages/monitoring/index"
,
"iconPath"
:
"static/img1/jiankong.png"
,
"selectedIconPath"
:
"static/img1/jiankong1.png"
,
"text"
:
"监控"
},{
"pagePath"
:
"pages/data/index"
,
"iconPath"
:
"static/img1/shuju.png"
,
"selectedIconPath"
:
"static/img1/shuju1.png"
,
"text"
:
"数据"
},{
"pagePath"
:
"pages/working/index"
,
"iconPath"
:
"static/img1/gongzuo.png"
,
"selectedIconPath"
:
"static/img1/gongzuo1.png"
,
"text"
:
"工作"
},{
"pagePath"
:
"pages/message/index"
,
"iconPath"
:
"static/img1/xiaoxi.png"
,
"selectedIconPath"
:
"static/img1/xiaoxi1.png"
,
"text"
:
"消息"
,
"backgroundColor"
:
"#000"
},{
"pagePath"
:
"pages/my/index"
,
"iconPath"
:
"static/img1/wo.png"
,
"selectedIconPath"
:
"static/img1/wo1.png"
,
"text"
:
"我的"
}]},
"nvueCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"renderer"
:
"auto"
,
"splashscreen"
:{
"alwaysShowBeforeRender"
:
true
,
"autoclose"
:
false
},
"appname"
:
"demo2"
,
"compilerVersion"
:
"3.1.18
"
,
"entryPagePath"
:
"pages/scan-code/index"
,
"networkTimeout"
:{
"request"
:
60000
,
"connectSocket"
:
60000
,
"uploadFile"
:
60000
,
"downloadFile"
:
60000
}};
var
__uniConfig
=
{
"pages"
:[
"pages/scan-code/index"
,
"pages/login/index"
,
"pages/monitoring/index"
,
"pages/data/index"
,
"pages/working/index"
,
"pages/message/index"
,
"pages/my/index"
,
"pages/monitoring/monitoring-view/index"
,
"pages/scan-code/app-scan/index"
,
"pages/data/jump-view/index"
],
"window"
:{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
"cms"
,
"navigationBarBackgroundColor"
:
"#00B2A5"
,
"backgroundColor"
:
"#f2f2f2"
,
"pageOrientation"
:
"portrait-primary"
},
"tabBar"
:{
"color"
:
"#2D2D2D"
,
"selectedColor"
:
"#2D2D2D"
,
"borderStyle"
:
"rgba(220, 220, 220, 0.24)"
,
"backgroundColor"
:
"#ffffff"
,
"height"
:
"50px"
,
"fontSize"
:
"10px"
,
"iconWidth"
:
"22px"
,
"spacing"
:
"2px"
,
"list"
:[{
"pagePath"
:
"pages/monitoring/index"
,
"iconPath"
:
"static/img1/jiankong.png"
,
"selectedIconPath"
:
"static/img1/jiankong1.png"
,
"text"
:
"监控"
},{
"pagePath"
:
"pages/data/index"
,
"iconPath"
:
"static/img1/shuju.png"
,
"selectedIconPath"
:
"static/img1/shuju1.png"
,
"text"
:
"数据"
},{
"pagePath"
:
"pages/working/index"
,
"iconPath"
:
"static/img1/gongzuo.png"
,
"selectedIconPath"
:
"static/img1/gongzuo1.png"
,
"text"
:
"工作"
},{
"pagePath"
:
"pages/message/index"
,
"iconPath"
:
"static/img1/xiaoxi.png"
,
"selectedIconPath"
:
"static/img1/xiaoxi1.png"
,
"text"
:
"消息"
,
"backgroundColor"
:
"#000"
},{
"pagePath"
:
"pages/my/index"
,
"iconPath"
:
"static/img1/wo.png"
,
"selectedIconPath"
:
"static/img1/wo1.png"
,
"text"
:
"我的"
}]},
"nvueCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"renderer"
:
"auto"
,
"splashscreen"
:{
"alwaysShowBeforeRender"
:
true
,
"autoclose"
:
false
},
"appname"
:
"demo2"
,
"compilerVersion"
:
"3.1.22
"
,
"entryPagePath"
:
"pages/scan-code/index"
,
"networkTimeout"
:{
"request"
:
60000
,
"connectSocket"
:
60000
,
"uploadFile"
:
60000
,
"downloadFile"
:
60000
}};
var
__uniRoutes
=
[{
"path"
:
"/pages/scan-code/index"
,
"meta"
:{
"isQuit"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"扫码"
,
"titleNView"
:
false
}},{
"path"
:
"/pages/login/index"
,
"meta"
:{},
"window"
:{
"titleNView"
:
false
}},{
"path"
:
"/pages/monitoring/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"监控"
}},{
"path"
:
"/pages/data/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"数据"
}},{
"path"
:
"/pages/working/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"工作"
}},{
"path"
:
"/pages/message/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"消息"
}},{
"path"
:
"/pages/my/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"我的"
}},{
"path"
:
"/pages/monitoring/monitoring-view/index"
,
"meta"
:{},
"window"
:{
"titleNView"
:
false
,
"bounce"
:
false
}},{
"path"
:
"/pages/scan-code/app-scan/index"
,
"meta"
:{
"isNVue"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"扫码"
}}];
var
__uniRoutes
=
[{
"path"
:
"/pages/scan-code/index"
,
"meta"
:{
"isQuit"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"扫码"
,
"titleNView"
:
false
}},{
"path"
:
"/pages/login/index"
,
"meta"
:{},
"window"
:{
"titleNView"
:
false
}},{
"path"
:
"/pages/monitoring/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"监控"
}},{
"path"
:
"/pages/data/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"数据"
}},{
"path"
:
"/pages/working/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"工作"
}},{
"path"
:
"/pages/message/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"消息"
}},{
"path"
:
"/pages/my/index"
,
"meta"
:{
"isQuit"
:
true
,
"isTabBar"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"我的"
}},{
"path"
:
"/pages/monitoring/monitoring-view/index"
,
"meta"
:{},
"window"
:{
"titleNView"
:
false
,
"bounce"
:
false
}},{
"path"
:
"/pages/scan-code/app-scan/index"
,
"meta"
:{
"isNVue"
:
true
},
"window"
:{
"navigationBarTitleText"
:
"扫码"
}}
,{
"path"
:
"/pages/data/jump-view/index"
,
"meta"
:{},
"window"
:{}}
];
__uniConfig
.
onReady
=
function
(
callback
){
if
(
__uniConfig
.
ready
){
callback
()}
else
{
onReadyCallbacks
.
push
(
callback
)}};
Object
.
defineProperty
(
__uniConfig
,
"ready"
,{
get
:
function
(){
return
isReady
},
set
:
function
(
val
){
isReady
=
val
;
if
(
!
isReady
){
return
}
const
callbacks
=
onReadyCallbacks
.
slice
(
0
);
onReadyCallbacks
.
length
=
0
;
callbacks
.
forEach
(
function
(
callback
){
callback
()})}});
__uniConfig
.
onReady
=
function
(
callback
){
if
(
__uniConfig
.
ready
){
callback
()}
else
{
onReadyCallbacks
.
push
(
callback
)}};
Object
.
defineProperty
(
__uniConfig
,
"ready"
,{
get
:
function
(){
return
isReady
},
set
:
function
(
val
){
isReady
=
val
;
if
(
!
isReady
){
return
}
const
callbacks
=
onReadyCallbacks
.
slice
(
0
);
onReadyCallbacks
.
length
=
0
;
callbacks
.
forEach
(
function
(
callback
){
callback
()})}});
__uniConfig
.
onServiceReady
=
function
(
callback
){
if
(
__uniConfig
.
serviceReady
){
callback
()}
else
{
onServiceReadyCallbacks
.
push
(
callback
)}};
Object
.
defineProperty
(
__uniConfig
,
"serviceReady"
,{
get
:
function
(){
return
isServiceReady
},
set
:
function
(
val
){
isServiceReady
=
val
;
if
(
!
isServiceReady
){
return
}
const
callbacks
=
onServiceReadyCallbacks
.
slice
(
0
);
onServiceReadyCallbacks
.
length
=
0
;
callbacks
.
forEach
(
function
(
callback
){
callback
()})}});
__uniConfig
.
onServiceReady
=
function
(
callback
){
if
(
__uniConfig
.
serviceReady
){
callback
()}
else
{
onServiceReadyCallbacks
.
push
(
callback
)}};
Object
.
defineProperty
(
__uniConfig
,
"serviceReady"
,{
get
:
function
(){
return
isServiceReady
},
set
:
function
(
val
){
isServiceReady
=
val
;
if
(
!
isServiceReady
){
return
}
const
callbacks
=
onServiceReadyCallbacks
.
slice
(
0
);
onServiceReadyCallbacks
.
length
=
0
;
callbacks
.
forEach
(
function
(
callback
){
callback
()})}});
service
.
register
(
"uni-app-config"
,{
create
(
a
,
b
,
c
){
if
(
!
__uniConfig
.
viewport
){
var
d
=
b
.
weex
.
config
.
env
.
scale
,
e
=
b
.
weex
.
config
.
env
.
deviceWidth
,
f
=
Math
.
ceil
(
e
/
d
);
Object
.
assign
(
__uniConfig
,{
viewport
:
f
,
defaultFontSize
:
Math
.
round
(
f
/
20
)})}
return
{
instance
:{
__uniConfig
:
__uniConfig
,
__uniRoutes
:
__uniRoutes
,
global
:
void
0
,
window
:
void
0
,
document
:
void
0
,
frames
:
void
0
,
self
:
void
0
,
location
:
void
0
,
navigator
:
void
0
,
localStorage
:
void
0
,
history
:
void
0
,
Caches
:
void
0
,
screen
:
void
0
,
alert
:
void
0
,
confirm
:
void
0
,
prompt
:
void
0
,
fetch
:
void
0
,
XMLHttpRequest
:
void
0
,
WebSocket
:
void
0
,
webkit
:
void
0
,
print
:
void
0
}}}});
service
.
register
(
"uni-app-config"
,{
create
(
a
,
b
,
c
){
if
(
!
__uniConfig
.
viewport
){
var
d
=
b
.
weex
.
config
.
env
.
scale
,
e
=
b
.
weex
.
config
.
env
.
deviceWidth
,
f
=
Math
.
ceil
(
e
/
d
);
Object
.
assign
(
__uniConfig
,{
viewport
:
f
,
defaultFontSize
:
Math
.
round
(
f
/
20
)})}
return
{
instance
:{
__uniConfig
:
__uniConfig
,
__uniRoutes
:
__uniRoutes
,
global
:
void
0
,
window
:
void
0
,
document
:
void
0
,
frames
:
void
0
,
self
:
void
0
,
location
:
void
0
,
navigator
:
void
0
,
localStorage
:
void
0
,
history
:
void
0
,
Caches
:
void
0
,
screen
:
void
0
,
alert
:
void
0
,
confirm
:
void
0
,
prompt
:
void
0
,
fetch
:
void
0
,
XMLHttpRequest
:
void
0
,
WebSocket
:
void
0
,
webkit
:
void
0
,
print
:
void
0
}}}});
View file @
71df02fd
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment