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
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
713 additions
and
410 deletions
+713
-410
uni.scss
common/uni.scss
+6
-2
toast.js
js/toast.js
+6
-0
manifest.json
manifest.json
+105
-104
pages.json
pages.json
+6
-0
index.vue
pages/data/index.vue
+268
-52
index.vue
pages/login/index.vue
+23
-2
index.vue
pages/monitoring/index.vue
+1
-18
index.vue
pages/monitoring/monitoring-view/index.vue
+135
-179
index.vue
pages/working/index.vue
+81
-9
api.js
request/api.js
+28
-1
request.js
request/request.js
+7
-1
index.js
store/index.js
+43
-38
__uniappchooselocation.js
unpackage/dist/dev/app-plus/__uniappchooselocation.js
+2
-2
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
...
...
@@ -11,4 +11,8 @@
.base-style
{
position
:
absolute
;
}
\ No newline at end of file
}
.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) => {
success
:
success
})
}
const
defaultLoading
=
()
=>
{
return
uni
.
showLoading
({
title
:
"加载中"
});
}
export
default
{
toast
:
toast
,
showModal
:
showModal
,
defaultLoading
:
defaultLoading
// successToast: successToast,
// showLoading: showLoading,
// tipLoading: tipLoading,
...
...
manifest.json
View file @
71df02fd
{
"name"
:
"demo2"
,
"appid"
:
"__UNI__630CE47"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
},
/*
模块配置
*/
"modules"
:
{},
/*
应用发布信息
*/
"distribute"
:
{
/*
android打包配置
*/
"android"
:
{
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
]
},
/*
ios打包配置
*/
"ios"
:
{},
/*
SDK配置
*/
"sdkConfigs"
:
{}
}
},
/*
快应用特有相关
*/
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
""
,
"setting"
:
{
"urlCheck"
:
false
},
"usingComponents"
:
true
},
"mp-alipay"
:
{
"usingComponents"
:
true
},
"mp-baidu"
:
{
"usingComponents"
:
true
},
"mp-toutiao"
:
{
"usingComponents"
:
true
},
"uniStatistics"
:
{
"enable"
:
false
},
"orientation"
:
[
//竖屏正方向
"portrait-primary"
,
//竖屏反方向
"portrait-secondary"
,
//横屏正方向
"landscape-primary"
,
//横屏反方向
"landscape-secondary"
,
//自然方向
"default"
],
"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"
//
}
//
}
//
}
//
}
}
"name"
:
"demo2"
,
"appid"
:
"__UNI__630CE47"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
},
/*
模块配置
*/
"modules"
:
{},
/*
应用发布信息
*/
"distribute"
:
{
/*
android打包配置
*/
"android"
:
{
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
]
},
/*
ios打包配置
*/
"ios"
:
{},
/*
SDK配置
*/
"sdkConfigs"
:
{
"ad"
:
{}
}
}
},
/*
快应用特有相关
*/
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
""
,
"setting"
:
{
"urlCheck"
:
false
},
"usingComponents"
:
true
},
"mp-alipay"
:
{
"usingComponents"
:
true
},
"mp-baidu"
:
{
"usingComponents"
:
true
},
"mp-toutiao"
:
{
"usingComponents"
:
true
},
"uniStatistics"
:
{
"enable"
:
false
},
"orientation"
:
[
//竖屏正方向
"portrait-primary"
,
//竖屏反方向
"portrait-secondary"
,
//横屏正方向
"landscape-primary"
,
//横屏反方向
"landscape-secondary"
,
//自然方向
"default"
],
"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"
//
}
//
}
//
}
//
}
pages.json
View file @
71df02fd
...
...
@@ -68,6 +68,12 @@
//
"titleNView"
:
false
//
}
}
},
{
"path"
:
"pages/data/jump-view/index"
,
"style"
:
{
//
"navigationBarTitleText"
:
"数据"
}
}
],
"tabBar"
:
{
...
...
pages/data/index.vue
View file @
71df02fd
<!-- 数据页面 -->
<
template
>
<view>
<view
class=
"data-style"
v-if=
"isShowCompons"
:style=
"mainStyleConfig"
>
<rectangular
ref=
"rectangular"
:componentsData=
"componentsData"
></rectangular>
<kpi
ref=
"kpi"
:componentsData=
"componentsData"
></kpi>
<text-item
ref=
"textItem"
:componentsData=
"componentsData"
></text-item>
<list-item
ref=
"listItem"
:componentsData=
"componentsData"
></list-item>
<view
style=
"overflow: auto;"
>
<view
class=
"data-style"
v-if=
"isShowCompons"
v-for=
"(item,index) in componentsChildren"
:key=
"index"
:style=
"mainStyleConfig"
>
<rectangular
v-if=
"item.type == 'rectangular'"
:ref=
"'rectangular'+index"
:componentsData=
"item"
>
</rectangular>
<kpi
v-if=
"item.type == 'kpi'"
:ref=
"item.type+index"
:componentsData=
"item"
:index=
"index"
></kpi>
<text-item
v-if=
"item.type == 'text'"
:ref=
"item.type+index"
:componentsData=
"item"
:index=
"index"
></text-item>
<list-item
v-if=
"item.type == 'list'"
:ref=
"item.type+index"
:index=
"index"
:componentsData=
"item"
></list-item>
<progress-bar
v-if=
"item.type == 'progressBar'"
:ref=
"item.type+index"
:index=
"index"
:componentsData=
"item"
></progress-bar>
<pie-echart
v-if=
"item.type == 'chartPie'"
:ref=
"item.type+index"
:componentsData=
"item"
:index=
"index"
>
</pie-echart>
<line-bar-echart
v-if=
"item.type == 'chartLineBar'"
:ref=
"item.type+index"
:index=
"index"
:componentsData=
"item"
></line-bar-echart>
<banner
v-if=
"item.type == 'banner'"
:ref=
"item.type+index"
:componentsData=
"item"
:index=
"index"
:homeViewName=
"homeViewName"
></banner>
<card-list
v-if=
"item.type == 'cardList'"
:ref=
"item.type+index"
:index=
"index"
:componentsData=
"item"
@
jump-view=
"jumpView"
>
</card-list>
<tabs
v-if=
"item.type == 'tabs'"
:ref=
"item.type+index"
:componentsData=
"item"
:index=
"index"
@
select-tab-fun=
"selectTabFun"
class=
"tabs-box"
></tabs>
<img-item
v-if=
"item.type == 'img'"
:ref=
"item.type+index"
:componentsData=
"item"
:index=
"index"
:homeViewName=
"homeViewName"
></img-item>
<!--
<div
data-v-3873ec1c=
""
class=
"pressButton_box"
>
<button
@
click=
"test"
>
fhsjsh
</button>
</div>
-->
</view>
</view>
</
template
>
...
...
@@ -22,95 +38,295 @@
import
Kpi
from
'../data-conponent/kpi.vue'
import
TextItem
from
'../data-conponent/text.vue'
import
ListItem
from
'../data-conponent/list.vue'
import
ProgressBar
from
'../data-conponent/progressBar.vue'
import
PieEchart
from
'../data-conponent/pieEchart.vue'
import
LineBarEchart
from
'../data-conponent/lineBarEchart.vue'
import
Banner
from
'../data-conponent/banner.vue'
import
CardList
from
'../data-conponent/cardList.vue'
import
Tabs
from
'../data-conponent/tabs.vue'
import
ImgItem
from
'../data-conponent/img.vue'
export
default
{
components
:
{
Rectangular
,
//矩形组件
Kpi
,
//kpi组件
TextItem
,
//文字组件
ListItem
,
//列表组件
Rectangular
,
//矩形组件1
Kpi
,
//kpi组件2
TextItem
,
//文字组件3
ListItem
,
//列表组件4
ProgressBar
,
//进度条控件5
PieEchart
,
//饼图控件6
LineBarEchart
,
//折线图表控件7
Banner
,
//Banner控件8
CardList
,
//卡片列表9
Tabs
,
//选项卡组件10
ImgItem
,
//图片控件
},
data
()
{
return
{
isShowCompons
:
false
,
componentsData
:
null
,
//组件数据
componentsChildren
:
[],
mainStyleConfig
:
null
,
//页面样式
homeViewName
:
''
,
projectName
:
''
,
showTimer
:
0
,
//是否请求轮询接口
newTagDataArr
:
''
,
//实时变量数据,
tagArr
:
[],
//控件绑定变量集合
timer1
:
null
,
//实时定时轮询
timer2
:
null
,
//历史,统计、外部轮询
realTimeList
:
[],
//实时组件列表
historyExternalList
:
[],
//历史、外部、统计组件列表
tabsList
:[],
//选项卡列表
// children:null
}
},
created
()
{
this
.
componentsData
=
jsonData
let
_this
=
this
// console.log(JSON.stringify(this.componentsData))
if
(
this
.
componentsData
)
{
//设置标题
uni
.
setNavigationBarTitle
({
title
:
_this
.
componentsData
.
pageTitle
});
this
.
setMainStyle
()
// this.componentsData = jsonData
// this.getViewJson()
}
},
methods
:
{
jumpView
(){
this
.
eliminateTimer
()
console
.
log
(
'主页面'
)
},
//选项卡点击 dataType-数据类型 associatedComponent-绑定控件ID tabData点击选项卡筛选数据
selectTabFun
(
dataType
,
associatedComponent
,
tabData
)
{
console
.
log
(
tabData
)
// if (dataType === '历史数据') {
this
.
$nextTick
(
function
()
{
let
filter
=
tabData
.
filter
[
0
]
let
content
=
filter
.
content
if
(
dataType
==
'外部数据'
||
dataType
==
'统计数据'
){
content
=
tabData
.
filter
}
this
.
componentsChildren
.
forEach
((
item
,
index
)
=>
{
for
(
let
i
=
0
;
i
<
associatedComponent
.
length
;
i
++
)
{
if
(
associatedComponent
[
i
].
id
==
item
.
id
)
{
let
refName
=
item
.
type
+
index
this
.
$refs
[
refName
][
0
].
tabContent
=
content
this
.
$refs
[
refName
][
0
].
getHistoryExternalData
()
}
}
})
})
},
//获取页面数据
getViewJson
()
{
let
projectInfo
=
uni
.
getStorageSync
(
'projectInfo'
)
console
.
log
(
JSON
.
stringify
(
projectInfo
))
this
.
homeViewName
=
projectInfo
.
homeViewName
if
(
this
.
homeViewName
.
indexOf
(
"
\
\"
)>-1){
this.homeViewName =this.homeViewName.substring(this.homeViewName.indexOf("
\\
")+1);
}
// this.homeViewName = '标准组件'
// console.log(JSON.stringify(projectInfo))
this.projectName = projectInfo.projectName
this.tagArr = []
this.realTimeList = []
this.historyExternalList = []
this.componentsData = null
this.componentsChildren = []
this.$api.getView(this.projectName, `${this.homeViewName}`).then(res => {
if (res.data) {
// console.log(JSON.stringify(res.data))
this.componentsData = res.data
let _this = this
let realTime = 0
let showHistoryExternal = 0
if (this.componentsData) {
this.componentsChildren = this.componentsData.children
let children = this.componentsData.children
this.realTimeList = []
for (let i = 0; i < children.length; i++) {
let componentConfig = children[i].componentConfig
if (componentConfig) {
if (componentConfig.dataset) {
let dataset = componentConfig.dataset
if (dataset.dataType == '实时数据') {
realTime = 1
let refName = children[i].type + i
this.realTimeList.push(refName)
} else if(dataset.dataType == '历史数据' || dataset.dataType == '统计数据' || dataset.dataType == '外部数据'){
showHistoryExternal = 1
let refName = children[i].type + i
this.historyExternalList.push(refName)
}
}
//获取实时数值变量
if (componentConfig.numerical) {
let numerical = componentConfig.numerical
numerical.forEach((item, index) => {
this.tagArr.push(item.variable)
})
}
}
if(children[i].type == 'tabs'){
this.tabsList.push(children[i].type+i)
}
}
//设置标题
// console.log(23)
uni.setNavigationBarTitle({
title: _this.componentsData.pageTitle
});
this.setMainStyle()
//是否要实时轮询
if (realTime == 1) {
// let tagArrList =
this.tagArr = [...new Set(this.tagArr)]
this.showTimer = 1
this.postRediusTestFun(this.tagArr)
if (this.timer1) {
clearInterval(Number(this.timer1))
this.timer1 = null
}
this.timer1 = setInterval(() => {
this.postRediusTestFun(this.tagArr)
}, 3000)
}
//是否要定时查询历史、外部数据
if (showHistoryExternal == 1) {
if (this.timer2) {
clearInterval(Number(this.timer2))
this.timer2 = null
}
this.getHistoryExternal()
this.timer2 = setInterval(() => {
this.getHistoryExternal()
}, 6000)
}
}
}
})
},
getHistoryExternal() {
// if()
this.$nextTick(function() {
// setTimeout(() => {
this.historyExternalList.forEach(item => {
this.$refs[item][0].getHistoryExternalData()
})
// })
})
},
//实时轮询
postRediusTestFun(tagArr) {
if (this.showTimer == 1) {
this.$nextTick(function() {
this.showTimer = 0
this.$api.postRediusTest(tagArr).then(res => {
if (res.data.code == 0) {
this.newTagDataArr = res.data.data
// console.log(JSON.stringify(this.realTimeList))
this.showTimer = 1
this.realTimeList.forEach(item => {
this.$refs[item][0].getRealTimeData(this.newTagDataArr)
})
}
}).catch(err => {
if (this.timer1) {
clearInterval(Number(this.timer1))
this.timer1 = null
}
})
// this.getRelayEchartFun()
})
}
},
//设置页面样式
setMainStyle() {
// console.log(22)
this.mainStyleConfig = null
this.isShowCompons = true
let styleConfig = this.componentsData.styleConfig
styleConfig
.
margin
=
arrayToString
(
styleConfig
.
margin
)
styleConfig
.
padding
=
arrayToString
(
styleConfig
.
padding
)
styleConfig
.
borderRadius
=
arrayToString
(
styleConfig
.
borderRadius
)
this
.
mainStyleConfig
=
styleConfig
if (styleConfig.length > 0) {
styleConfig.margin = arrayToString(styleConfig.margin)
styleConfig.padding = arrayToString(styleConfig.padding)
styleConfig.borderRadius = arrayToString(styleConfig.borderRadius)
this.mainStyleConfig = styleConfig
}
},
//消除定时器
eliminateTimer(){
console.log('消除定时器')
if (this.timer1) {
clearInterval(Number(this.timer1))
this.timer1 = null
}
if (this.timer2) {
clearInterval(Number(this.timer2))
this.timer2 = null
}
}
// test(){
// uni.request({
// url: 'http://www.baidu.com',
// method:'GET',
// header: {
// // 'token': token
// },
// success(res) {
// console.log(666+JSON.stringify(res))
// //响应成功拦截
// // resolve(res)
// },
// fail(err) {
// //响应失败拦截
// // reject(err)
// },
// complete(res) {
// console.log(666+res)
// //请求完成拦截
// // uni.hideLoading()
// }
// })
// }
},
onReady() {
// console.log(jsonData.pageTitle)
},
onPageScroll:function(e) { //nvue暂不支持滚动监听,可用bindingx代替
// console.log("
滚动距离为:
" + e.scrollTop);
// let _this = this
// console.log(this.tabsList)
let tabsList = this.tabsList
for(let i=0;i<tabsList.length;i++){
this.$refs[tabsList[i]][0].shopTop(e.scrollTop,tabsList[i])
}
uni.createSelectorQuery().in(this).select("
.
tabs
-
box
") .boundingClientRect((data) => {
}) .exec();
},
onShow() {
this.getViewJson()
// #ifdef APP-PLUS
plus.screen.lockOrientation('default'); //锁定
// #endif
},
onTabItemTap() {
//切换tab刷新数据
// this.getViewJson()
},
onHide() {
this.eliminateTimer()
},
beforeDestroy() {
this.eliminateTimer()
// if (this.timer1) {
// clearInterval(Number(this.timer1))
// this.timer1 = null
// }
// if (this.timer2) {
// clearInterval(Number(this.timer2))
// this.timer2 = null
// }
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.page-view
{
padding
:
0
;
padding
:
0
!
important
;
}
.data-style
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
//
height: 100%;
// background: red;
}
</
style
>
pages/login/index.vue
View file @
71df02fd
...
...
@@ -90,8 +90,29 @@
})
// #endif
// #ifdef H5
uni
.
switchTab
({
url
:
"/pages/monitoring/index"
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
({
url
:
"/pages/monitoring/index"
})
})
}
else
{
this
.
$toast
.
toast
(
'登录失败'
)
}
}
}).
catch
(
error
=>
{
this
.
$toast
.
toast
(
error
)
})
// #endif
...
...
pages/monitoring/index.vue
View file @
71df02fd
...
...
@@ -135,24 +135,7 @@
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
()
{
...
...
pages/monitoring/monitoring-view/index.vue
View file @
71df02fd
...
...
@@ -18,7 +18,7 @@
<movable-view
@
click=
"closeTitleBarFun"
:x=
"x"
:y=
"y"
ref=
"moveView"
id=
"maxView"
out-of-bounds=
"true"
class=
"max-view"
:direction=
"isScale?'all':'none'"
:scale=
"isScale"
:scale-value=
"view.transform"
:style=
"
{height:maxViewMoveStyle.height+'px',width:maxViewMoveStyle.width+'px',top:maxViewMoveStyle.top+'px',left:maxViewMoveStyle.left+'px',background:maxViewMoveStyle.background}"
@change="onChangeFun" @scale="onScale"
:scale-min="view.transform
">
@change="onChangeFun" @scale="onScale"
scale-min="0.5
">
<view
id=
"maxView1"
style=
"position: relative;width: 100%;height: 100%;"
>
<line-vue1
ref=
"lineVue1"
:dae=
"data"
:dataId=
"dataId"
></line-vue1>
<rectangle-vue2
ref=
"rectangleVue2"
:dae=
"data"
:dataId=
"dataId"
></rectangle-vue2>
...
...
@@ -34,14 +34,16 @@
<text-box11
ref=
"textBox11"
:dae=
"data"
:dataId=
"dataId"
></text-box11>
<data-text-block12
ref=
"dataTextBlock12"
:dae=
"data"
:dataId=
"dataId"
:newTagArr=
"newTagDataArr"
>
</data-text-block12>
<r-w-text-box13
ref=
"rwTextBox13"
:dae=
"data"
:dataId=
"dataId"
:newTagArr=
"newTagDataArr"
>
<r-w-text-box13
@
rw-text-box-fun=
"rwTextBoxFun"
ref=
"rwTextBox13"
:dae=
"data"
:dataId=
"dataId"
:newTagArr=
"newTagDataArr"
>
</r-w-text-box13>
<alarm14
ref=
"alarm14"
:dae=
"data"
:dataId=
"dataId"
></alarm14>
<flow-pipe
ref=
"flowPipe"
:dae=
"data"
:dataId=
"dataId"
:newTagArr=
"newTagDataArr"
></flow-pipe>
<tank
ref=
"tank"
:dae=
"data"
:dataId=
"dataId"
:newTagArr=
"newTagDataArr"
></tank>
<mobile-products
:newTagArr=
"newTagDataArr"
ref=
"mobileProducts"
:dae=
"data"
:dataId=
"dataId"
>
</mobile-products>
<dynamic-products
ref=
"dynamicProducts"
:dae=
"data"
:dataId=
"dataId"
></dynamic-products>
<dynamic-products
:newTagArr=
"newTagDataArr"
ref=
"dynamicProducts"
:dae=
"data"
:dataId=
"dataId"
>
</dynamic-products>
<ellipse-lamp15
ref=
"ellipseLamp15"
:dae=
"data"
:dataId=
"dataId"
:newTagArr=
"newTagDataArr"
>
</ellipse-lamp15>
<common-lamp16
ref=
"commonLamp16"
:dae=
"data"
:dataId=
"dataId"
:newTagArr=
"newTagDataArr"
>
...
...
@@ -175,9 +177,6 @@
ColumnChart23
,
//柱形图控件
PolylineColumnChart24
,
//折线柱形图控件
},
data
()
{
return
{
...
...
@@ -200,14 +199,14 @@
x
:
0
,
dataId
:
''
,
data
:
''
,
ControlsData
:
''
,
Controls
:
''
,
ControlsData
:
''
,
//画面组件配置数据
Controls
:
''
,
//画面组件数据
timer
:
''
,
//定时器
isTitleBar
:
true
,
//是否展示标题栏
isReduction
:
false
,
//是否展示还原图标
isRefresh
:
false
,
//点击刷新图标添加动画
viewTitle
:
'
标题
'
,
//画面导航标题
projectName
:
''
,
//项目名称
viewTitle
:
''
,
//画面导航标题
projectName
:
'
测试项目
'
,
//项目名称
showMinView
:
false
,
scaleValue
:
1
,
viewHeight
:
700
,
...
...
@@ -219,9 +218,9 @@
left
:
0
},
maxViewAreaStyle
:
{
height
:
667
,
width
:
375
,
background
:
'#
000
'
,
height
:
375
,
width
:
667
,
background
:
'#
eee
'
,
},
maxViewStyle
:
{},
echartView
:
{},
//图表长宽配置
...
...
@@ -247,7 +246,9 @@
barLineEchart
:
[],
dashEchart
:
[]
},
bindingData
:
[]
bindingData
:
[],
rwTextBoxData
:
''
,
//读写框下发
showTimer
:
0
}
},
...
...
@@ -256,18 +257,11 @@
plus
.
screen
.
lockOrientation
(
'landscape-primary'
);
//锁定页面方向
// #endif
// console.log(JSON.stringify(option))
// console.log(data)
this
.
$nextTick
(
function
()
{
// console.log(JSON.stringify(option))
// this.viewTitle = data.textTitle
// this.viewRouterData =JSON.parse(option.data)
this
.
viewTitle
=
option
.
title
this
.
dataId
=
option
.
id
this
.
projectName
=
option
.
projectName
// console.log('333=>' + this.viewTitle)
})
this
.
viewTitle
=
option
.
title
this
.
dataId
=
option
.
id
this
.
projectName
=
option
.
projectName
console
.
log
(
'333=>'
+
this
.
viewTitle
)
// })
},
onResize
()
{
...
...
@@ -291,7 +285,17 @@
},
onReady
()
{},
methods
:
{
//读写框下发获取读写框数据
rwTextBoxFun
(
item
)
{
// console.log(11+JSON.stringify(item))
this
.
rwTextBoxData
=
item
},
//是否锁定屏幕
suoDingFun
()
{
// console.log(13)
// this.showTimer = 0
clearInterval
(
Number
(
this
.
timer1
))
this
.
timer1
=
null
this
.
isScale
=
!
this
.
isScale
if
(
this
.
isScale
)
{
this
.
suoDingSrc
=
'../../../static/img1/suoding.png'
...
...
@@ -319,11 +323,16 @@
//查询图表信息
if
(
this
.
bindingData
.
length
>
0
)
{
let
bindingData
=
this
.
bindingData
let
picker
=
[]
for
(
let
i
=
0
;
i
<
bindingData
.
length
;
i
++
)
{
let
Controls
=
bindingData
[
i
].
Controls
let
FilterControls
=
bindingData
[
i
].
FilterControls
if
(
Controls
.
Query
==
item
.
class
)
{
picker
.
push
(
Controls
.
BeginTime
,
Controls
.
EndTime
)
if
(
FilterControls
){
picker
.
push
(
FilterControls
[
0
],
FilterControls
[
1
])
}
picker
.
push
(
Controls
.
BeginTime
,
Controls
.
endTime
)
}
}
var
myPicker
=
new
Set
(
picker
)
...
...
@@ -373,47 +382,45 @@
},
//变量实时轮询
postRediusTestFun
(
tagArr
)
{
clearInterval
(
this
.
timer1
)
this
.
timer1
=
''
// this.$refs.mobileProducts.AxiosFlowList()
this
.
$api
.
postRediusTest
(
tagArr
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
this
.
newTagDataArr
=
res
.
data
.
data
this
.
$refs
.
rwTextBox13
.
axio
()
this
.
$refs
.
tank
.
axio
()
this
.
$refs
.
flowPipe
.
axioImg2
(
this
.
newTagDataArr
)
this
.
$refs
.
ellipseLamp15
.
axio
()
this
.
$refs
.
commonLamp16
.
axio
()
this
.
$refs
.
dynamicText17
.
axio
()
// this.$refs.rwTextBox13.axio()
this
.
$refs
.
mobileProducts
.
AxiosFlowList
()
this
.
$refs
.
dynamicProducts
.
AxiosFlowList
()
this
.
$refs
.
dataTextBlock12
.
axio
()
this
.
$refs
.
switch8
.
switchAxios
()
this
.
$refs
.
image18
.
axioImg
()
//是否有报警信息
if
(
this
.
ControlsData
.
AlarmTagItemList
.
length
>
0
){
this
.
$refs
.
alarm14
.
axioss
()
}
// this.$refs.pieChart20.getRefresh()
this
.
timer1
=
setInterval
(()
=>
{
this
.
postRediusTestFun
(
tagArr
)
this
.
getRelayEchartFun
()
},
2000
)
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
console
.
log
(
'timer111=>'
+
JSON
.
stringify
(
this
.
showTimer
))
if
(
this
.
showTimer
==
1
)
{
this
.
showTimer
=
0
this
.
$nextTick
(
function
()
{
this
.
$api
.
postRediusTest
(
tagArr
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
this
.
newTagDataArr
=
res
.
data
.
data
this
.
$refs
.
rwTextBox13
.
axio
()
this
.
$refs
.
tank
.
axio
()
this
.
$refs
.
flowPipe
.
axioImg2
(
this
.
newTagDataArr
)
this
.
$refs
.
ellipseLamp15
.
axio
()
this
.
$refs
.
commonLamp16
.
axio
()
this
.
$refs
.
dynamicText17
.
axio
()
// this.$refs.rwTextBox13.axio()
this
.
$refs
.
mobileProducts
.
AxiosFlowList
()
this
.
$refs
.
dynamicProducts
.
AxiosFlowList1
(
this
.
rwTextBoxData
)
this
.
$refs
.
dataTextBlock12
.
axio
()
this
.
$refs
.
switch8
.
switchAxios
()
this
.
$refs
.
image18
.
axioImg
()
// this.$refs.dynamicProducts.AxiosFlowList()
//是否有报警信息
if
(
this
.
ControlsData
.
AlarmTagItemList
.
length
>
0
)
{
this
.
$refs
.
alarm14
.
axioss
()
}
this
.
showTimer
=
1
}
}).
catch
(
err
=>
{
if
(
this
.
timer1
)
{
clearInterval
(
Number
(
this
.
timer1
))
this
.
timer1
=
null
}
})
this
.
getRelayEchartFun
()
this
.
getRelayEchartFun
()
})
}
// },10000)
// this.timer1 = setInterval(()=>{
// this.$refs.rwTextBox13.axio()
// this.$refs.tank.axio()
// },10000)
},
//图表实时轮询
getRelayEchartFun
()
{
...
...
@@ -447,6 +454,7 @@
}
},
//选择时间
changeTime
(
str
,
obj
)
{
// let timer = val.year+'-'+val.month+'-'+val.day+' '+val.hour+':'+val.minute+':'+val.second
this
.
$refs
.
dataTimePicker282
.
getTime
(
str
)
...
...
@@ -454,14 +462,17 @@
// console.log(JSON.stringify(timer))
},
//显示时间选择器
showPicker
(
item
)
{
// console.log(JSON.stringify(item))
this
.
showPickerTime
=
true
this
.
$refs
.
dateTimePop
.
open
(
item
.
value
||
''
);
},
//画面放大缩小
onScale
(
e
)
{
// console.log(JSON.stringify(this.maxViewMoveStyle))
let
scale
=
e
.
detail
.
scale
this
.
oldTransform
=
e
.
detail
.
scale
if
(
scale
>
this
.
view
.
transform
)
{
this
.
isReduction
=
true
}
else
{
...
...
@@ -482,7 +493,9 @@
plus
.
screen
.
lockOrientation
(
'portrait-primary'
);
//锁定页面方向
this
.
portraitUrl
=
1
// #endif
// uni.navigateBack()
// #ifdef H5
uni
.
navigateBack
()
// #endif
// uni.navigateTo({
// url: '/pages/monitoring/go-back/index',
// animationType: 'none',
...
...
@@ -492,18 +505,19 @@
},
//还原画面初始化
reductionFun
()
{
// console.log(44433)
this
.
view
.
transform
=
this
.
oldTransform
this
.
$nextTick
(
function
()
{
// this.view.transform = 1.2
this
.
view
.
transform
=
0.5
})
// console.log(JSON.stringify(this.$refs.moveView))
// this.isReduction = false
// this.view.transform = 0.5
},
//刷新
//刷新
画布数据
refreshFun
()
{
if
(
!
this
.
isRefresh
)
{
this
.
isRefresh
=
true
this
.
getChartControlNamesFun
()
this
.
getDataInfo
()
setTimeout
(()
=>
{
this
.
isRefresh
=
false
},
1000
)
...
...
@@ -513,11 +527,10 @@
},
onChangeFun
(
e
)
{
// this.x = e.detail.x
// this.y = e.detail.y
// console.log(JSON.stringify(e))
},
//获取组件关联变量
getTagArr
(
data
)
{
let
tagArr
=
[]
for
(
let
key
in
data
)
{
...
...
@@ -655,36 +668,51 @@
}
let
tagArr1
=
unique
(
tagArr
)
this
.
tagArr
=
tagArr1
this
.
showTimer
=
1
this
.
postRediusTestFun
(
tagArr1
)
setTimeout
(()
=>
{
this
.
getRelayEchartFun
()
if
(
this
.
timer1
){
clearInterval
(
Number
(
this
.
timer1
))
this
.
timer1
=
null
}
this
.
timer1
=
setInterval
(()
=>
{
this
.
postRediusTestFun
(
tagArr1
)
},
1000
)
setTimeout
(()
=>
{
this
.
initEchart
()
})
// console.log(tagArr1)
// console.log('jj'+JSON.stringify(this.realyEchart))
},
//获取画布数据
getDataInfo
()
{
if
(
this
.
viewTitle
)
{
// console.log(JSON.stringify(this.viewTitle))
this
.
$toast
.
defaultLoading
()
this
.
$api
.
getControlsJson
(
this
.
projectName
,
`
${
this
.
viewTitle
}
`
).
then
(
res
=>
{
// console.log(JSON.stringify(res))
if
(
res
)
{
console
.
log
(
324
+
JSON
.
stringify
(
res
))
uni
.
hideLoading
();
const
data
=
res
.
data
if
(
data
.
Controls
)
{
this
.
Controls
=
res
.
data
.
Controls
this
.
ControlsData
=
res
.
data
.
Data
// console.log(JSON.stringify(this.Controls))
this
.
maxViewMoveStyle
.
height
=
this
.
Controls
.
PropertyList
.
Height
this
.
maxViewMoveStyle
.
width
=
this
.
Controls
.
PropertyList
.
Width
// console.log(JSON.parse(this.Controls.PropertyList.Background).Data.Color)
this
.
maxViewMoveStyle
.
background
=
getRgbaFun
(
JSON
.
parse
(
this
.
Controls
.
PropertyList
.
Background
).
Data
.
Color
)
// console.log(JSON.parse(this.Controls.PropertyList.Background).Data.Color)
let
bgColor
=
JSON
.
parse
(
this
.
Controls
.
PropertyList
.
Background
).
Data
.
Color
this
.
maxViewMoveStyle
.
background
=
getRgbaFun
(
'#'
+
bgColor
.
slice
(
3
)
+
bgColor
.
slice
(
1
,
3
))
this
.
data
=
res
.
data
this
.
getInitFun
()
this
.
getTagArr
(
this
.
ControlsData
)
}
else
{
this
.
$toast
.
toast
(
'获取画面失败'
)
}
// console.log(JSON.stringify(res))
}).
catch
(
err
=>
{
uni
.
hideLoading
();
console
.
log
(
err
)
})
}
...
...
@@ -702,7 +730,7 @@
console
.
log
(
err
)
})
},
//初始化
//初始化
画布宽高
getInitFun
()
{
let
_this
=
this
uni
.
getSystemInfo
({
...
...
@@ -710,10 +738,7 @@
_this
.
$nextTick
(
function
()
{
_this
.
maxViewAreaStyle
.
height
=
res
.
windowHeight
_this
.
maxViewAreaStyle
.
width
=
res
.
windowWidth
_this
.
view
.
transform
=
(
res
.
windowWidth
/
this
.
Controls
.
PropertyList
.
Width
)
>=
0.5
?
res
.
windowWidth
/
this
.
Controls
.
PropertyList
.
Width
:
0.5
_this
.
view
.
transform
=
(
res
.
windowWidth
/
this
.
Controls
.
PropertyList
.
Width
)
>=
0.5
?
res
.
windowWidth
/
this
.
Controls
.
PropertyList
.
Width
:
0.5
// console.log(222+JSON.stringify(_this.view.transform))
_this
.
oldTransform
=
_this
.
view
.
transform
...
...
@@ -722,90 +747,9 @@
});
},
getViewAreaStyle
()
{
this
.
maxViewAreaStyle
.
height
=
this
.
maxViewMoveStyle
.
height
*
3
this
.
maxViewAreaStyle
.
width
=
this
.
maxViewMoveStyle
.
height
*
3
this
.
view
.
translateY
=
-
this
.
maxViewMoveStyle
.
height
// this.view.translateX = -this.maxViewMoveStyle.
},
//缩放
touchstartFun
(
e
)
{
this
.
maxViewMoveStyle
.
top
=
Number
(
this
.
maxViewMoveStyle
.
top
)
+
Number
(
this
.
view
.
translateY
)
*
this
.
view
.
transform
this
.
maxViewMoveStyle
.
left
=
Number
(
this
.
maxViewMoveStyle
.
left
)
+
Number
(
this
.
view
.
translateX
)
*
this
.
view
.
transform
// this.oldTransform = this.view.transform
if
(
e
.
touches
.
length
>=
2
)
{
//判断是否有两个点在屏幕上
this
.
start
=
e
.
touches
;
//得到第一组两个点
};
if
(
e
.
touches
.
length
==
1
)
{
this
.
start
=
e
.
touches
;
}
this
.
view
.
translateY
=
0
this
.
view
.
translateX
=
0
this
.
isTouch
=
true
;
//表示手指已按下
},
touchmoveFun
(
e
)
{
e
.
preventDefault
();
// 一根 手指 执行 目标元素移动 操作
if
(
e
.
touches
.
length
==
1
&&
this
.
isTouch
)
{
// console.log(JSON.stringify(e))
this
.
end
=
e
.
touches
;
this
.
view
.
translateX
=
(
this
.
end
[
0
].
pageX
-
this
.
start
[
0
].
pageX
)
this
.
view
.
translateY
=
(
this
.
end
[
0
].
pageY
-
this
.
start
[
0
].
pageY
)
};
// 2 根 手指执行 目标元素放大操作
if
(
e
.
touches
.
length
>=
2
&&
this
.
isTouch
)
{
// alert("2")
//得到第二组两个点
this
.
showMinView
=
true
var
now
=
e
.
touches
;
//得到缩放比例,getDistance是勾股定理的一个方法
if
(
this
.
view
.
transform
>=
this
.
oldTransform
)
{
this
.
isReduction
=
true
let
scale
=
this
.
getDistance
(
now
[
0
],
now
[
1
])
/
this
.
getDistance
(
this
.
start
[
0
],
this
.
start
[
1
])
//得到旋转角度,getAngle是得到夹角的一个方法
var
rotation
=
this
.
getAngle
(
now
[
0
],
now
[
1
])
-
this
.
getAngle
(
this
.
start
[
0
],
this
.
start
[
1
]);
if
(
scale
.
toFixed
(
2
)
>=
1
)
{
this
.
view
.
transform
=
scale
.
toFixed
(
2
)
}
}
// this.marginLeft = this.getDistance(this.start[0], this.start[1])-this.getDistance(now[0], now[1])
// e.
// console.log(JSON.stringify(this.marginLeft))
};
},
touchendFun
(
e
)
{
//将 isTouch 修改为false 表示 手指已经离开屏幕
if
(
this
.
view
.
transform
==
this
.
oldTransform
)
{
this
.
isReduction
=
false
}
if
(
this
.
isTouch
)
{
this
.
isTouch
=
false
;
}
},
getAngle
(
p1
,
p2
)
{
var
x
=
p1
.
pageX
-
p2
.
pageX
,
y
=
p1
.
pageY
-
p2
.
pageY
;
return
Math
.
atan2
(
y
,
x
)
*
180
/
Math
.
PI
;
},
getDistance
(
p1
,
p2
)
{
var
x
=
p2
.
pageX
-
p1
.
pageX
,
y
=
p2
.
pageY
-
p1
.
pageY
;
return
Math
.
sqrt
((
x
*
x
)
+
(
y
*
y
));
},
//关闭标题栏
closeTitleBarFun
(
type
)
{
clearTimeout
(
this
.
timer
);
...
...
@@ -825,7 +769,6 @@
}
}
},
...
...
@@ -838,8 +781,9 @@
mounted
()
{
this
.
getChartControlNamesFun
()
this
.
closeTitleBarFun
(
1
)
// #ifdef H5
this
.
getDataInfo
()
// #ifdef H5
// this.getDataInfo()
// #endif
// console.log(JSON.stringify(this.$store.systemInfo))
...
...
@@ -850,18 +794,30 @@
},
onUnload
()
{
this
.
showTimer
=
0
// console.log('timer33=>' + JSON.stringify(this.timer1))
if
(
this
.
timer
)
{
clearTimeout
(
this
.
timer
);
clearTimeout
(
Number
(
this
.
timer
)
);
this
.
timer
=
null
;
}
if
(
this
.
timer1
)
{
clearInterval
(
this
.
timer1
)
this
.
timer1
=
null
;
}
if
(
this
.
timer1
){
clearInterval
(
Number
(
this
.
timer1
))
this
.
timer1
=
null
}
},
onHide
()
{
},
beforeDestroy
()
{
clearInterval
(
this
.
timer1
)
this
.
timer1
=
null
;
if
(
this
.
timer
)
{
clearTimeout
(
Number
(
this
.
timer
));
this
.
timer
=
null
;
}
if
(
this
.
timer1
){
clearInterval
(
Number
(
this
.
timer1
))
this
.
timer1
=
null
}
// #ifdef APP-PLUS
plus
.
screen
.
unlockOrientation
()
plus
.
screen
.
lockOrientation
(
'portrait-primary'
);
//锁定页面方向
...
...
pages/working/index.vue
View file @
71df02fd
<!-- 工作页面 -->
<
template
>
<view></view>
<view
@
click=
"test"
style=
"height: 50px;background-color: #007AFF;"
>
<button></button>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
export
default
{
data
()
{
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
()
{
// console.log('App Launch'),
// #ifdef APP-PLUS
plus
.
screen
.
lockOrientation
(
'portrait-primary'
);
//锁定
// #endif
plus
.
screen
.
lockOrientation
(
'portrait-primary'
);
//锁定
// #endif
},
}
</
script
>
<
style
>
</
style
>
request/api.js
View file @
71df02fd
...
...
@@ -107,7 +107,28 @@ function getChartQuery(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 {
executeScript
,
getRelayEchart
,
getChartControlNames
,
getChartQuery
getChartQuery
,
getView
,
getAppDataImage
,
getGlobalProps
,
getQueryMulitySource
,
getStartTime
}
request/request.js
View file @
71df02fd
import
$toast
from
'../js/toast.js'
// 全局请求封装
const
token
=
'自己的token令牌,最好读取缓存中的'
...
...
@@ -7,7 +8,7 @@ const apiUrl = 'http://192.168.1.68:8804' //app ip
const
apiUrl1
=
'http://192.168.1.68:8806'
//web ip
//#endif
//#ifndef APP-PLUS
const
apiUrl
=
'http://192.168.1.68:8806
'
const
apiUrl
1
=
'/apv
'
//#endif
// const apiUrl = 'http://localhost:5000'
...
...
@@ -31,9 +32,11 @@ const baseRequest = (url,method,type,data) => {
newApiUrl
=
serviceAddress
+
url
//app ip
}
else
if
(
type
==
1
){
newApiUrl
=
apiAddress
+
url
//web ip
}
else
{
newApiUrl
=
url
//完整路径
}
console
.
log
(
'url1=>'
+
newApiUrl
)
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
...
...
@@ -43,6 +46,7 @@ const baseRequest = (url,method,type,data) => {
header
:
{
// 'token': token
},
sslVerify
:
false
,
success
(
res
)
{
// console.log(JSON.stringify(res))
//响应成功拦截
...
...
@@ -50,6 +54,8 @@ const baseRequest = (url,method,type,data) => {
},
fail
(
err
)
{
//响应失败拦截
// console.log(22+JSON.stringify(err))
$toast
.
toast
(
err
.
errMsg
)
reject
(
err
)
},
complete
(
res
)
{
...
...
store/index.js
View file @
71df02fd
...
...
@@ -8,87 +8,87 @@ const store = new Vuex.Store({
state
:
{
//存放状态
routerInfo
:
''
,
systemInfo
:
''
,
//系统信息
GetProjectResourceBaseUrl
:
'/api/view/GetProjectResource'
,
baseUrl
:
'http://192.168.1.68:8806'
GetProjectResourceBaseUrl
:
'/api/view/GetProjectResource'
,
GetViewImgResourceBaseUrl
:
'/api/view/GetImage'
,
//获取app制作图片
baseUrl
:
'http://192.168.1.68:8806'
},
actions
:
{
//扫码获取信息
getCodeInfoFun
({
commit
})
{
uni
.
removeStorageSync
(
'projectInfo'
);
uni
.
removeStorageSync
(
'projectInfo'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
// #ifdef APP-PLUS
uni
.
scanCode
({
// onlyFromCamera: true,
scanType
:
[
'qrCode'
,
'barCode'
],
success
:
function
(
res
)
{
// console.log(333)
let
projectName
=
res
.
result
// console.log(22+JSON.stringify(res))
if
(
projectName
){
// console.log(88+JSON.stringify(projectName))
$api
.
getAppInfo
(
projectName
).
then
(
res
=>
{
console
.
log
(
88
+
JSON
.
stringify
(
res
.
data
.
data
))
// console.log(22 + JSON.stringify(res))
if
(
projectName
)
{
$api
.
getAppInfo
(
projectName
).
then
(
res
=>
{
console
.
log
(
88
+
JSON
.
stringify
(
res
.
data
.
data
))
const
code
=
res
.
data
.
code
// console.log(JSON.stringify( res.data.data))
if
(
code
==
1
)
{
if
(
code
==
1
)
{
$toast
.
toast
(
res
.
data
.
msg
)
}
else
{
uni
.
setStorageSync
(
'projectInfo'
,
res
.
data
.
data
);
}
else
{
uni
.
setStorageSync
(
'projectInfo'
,
res
.
data
.
data
);
resolve
(
res
)
}
if
(
res
.
statusCode
==
500
)
{
$toast
.
toast
(
'
扫码
失败'
)
if
(
res
.
statusCode
==
500
)
{
$toast
.
toast
(
'
获取工程信息
失败'
)
}
}).
catch
(
err
=>
{
console
.
log
(
'err'
+
JSON
.
stringify
(
res
))
$toast
.
toast
(
'
扫码
失败'
)
}).
catch
(
err
=>
{
console
.
log
(
'err'
+
JSON
.
stringify
(
err
))
$toast
.
toast
(
'
获取工程信息
失败'
)
})
}
else
{
}
else
{
// console.log(444)
$toast
.
toast
(
'扫码失败'
)
}
},
complete
:
function
(
res
)
{
uni
.
hideLoading
();
},
fail
:
function
(
res
)
{
reject
(
res
)
console
.
log
(
'失败条码类型:'
+
res
.
scanType
);
}
});
// uni.redirectTo({
// url: "/pages/login/index"
// })
// #endif
// #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
if
(
code
==
1
)
{
if
(
code
==
1
)
{
$toast
.
toast
(
res
.
data
.
msg
)
}
else
{
}
else
{
console
.
log
(
JSON
.
stringify
(
res
.
data
.
data
))
uni
.
setStorageSync
(
'projectInfo'
,
res
.
data
.
data
);
uni
.
redirectTo
({
url
:
"/pages/login/index"
})
resolve
(
res
)
}
if
(
res
.
statusCode
==
500
)
{
if
(
res
.
statusCode
==
500
)
{
$toast
.
toast
(
'扫码失败'
)
}
}).
catch
(
res
=>
{
}).
catch
(
res
=>
{
$toast
.
toast
(
'扫码失败'
)
})
// #endif
})
...
...
@@ -96,8 +96,11 @@ const store = new Vuex.Store({
},
//权限请求
jurisdictionShow
(
context
,
payload
)
{
const
{
item
,
dataId
}
=
payload
jurisdictionShow
(
context
,
payload
)
{
const
{
item
,
dataId
}
=
payload
return
new
Promise
((
resolve
,
reject
)
=>
{
let
userinfoID
=
''
// console.log(uni.getStorageSync('userInfo1'))
...
...
@@ -115,9 +118,11 @@ const store = new Vuex.Store({
}
else
{
reject
(
res
.
data
)
}
}).
catch
(
err
=>
{
reject
(
res
.
data
)
})
})
},
}
...
...
unpackage/dist/dev/app-plus/__uniappchooselocation.js
View file @
71df02fd
!
function
(
e
){
var
t
=
{};
function
A
(
a
){
if
(
t
[
a
])
return
t
[
a
].
exports
;
var
i
=
t
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
i
.
exports
,
i
,
i
.
exports
,
A
),
i
.
l
=!
0
,
i
.
exports
}
A
.
m
=
e
,
A
.
c
=
t
,
A
.
d
=
function
(
e
,
t
,
a
){
A
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
a
})},
A
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
A
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
A
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"object"
==
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
a
=
Object
.
create
(
null
);
if
(
A
.
r
(
a
),
Object
.
defineProperty
(
a
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"string"
!=
typeof
e
)
for
(
var
i
in
e
)
A
.
d
(
a
,
i
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
i
));
return
a
},
A
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
A
.
d
(
t
,
"a"
,
t
),
t
},
A
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
A
.
p
=
""
,
A
(
A
.
s
=
41
)}([
function
(
e
,
t
){
e
.
exports
=
{}},
function
(
e
,
t
,
A
){
"use strict"
;
function
a
(
e
,
t
,
A
,
a
,
i
,
n
,
o
,
s
,
r
,
c
){
var
l
,
d
=
"function"
==
typeof
e
?
e
.
options
:
e
;
if
(
r
){
d
.
components
||
(
d
.
components
=
{});
var
u
=
Object
.
prototype
.
hasOwnProperty
;
for
(
var
h
in
r
)
u
.
call
(
r
,
h
)
&&!
u
.
call
(
d
.
components
,
h
)
&&
(
d
.
components
[
h
]
=
r
[
h
])}
if
(
c
&&
((
c
.
beforeCreate
||
(
c
.
beforeCreate
=
[])).
unshift
((
function
(){
this
[
c
.
__module
]
=
this
})),(
d
.
mixins
||
(
d
.
mixins
=
[])).
push
(
c
)),
t
&&
(
d
.
render
=
t
,
d
.
staticRenderFns
=
A
,
d
.
_compiled
=!
0
),
a
&&
(
d
.
functional
=!
0
),
n
&&
(
d
.
_scopeId
=
"data-v-"
+
n
),
o
?(
l
=
function
(
e
){(
e
=
e
||
this
.
$vnode
&&
this
.
$vnode
.
ssrContext
||
this
.
parent
&&
this
.
parent
.
$vnode
&&
this
.
parent
.
$vnode
.
ssrContext
)
||
"undefined"
==
typeof
__VUE_SSR_CONTEXT__
||
(
e
=
__VUE_SSR_CONTEXT__
),
i
&&
i
.
call
(
this
,
e
),
e
&&
e
.
_registeredComponents
&&
e
.
_registeredComponents
.
add
(
o
)},
d
.
_ssrRegister
=
l
):
i
&&
(
l
=
s
?
function
(){
i
.
call
(
this
,
this
.
$root
.
$options
.
shadowRoot
)}:
i
),
l
)
if
(
d
.
functional
){
d
.
_injectStyles
=
l
;
var
f
=
d
.
render
;
d
.
render
=
function
(
e
,
t
){
return
l
.
call
(
t
),
f
(
e
,
t
)}}
else
{
var
g
=
d
.
beforeCreate
;
d
.
beforeCreate
=
g
?[].
concat
(
g
,
l
):[
l
]}
return
{
exports
:
e
,
options
:
d
}}
A
.
d
(
t
,
"a"
,(
function
(){
return
a
}))},
function
(
e
,
t
,
A
){
"use strict"
;
var
a
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
weexPlus
=
t
.
default
=
void
0
,
a
=
"function"
==
typeof
getUni
?
getUni
:
function
(){
var
e
=
function
(
e
){
return
"function"
==
typeof
e
},
t
=
function
(
e
){
return
e
.
then
((
function
(
e
){
return
[
null
,
e
]})).
catch
((
function
(
e
){
return
[
e
]}))},
A
=
/^
\$
|^on|^create|Sync$|Manager$|^pause/
,
a
=
[
"os"
,
"getCurrentSubNVue"
,
"getSubNVueById"
,
"stopRecord"
,
"stopVoice"
,
"stopBackgroundAudio"
,
"stopPullDownRefresh"
,
"hideKeyboard"
,
"hideToast"
,
"hideLoading"
,
"showNavigationBarLoading"
,
"hideNavigationBarLoading"
,
"canIUse"
,
"navigateBack"
,
"closeSocket"
,
"pageScrollTo"
,
"drawCanvas"
],
n
=
function
(
e
){
return
(
!
A
.
test
(
e
)
||
"createBLEConnection"
===
e
)
&&!~
a
.
indexOf
(
e
)},
o
=
function
(
A
){
return
function
(){
for
(
var
a
=
arguments
.
length
,
i
=
Array
(
a
>
1
?
a
-
1
:
0
),
n
=
1
;
n
<
a
;
n
++
)
i
[
n
-
1
]
=
arguments
[
n
];
var
o
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{};
return
e
(
o
.
success
)
||
e
(
o
.
fail
)
||
e
(
o
.
complete
)?
A
.
apply
(
void
0
,[
o
].
concat
(
i
)):
t
(
new
Promise
((
function
(
e
,
t
){
A
.
apply
(
void
0
,[
Object
.
assign
({},
o
,{
success
:
e
,
fail
:
t
})].
concat
(
i
)),
Promise
.
prototype
.
finally
=
function
(
e
){
var
t
=
this
.
constructor
;
return
this
.
then
((
function
(
A
){
return
t
.
resolve
(
e
()).
then
((
function
(){
return
A
}))}),(
function
(
A
){
return
t
.
resolve
(
e
()).
then
((
function
(){
throw
A
}))}))}})))}},
s
=
[],
r
=
void
0
;
function
c
(
e
){
s
.
forEach
((
function
(
t
){
return
t
({
origin
:
r
,
data
:
e
})}))}
var
l
=
i
.
webview
.
currentWebview
().
id
,
d
=
new
BroadcastChannel
(
"UNI-APP-SUBNVUE"
);
function
u
(
e
){
var
t
=
i
.
webview
.
getWebviewById
(
e
);
return
t
&&!
t
.
$processed
&&
function
(
e
){
e
.
$processed
=!
0
;
var
t
=
i
.
webview
.
currentWebview
().
id
===
e
.
id
,
A
=
"uniNView"
===
e
.
__uniapp_origin_type
&&
e
.
__uniapp_origin_id
,
a
=
e
.
id
;
if
(
e
.
postMessage
=
function
(
e
){
A
?
d
.
postMessage
({
data
:
e
,
to
:
t
?
A
:
a
}):
w
({
type
:
"UniAppSubNVue"
,
data
:
e
})},
e
.
onMessage
=
function
(
e
){
s
.
push
(
e
)},
e
.
__uniapp_mask_id
){
r
=
e
.
__uniapp_host
;
var
n
=
e
.
__uniapp_mask
,
o
=
i
.
webview
.
getWebviewById
(
e
.
__uniapp_mask_id
);
o
=
o
.
parent
()
||
o
;
var
c
=
e
.
show
,
l
=
e
.
hide
,
u
=
e
.
close
,
h
=
function
(){
o
.
setStyle
({
mask
:
n
})},
f
=
function
(){
o
.
setStyle
({
mask
:
"none"
})};
e
.
show
=
function
(){
h
();
for
(
var
t
=
arguments
.
length
,
A
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
A
[
a
]
=
arguments
[
a
];
return
c
.
apply
(
e
,
A
)},
e
.
hide
=
function
(){
f
();
for
(
var
t
=
arguments
.
length
,
A
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
A
[
a
]
=
arguments
[
a
];
return
l
.
apply
(
e
,
A
)},
e
.
close
=
function
(){
f
();
for
(
var
t
=
arguments
.
length
,
A
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
A
[
a
]
=
arguments
[
a
];
return
u
.
apply
(
e
,
A
)}}}(
t
),
t
}
d
.
onmessage
=
function
(
e
){
e
.
data
.
to
===
l
&&
c
(
e
.
data
.
data
)};
var
h
=
weex
.
requireModule
(
"plus"
),
f
=
weex
.
requireModule
(
"globalEvent"
),
g
=
0
,
p
=
{};
f
.
addEventListener
(
"plusMessage"
,(
function
(
e
){
"UniAppJsApi"
===
e
.
data
.
type
?
v
(
e
.
data
.
id
,
e
.
data
.
data
):
"UniAppSubNVue"
===
e
.
data
.
type
?
c
(
e
.
data
.
data
,
e
.
data
.
options
):
"onNavigationBarButtonTap"
===
e
.
data
.
type
?
"function"
==
typeof
_
&&
_
(
e
.
data
.
data
):
"onNavigationBarSearchInputChanged"
===
e
.
data
.
type
?
"function"
==
typeof
y
&&
y
(
e
.
data
.
data
):
"onNavigationBarSearchInputConfirmed"
===
e
.
data
.
type
?
"function"
==
typeof
B
&&
B
(
e
.
data
.
data
):
"onNavigationBarSearchInputClicked"
===
e
.
data
.
type
&&
"function"
==
typeof
x
&&
x
(
e
.
data
.
data
)}));
var
v
=
function
(
e
,
t
){
var
A
=
p
[
e
];
A
?(
A
(
t
),
A
.
keepAlive
||
delete
p
[
e
]):
console
.
error
(
"callback["
+
e
+
"] is undefined"
)},
m
=
function
(
t
){
var
A
,
a
,
i
=
t
.
id
,
n
=
t
.
type
,
o
=
t
.
params
;
p
[
i
]
=
(
a
=
function
(
t
){
e
(
A
)?
A
(
t
):
A
&&
(
~
t
.
errMsg
.
indexOf
(
":ok"
)?
e
(
A
.
success
)
&&
A
.
success
(
t
):
~
t
.
errMsg
.
indexOf
(
":fail"
)
&&
e
(
A
.
fail
)
&&
A
.
fail
(
t
),
e
(
A
.
complete
)
&&
A
.
complete
(
t
))},(
e
(
A
=
o
)
||
A
&&
e
(
A
.
callback
))
&&
(
a
.
keepAlive
=!
0
),
a
),
h
.
postMessage
({
id
:
i
,
type
:
n
,
params
:
o
},
"__uniapp__service"
)};
function
w
(
e
){
h
.
postMessage
(
e
,
"__uniapp__service"
)}
var
b
=
function
(
e
){
return
function
(
t
){
m
({
id
:
g
++
,
type
:
e
,
params
:
t
})}},
_
=
void
0
,
y
=
void
0
,
B
=
void
0
,
x
=
void
0
;
function
S
(
e
){
_
=
e
}
function
C
(
e
){
y
=
e
}
function
D
(
e
){
B
=
e
}
function
L
(
e
){
x
=
e
}
function
I
(
e
){
return
weex
.
requireModule
(
e
)}
var
E
=
weex
.
requireModule
(
"dom"
),
k
=
weex
.
requireModule
(
"globalEvent"
),
M
=
[];
function
N
(
e
){
"function"
==
typeof
e
&&
(
this
.
isUniAppReady
?
e
():
M
.
push
(
e
))}
k
.
addEventListener
(
"plusMessage"
,(
function
(
e
){
"UniAppReady"
===
e
.
data
.
type
&&
(
N
.
isUniAppReady
=!
0
,
M
.
length
&&
(
M
.
forEach
((
function
(
e
){
return
e
()})),
M
=
[]))}));
var
j
=
"function"
==
typeof
Symbol
&&
"symbol"
==
typeof
Symbol
.
iterator
?
function
(
e
){
return
typeof
e
}:
function
(
e
){
return
e
&&
"function"
==
typeof
Symbol
&&
e
.
constructor
===
Symbol
&&
e
!==
Symbol
.
prototype
?
"symbol"
:
typeof
e
},
O
=
weex
.
requireModule
(
"stream"
),
P
=
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:
"GET"
,
A
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
"application/x-www-form-urlencoded"
;
return
"object"
===
(
void
0
===
e
?
"undefined"
:
j
(
e
))?
"POST"
===
t
.
toUpperCase
()
&&
"application/json"
===
A
.
toLowerCase
()?
JSON
.
stringify
(
e
):
Object
.
keys
(
e
).
map
((
function
(
t
){
return
encodeURIComponent
(
t
)
+
"="
+
encodeURIComponent
(
e
[
t
])})).
join
(
"&"
):
e
},
G
=
weex
.
requireModule
(
"plusstorage"
),
T
=
weex
.
requireModule
(
"clipboard"
),
Q
=
function
(){
if
(
"function"
==
typeof
getUniEmitter
)
return
getUniEmitter
;
var
e
=
{
$on
:
function
(){
console
.
warn
(
"uni.$on failed"
)},
$off
:
function
(){
console
.
warn
(
"uni.$off failed"
)},
$once
:
function
(){
console
.
warn
(
"uni.$once failed"
)},
$emit
:
function
(){
console
.
warn
(
"uni.$emit failed"
)}};
return
function
(){
return
e
}}();
function
U
(
e
,
t
,
A
){
return
e
[
t
].
apply
(
e
,
A
)}
var
F
=
Object
.
freeze
({
loadFontFace
:
function
(
t
){
var
A
=
t
.
family
,
a
=
t
.
source
,
i
=
(
t
.
desc
,
t
.
success
),
n
=
(
t
.
fail
,
t
.
complete
);
E
.
addRule
(
"fontFace"
,{
fontFamily
:
A
,
src
:
a
.
replace
(
/"/g
,
"'"
)});
var
o
=
{
errMsg
:
"loadFontFace:ok"
,
status
:
"loaded"
};
e
(
i
)
&&
i
(
o
),
e
(
n
)
&&
n
(
o
)},
ready
:
N
,
request
:
function
(
t
){
var
A
=
t
.
url
,
a
=
t
.
data
,
i
=
t
.
header
,
n
=
t
.
method
,
o
=
void
0
===
n
?
"GET"
:
n
,
s
=
t
.
dataType
,
r
=
void
0
===
s
?
"json"
:
s
,
c
=
(
t
.
responseType
,
t
.
success
),
l
=
t
.
fail
,
d
=
t
.
complete
,
u
=!
1
,
h
=!
1
,
f
=
{};
if
(
i
)
for
(
var
g
in
i
)
h
||
"content-type"
!==
g
.
toLowerCase
()?
f
[
g
]
=
i
[
g
]:(
h
=!
0
,
f
[
"Content-Type"
]
=
i
[
g
]);
return
"GET"
===
o
&&
a
&&
(
A
=
A
+
(
~
A
.
indexOf
(
"?"
)?
"&"
===
A
.
substr
(
-
1
)
||
"?"
===
A
.
substr
(
-
1
)?
""
:
"&"
:
"?"
)
+
P
(
a
)),
O
.
fetch
({
url
:
A
,
method
:
o
,
headers
:
f
,
type
:
"json"
===
r
?
"json"
:
"text"
,
body
:
"GET"
!==
o
?
P
(
a
,
o
,
f
[
"Content-Type"
]):
""
},(
function
(
t
){
var
A
=
t
.
status
,
a
=
(
t
.
ok
,
t
.
statusText
,
t
.
data
),
i
=
t
.
headers
,
n
=
{};
!
A
||-
1
===
A
||
u
?(
n
.
errMsg
=
"request:fail"
,
e
(
l
)
&&
l
(
n
)):(
n
.
data
=
a
,
n
.
statusCode
=
A
,
n
.
header
=
i
,
e
(
c
)
&&
c
(
n
)),
e
(
d
)
&&
d
(
n
)})),{
abort
:
function
(){
u
=!
0
}}},
getStorage
:
function
(
t
){
var
A
=
t
.
key
,
a
=
(
t
.
data
,
t
.
success
),
i
=
t
.
fail
,
n
=
t
.
complete
;
G
.
getItem
(
A
+
"__TYPE"
,(
function
(
t
){
if
(
"success"
===
t
.
result
){
var
o
=
t
.
data
;
G
.
getItem
(
A
,(
function
(
t
){
if
(
"success"
===
t
.
result
){
var
A
=
t
.
data
;
o
&&
A
?(
"String"
!==
o
&&
(
A
=
JSON
.
parse
(
A
)),
e
(
a
)
&&
a
({
errMsg
:
"getStorage:ok"
,
data
:
A
})):(
t
.
errMsg
=
"setStorage:fail"
,
e
(
i
)
&&
i
(
t
))}
else
t
.
errMsg
=
"setStorage:fail"
,
e
(
i
)
&&
i
(
t
);
e
(
n
)
&&
n
(
t
)}))}
else
t
.
errMsg
=
"setStorage:fail"
,
e
(
i
)
&&
i
(
t
),
e
(
n
)
&&
n
(
t
)}))},
setStorage
:
function
(
t
){
var
A
=
t
.
key
,
a
=
t
.
data
,
i
=
t
.
success
,
n
=
t
.
fail
,
o
=
t
.
complete
,
s
=
"String"
;
"object"
===
(
void
0
===
a
?
"undefined"
:
j
(
a
))
&&
(
s
=
"Object"
,
a
=
JSON
.
stringify
(
a
)),
G
.
setItem
(
A
,
a
,(
function
(
t
){
"success"
===
t
.
result
?
G
.
setItem
(
A
+
"__TYPE"
,
s
,(
function
(
t
){
"success"
===
t
.
result
?
e
(
i
)
&&
i
({
errMsg
:
"setStorage:ok"
}):(
t
.
errMsg
=
"setStorage:fail"
,
e
(
n
)
&&
n
(
t
))})):(
t
.
errMsg
=
"setStorage:fail"
,
e
(
n
)
&&
n
(
t
)),
e
(
o
)
&&
o
(
t
)}))},
removeStorage
:
function
(
t
){
var
A
=
t
.
key
,
a
=
(
t
.
data
,
t
.
success
),
i
=
t
.
fail
,
n
=
t
.
complete
;
G
.
removeItem
(
A
,(
function
(
t
){
"success"
===
t
.
result
?
e
(
a
)
&&
a
({
errMsg
:
"removeStorage:ok"
}):(
t
.
errMsg
=
"removeStorage:fail"
,
e
(
i
)
&&
i
(
t
)),
e
(
n
)
&&
n
(
t
)})),
G
.
removeItem
(
A
+
"__TYPE"
)},
clearStorage
:
function
(
e
){
e
.
key
,
e
.
data
,
e
.
success
,
e
.
fail
,
e
.
complete
},
getClipboardData
:
function
(
t
){
var
A
=
t
.
success
,
a
=
(
t
.
fail
,
t
.
complete
);
T
.
getString
((
function
(
t
){
var
i
=
{
errMsg
:
"getClipboardData:ok"
,
data
:
t
.
data
};
e
(
A
)
&&
A
(
i
),
e
(
a
)
&&
a
(
i
)}))},
setClipboardData
:
function
(
t
){
var
A
=
t
.
data
,
a
=
t
.
success
,
i
=
(
t
.
fail
,
t
.
complete
),
n
=
{
errMsg
:
"setClipboardData:ok"
};
T
.
setString
(
A
),
e
(
a
)
&&
a
(
n
),
e
(
i
)
&&
i
(
n
)},
onSubNVueMessage
:
c
,
getSubNVueById
:
u
,
getCurrentSubNVue
:
function
(){
return
u
(
i
.
webview
.
currentWebview
().
id
)},
$on
:
function
(){
return
U
(
Q
(),
"$on"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$off
:
function
(){
return
U
(
Q
(),
"$off"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$once
:
function
(){
return
U
(
Q
(),
"$once"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$emit
:
function
(){
return
U
(
Q
(),
"$emit"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))}}),
R
=
{
os
:{
nvue
:
!
0
}},
V
=
{};
return
"undefined"
!=
typeof
Proxy
?
V
=
new
Proxy
({},{
get
:
function
(
e
,
t
){
if
(
"os"
===
t
)
return
{
nvue
:
!
0
};
if
(
"postMessage"
===
t
)
return
w
;
if
(
"requireNativePlugin"
===
t
)
return
I
;
if
(
"onNavigationBarButtonTap"
===
t
)
return
S
;
if
(
"onNavigationBarSearchInputChanged"
===
t
)
return
C
;
if
(
"onNavigationBarSearchInputConfirmed"
===
t
)
return
D
;
if
(
"onNavigationBarSearchInputClicked"
===
t
)
return
L
;
var
A
=
F
[
t
];
return
A
||
(
A
=
b
(
t
)),
n
(
t
)?
o
(
A
):
A
}}):(
Object
.
keys
(
R
).
forEach
((
function
(
e
){
V
[
e
]
=
R
[
e
]})),
V
.
postMessage
=
w
,
V
.
requireNativePlugin
=
I
,
V
.
onNavigationBarButtonTap
=
S
,
V
.
onNavigationBarSearchInputChanged
=
C
,
V
.
onNavigationBarSearchInputConfirmed
=
D
,
V
.
onNavigationBarSearchInputClicked
=
L
,
Object
.
keys
({
uploadFile
:
!
0
,
downloadFile
:
!
0
,
chooseImage
:
!
0
,
previewImage
:
!
0
,
getImageInfo
:
!
0
,
saveImageToPhotosAlbum
:
!
0
,
chooseVideo
:
!
0
,
saveVideoToPhotosAlbum
:
!
0
,
saveFile
:
!
0
,
getSavedFileList
:
!
0
,
getSavedFileInfo
:
!
0
,
removeSavedFile
:
!
0
,
openDocument
:
!
0
,
setStorage
:
!
0
,
getStorage
:
!
0
,
getStorageInfo
:
!
0
,
removeStorage
:
!
0
,
clearStorage
:
!
0
,
getLocation
:
!
0
,
chooseLocation
:
!
0
,
openLocation
:
!
0
,
getSystemInfo
:
!
0
,
getNetworkType
:
!
0
,
makePhoneCall
:
!
0
,
scanCode
:
!
0
,
setScreenBrightness
:
!
0
,
getScreenBrightness
:
!
0
,
setKeepScreenOn
:
!
0
,
vibrateLong
:
!
0
,
vibrateShort
:
!
0
,
addPhoneContact
:
!
0
,
showToast
:
!
0
,
showLoading
:
!
0
,
hideToast
:
!
0
,
hideLoading
:
!
0
,
showModal
:
!
0
,
showActionSheet
:
!
0
,
setNavigationBarTitle
:
!
0
,
setNavigationBarColor
:
!
0
,
navigateTo
:
!
0
,
redirectTo
:
!
0
,
reLaunch
:
!
0
,
switchTab
:
!
0
,
navigateBack
:
!
0
,
getProvider
:
!
0
,
login
:
!
0
,
getUserInfo
:
!
0
,
share
:
!
0
,
requestPayment
:
!
0
,
subscribePush
:
!
0
,
unsubscribePush
:
!
0
,
onPush
:
!
0
,
offPush
:
!
0
}).
forEach
((
function
(
e
){
var
t
=
F
[
e
];
t
||
(
t
=
b
(
e
)),
n
(
e
)?
V
[
e
]
=
o
(
t
):
V
[
e
]
=
t
}))),
V
};
var
i
=
new
WeexPlus
(
weex
);
t
.
weexPlus
=
i
;
var
n
=
a
(
weex
,
i
,
BroadcastChannel
);
t
.
default
=
n
},
function
(
e
,
t
,
A
){
Vue
.
prototype
.
__$appStyle__
=
{},
Vue
.
prototype
.
__merge_style
&&
Vue
.
prototype
.
__merge_style
(
A
(
4
).
default
,
Vue
.
prototype
.
__$appStyle__
)},
function
(
e
,
t
,
A
){
"use strict"
;
A
.
r
(
t
);
var
a
=
A
(
0
),
i
=
A
.
n
(
a
);
for
(
var
n
in
a
)
"default"
!==
n
&&
function
(
e
){
A
.
d
(
t
,
e
,(
function
(){
return
a
[
e
]}))}(
n
);
t
.
default
=
i
.
a
},
function
(
e
,
t
,
A
){
"use strict"
;(
function
(
e
){
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
A
=
{
onLoad
:
function
(){
this
.
initMessage
()},
methods
:{
initMessage
:
function
(){
var
t
=
this
,
A
=
e
.
webview
.
currentWebview
().
extras
||
{},
a
=
A
.
from
,
i
=
(
A
.
callback
,
A
.
runtime
),
n
=
A
.
data
,
o
=
void
0
===
n
?{}:
n
,
s
=
A
.
useGlobalEvent
;
this
.
__from
=
a
,
this
.
__runtime
=
i
,
this
.
__page
=
e
.
webview
.
currentWebview
().
id
,
this
.
__useGlobalEvent
=
s
,
this
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
o
)),
e
.
key
.
addEventListener
(
"backbutton"
,(
function
(){
"function"
==
typeof
t
.
onClose
?
t
.
onClose
():
e
.
webview
.
currentWebview
().
close
(
"auto"
)}));
var
r
=
this
,
c
=
function
(
e
){
var
t
=
e
.
data
&&
e
.
data
.
__message
;
t
&&
r
.
__onMessageCallback
&&
r
.
__onMessageCallback
(
t
.
data
)};
this
.
__useGlobalEvent
?
weex
.
requireModule
(
"globalEvent"
).
addEventListener
(
"plusMessage"
,
c
):
new
BroadcastChannel
(
this
.
__page
).
onmessage
=
c
},
postMessage
:
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
A
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
JSON
.
parse
(
JSON
.
stringify
({
__message
:{
__page
:
this
.
__page
,
data
:
t
,
keep
:
A
}})),
i
=
this
.
__from
;
if
(
"v8"
===
this
.
__runtime
)
if
(
this
.
__useGlobalEvent
)
e
.
webview
.
postMessageToUniNView
(
a
,
i
);
else
{
var
n
=
new
BroadcastChannel
(
i
);
n
.
postMessage
(
a
)}
else
{
var
o
=
e
.
webview
.
getWebviewById
(
i
);
o
&&
o
.
evalJS
(
"__plusMessage&&__plusMessage("
.
concat
(
JSON
.
stringify
({
data
:
a
}),
")"
))}},
onMessage
:
function
(
e
){
this
.
__onMessageCallback
=
e
}}};
t
.
default
=
A
}).
call
(
this
,
A
(
2
).
weexPlus
)},
function
(
e
,
t
,
A
){
"use strict"
;(
function
(
e
){
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
A
=
{
data
:
function
(){
return
{
locale
:
"en"
,
fallbackLocale
:
"en"
,
localization
:{
en
:{
done
:
"OK"
,
cancel
:
"Cancel"
},
zh
:{
done
:
"完成"
,
cancel
:
"取消"
},
"zh-hans"
:{},
"zh-hant"
:{},
messages
:{}}}},
onLoad
:
function
(){
this
.
initLocale
()},
created
:
function
(){
this
.
initLocale
()},
methods
:{
initLocale
:
function
(){
if
(
!
this
.
__initLocale
){
this
.
__initLocale
=!
0
;
var
t
=
(
e
.
webview
.
currentWebview
().
extras
||
{}).
data
||
{};
if
(
t
.
messages
&&
(
this
.
localization
.
messages
=
t
.
messages
),
t
.
locale
)
this
.
locale
=
t
.
locale
.
toLowerCase
();
else
{
var
A
=
e
.
os
.
language
.
toLowerCase
().
split
(
"/"
)[
0
].
replace
(
"_"
,
"-"
).
split
(
"-"
),
a
=
A
[
1
];
a
&&
(
A
[
1
]
=
{
chs
:
"hans"
,
cn
:
"hans"
,
sg
:
"hans"
,
cht
:
"hant"
,
tw
:
"hant"
,
hk
:
"hant"
,
mo
:
"hant"
}[
a
]
||
a
),
A
.
length
=
A
.
length
>
2
?
2
:
A
.
length
,
this
.
locale
=
A
.
join
(
"-"
)}}},
localize
:
function
(
e
){
var
t
=
this
.
locale
,
A
=
t
.
split
(
"-"
)[
0
],
a
=
this
.
fallbackLocale
,
i
=
this
.
localization
;
function
n
(
e
){
return
i
[
e
]
||
{}}
return
n
(
"messages"
)[
e
]
||
n
(
t
)[
e
]
||
n
(
A
)[
e
]
||
n
(
a
)[
e
]
||
e
}}};
t
.
default
=
A
}).
call
(
this
,
A
(
2
).
weexPlus
)},
function
(
e
,
t
,
A
){
"use strict"
;
var
a
=
A
(
29
),
i
=
A
(
12
),
n
=
A
(
1
);
var
o
=
Object
(
n
.
a
)(
i
.
default
,
a
.
b
,
a
.
c
,
!
1
,
null
,
null
,
"14d2bcf2"
,
!
1
,
a
.
a
,
void
0
);(
function
(
e
){
this
.
options
.
style
||
(
this
.
options
.
style
=
{}),
Vue
.
prototype
.
__merge_style
&&
Vue
.
prototype
.
__$appStyle__
&&
Vue
.
prototype
.
__merge_style
(
Vue
.
prototype
.
__$appStyle__
,
this
.
options
.
style
),
Vue
.
prototype
.
__merge_style
?
Vue
.
prototype
.
__merge_style
(
A
(
36
).
default
,
this
.
options
.
style
):
Object
.
assign
(
this
.
options
.
style
,
A
(
36
).
default
)}).
call
(
o
),
t
.
default
=
o
.
exports
},,,,,
function
(
e
,
t
,
A
){
"use strict"
;
var
a
=
A
(
13
),
i
=
A
.
n
(
a
);
t
.
default
=
i
.
a
},
function
(
e
,
t
,
A
){
"use strict"
;(
function
(
e
,
a
){
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
i
=
o
(
A
(
5
)),
n
=
o
(
A
(
6
));
function
o
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
function
s
(
e
,
t
){
var
A
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
a
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
a
=
a
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
A
.
push
.
apply
(
A
,
a
)}
return
A
}
function
r
(
e
,
t
,
A
){
return
t
in
e
?
Object
.
defineProperty
(
e
,
t
,{
value
:
A
,
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
}):
e
[
t
]
=
A
,
e
}
weex
.
requireModule
(
"dom"
).
addRule
(
"fontFace"
,{
fontFamily
:
"unichooselocation"
,
src
:
"url('data:font/truetype;charset=utf-8;base64,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aG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"
});
var
c
=
weex
.
requireModule
(
"mapSearch"
),
l
=
"data:image/png;base64,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"
;
var
d
=
{
mixins
:[
i
.
default
,
n
.
default
],
data
:
function
(){
return
{
positionIcon
:
l
,
mapScale
:
16
,
userKeyword
:
""
,
showLocation
:
!
0
,
latitude
:
39.908692
,
longitude
:
116.397477
,
nearList
:[],
nearSelectedIndex
:
-
1
,
nearLoading
:
!
1
,
nearLoadingEnd
:
!
1
,
noNearData
:
!
1
,
isUserLocation
:
!
1
,
statusBarHeight
:
20
,
mapHeight
:
250
,
markers
:[{
id
:
"location"
,
latitude
:
39.908692
,
longitude
:
116.397477
,
zIndex
:
"1"
,
iconPath
:
l
,
width
:
26
,
height
:
36
}],
showSearch
:
!
1
,
searchList
:[],
searchSelectedIndex
:
-
1
,
searchLoading
:
!
1
,
searchEnd
:
!
1
,
noSearchData
:
!
1
,
localization
:{
en
:{
search_tips
:
"Search for a place"
,
no_found
:
"No results found"
,
nearby
:
"Nearby"
,
more
:
"More"
},
zh
:{
search_tips
:
"搜索地点"
,
no_found
:
"对不起,没有搜索到相关数据"
,
nearby
:
"附近"
,
more
:
"更多"
}},
searchNearFlag
:
!
0
,
searchMethod
:
"poiSearchNearBy"
}},
computed
:{
disableOK
:
function
(){
return
this
.
nearSelectedIndex
<
0
&&
this
.
searchSelectedIndex
<
0
},
searchMethods
:
function
(){
return
[{
title
:
this
.
localize
(
"nearby"
),
method
:
"poiSearchNearBy"
},{
title
:
this
.
localize
(
"more"
),
method
:
"poiKeywordsSearch"
}]}},
filters
:{
distance
:
function
(
e
){
return
e
>
100
?
""
.
concat
(
e
>
1
e3
?(
e
/
1
e3
).
toFixed
(
1
)
+
"k"
:
e
.
toFixed
(
0
),
"m | "
):
e
>
0
?
"100m内 | "
:
""
}},
watch
:{
searchMethod
:
function
(){
this
.
_searchPageIndex
=
1
,
this
.
searchEnd
=!
1
,
this
.
searchList
=
[],
this
.
_searchKeyword
&&
this
.
search
()}},
onLoad
:
function
(){
this
.
statusBarHeight
=
e
.
navigator
.
getStatusbarHeight
(),
this
.
mapHeight
=
e
.
screen
.
resolutionHeight
/
2
;
var
t
=
this
.
data
;
this
.
userKeyword
=
t
.
keyword
||
""
,
this
.
_searchInputTimer
=
null
,
this
.
_searchPageIndex
=
1
,
this
.
_searchKeyword
=
""
,
this
.
_nearPageIndex
=
1
,
this
.
_hasUserLocation
=!
1
,
this
.
_userLatitude
=
0
,
this
.
_userLongitude
=
0
},
onReady
:
function
(){
this
.
mapContext
=
this
.
$refs
.
map1
,
this
.
data
.
latitude
&&
this
.
data
.
longitude
?(
this
.
_hasUserLocation
=!
0
,
this
.
moveToCenter
({
latitude
:
this
.
data
.
latitude
,
longitude
:
this
.
data
.
longitude
})):
this
.
getUserLocation
()},
onUnload
:
function
(){
this
.
clearSearchTimer
()},
methods
:{
cancelClick
:
function
(){
this
.
postMessage
({
event
:
"cancel"
})},
doneClick
:
function
(){
if
(
!
this
.
disableOK
){
var
e
=
this
.
showSearch
&&
this
.
searchSelectedIndex
>=
0
?
this
.
searchList
[
this
.
searchSelectedIndex
]:
this
.
nearList
[
this
.
nearSelectedIndex
],
t
=
{
name
:
e
.
name
,
address
:
e
.
address
,
latitude
:
e
.
location
.
latitude
,
longitude
:
e
.
location
.
longitude
};
this
.
postMessage
({
event
:
"selected"
,
detail
:
t
})}},
getUserLocation
:
function
(){
var
t
=
this
;
e
.
geolocation
.
getCurrentPosition
((
function
(
e
){
var
A
=
e
.
coordsType
,
a
=
e
.
coords
;
"wgs84"
===
A
.
toLowerCase
()?
t
.
wgs84togcjo2
(
a
,(
function
(
e
){
t
.
getUserLocationSuccess
(
e
)})):
t
.
getUserLocationSuccess
(
a
)}),(
function
(
e
){
t
.
_hasUserLocation
=!
0
,
a
(
"log"
,
"Gelocation Error: code - "
+
e
.
code
+
"; message - "
+
e
.
message
,
" at template/__uniappchooselocation.nvue:292"
)}),{
geocode
:
!
1
})},
getUserLocationSuccess
:
function
(
e
){
this
.
_userLatitude
=
e
.
latitude
,
this
.
_userLongitude
=
e
.
longitude
,
this
.
_hasUserLocation
=!
0
,
this
.
moveToCenter
({
latitude
:
e
.
latitude
,
longitude
:
e
.
longitude
})},
searchclick
:
function
(
t
){
this
.
showSearch
=
t
,
!
1
===
t
&&
e
.
key
.
hideSoftKeybord
()},
showSearchView
:
function
(){
this
.
searchList
=
[],
this
.
showSearch
=!
0
},
hideSearchView
:
function
(){
this
.
showSearch
=!
1
,
e
.
key
.
hideSoftKeybord
(),
this
.
noSearchData
=!
1
,
this
.
searchSelectedIndex
=-
1
,
this
.
_searchKeyword
=
""
},
onregionchange
:
function
(
e
){
var
t
=
this
,
A
=
e
.
detail
,
a
=
A
.
type
||
e
.
type
;
"drag"
===
(
A
.
causedBy
||
e
.
causedBy
)
&&
"end"
===
a
&&
this
.
mapContext
.
getCenterLocation
((
function
(
e
){
t
.
searchNearFlag
?
t
.
moveToCenter
({
latitude
:
e
.
latitude
,
longitude
:
e
.
longitude
}):
t
.
searchNearFlag
=!
t
.
searchNearFlag
}))},
onItemClick
:
function
(
e
,
t
){
this
.
searchNearFlag
=!
1
,
t
.
stopPropagation
&&
t
.
stopPropagation
(),
this
.
nearSelectedIndex
!==
e
&&
(
this
.
nearSelectedIndex
=
e
),
this
.
moveToLocation
(
this
.
nearList
[
e
]
&&
this
.
nearList
[
e
].
location
)},
moveToCenter
:
function
(
e
){
this
.
latitude
===
e
.
latitude
&&
this
.
longitude
===
e
.
longitude
||
(
this
.
latitude
=
e
.
latitude
,
this
.
longitude
=
e
.
longitude
,
this
.
updateCenter
(
e
),
this
.
moveToLocation
(
e
),
this
.
isUserLocation
=
this
.
_userLatitude
===
e
.
latitude
&&
this
.
_userLongitude
===
e
.
longitude
)},
updateCenter
:
function
(
e
){
var
t
=
this
;
this
.
nearSelectedIndex
=-
1
,
this
.
nearList
=
[],
this
.
_hasUserLocation
&&
(
this
.
_nearPageIndex
=
1
,
this
.
nearLoadingEnd
=!
1
,
this
.
reverseGeocode
(
e
),
this
.
searchNearByPoint
(
e
),
this
.
onItemClick
(
0
,{
stopPropagation
:
function
(){
t
.
searchNearFlag
=!
0
}}),
this
.
$refs
.
nearListLoadmore
.
resetLoadmore
())},
searchNear
:
function
(){
this
.
nearLoadingEnd
||
this
.
searchNearByPoint
({
latitude
:
this
.
latitude
,
longitude
:
this
.
longitude
})},
searchNearByPoint
:
function
(
e
){
var
t
=
this
;
this
.
noNearData
=!
1
,
this
.
nearLoading
=!
0
,
c
.
poiSearchNearBy
({
point
:{
latitude
:
e
.
latitude
,
longitude
:
e
.
longitude
},
key
:
this
.
userKeyword
,
index
:
this
.
_nearPageIndex
,
radius
:
1
e3
},(
function
(
e
){
t
.
nearLoading
=!
1
,
t
.
_nearPageIndex
=
e
.
pageIndex
+
1
,
t
.
nearLoadingEnd
=
e
.
pageIndex
===
e
.
pageNumber
,
e
.
poiList
&&
e
.
poiList
.
length
?(
t
.
fixPois
(
e
.
poiList
),
t
.
nearList
=
t
.
nearList
.
concat
(
e
.
poiList
),
t
.
fixNearList
()):
t
.
noNearData
=
0
===
t
.
nearList
.
length
}))},
moveToLocation
:
function
(
e
){
e
&&
this
.
mapContext
.
moveToLocation
(
function
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
A
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
s
(
Object
(
A
),
!
0
).
forEach
((
function
(
t
){
r
(
e
,
t
,
A
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
A
)):
s
(
Object
(
A
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
A
,
t
))}))}
return
e
}({},
e
,{
fail
:
function
(
e
){
a
(
"error"
,
"chooseLocation_moveToLocation"
,
e
,
" at template/__uniappchooselocation.nvue:418"
)}}))},
reverseGeocode
:
function
(
e
){
var
t
=
this
;
c
.
reverseGeocode
({
point
:
e
},(
function
(
A
){
"success"
===
A
.
type
&&
t
.
_nearPageIndex
<=
2
&&
(
t
.
nearList
.
splice
(
0
,
0
,{
code
:
A
.
code
,
location
:
e
,
name
:
"地图位置"
,
address
:
A
.
address
||
""
}),
t
.
fixNearList
())}))},
fixNearList
:
function
(){
var
e
=
this
.
nearList
;
if
(
e
.
length
>=
2
&&
"地图位置"
===
e
[
0
].
name
){
var
t
=
this
.
getAddressStart
(
e
[
1
]),
A
=
e
[
0
].
address
;
A
.
startsWith
(
t
)
&&
(
e
[
0
].
name
=
A
.
substring
(
t
.
length
))}},
onsearchinput
:
function
(
e
){
var
t
=
this
,
A
=
e
.
detail
.
value
.
replace
(
/^
\s
+|
\s
+$/g
,
""
);
this
.
clearSearchTimer
(),
this
.
_searchInputTimer
=
setTimeout
((
function
(){
clearTimeout
(
t
.
_searchInputTimer
),
t
.
_searchPageIndex
=
1
,
t
.
searchEnd
=!
1
,
t
.
_searchKeyword
=
A
,
t
.
searchList
=
[],
t
.
search
()}),
300
)},
clearSearchTimer
:
function
(){
this
.
_searchInputTimer
&&
clearTimeout
(
this
.
_searchInputTimer
)},
search
:
function
(){
var
e
=
this
;
0
===
this
.
_searchKeyword
.
length
||
this
.
_searchEnd
||
this
.
searchLoading
||
(
this
.
searchLoading
=!
0
,
this
.
noSearchData
=!
1
,
c
[
this
.
searchMethod
]({
point
:{
latitude
:
this
.
latitude
,
longitude
:
this
.
longitude
},
key
:
this
.
_searchKeyword
,
index
:
this
.
_searchPageIndex
,
radius
:
5
e4
},(
function
(
t
){
e
.
searchLoading
=!
1
,
e
.
_searchPageIndex
=
t
.
pageIndex
+
1
,
e
.
searchEnd
=
t
.
pageIndex
===
t
.
pageNumber
,
t
.
poiList
&&
t
.
poiList
.
length
?(
e
.
fixPois
(
t
.
poiList
),
e
.
searchList
=
e
.
searchList
.
concat
(
t
.
poiList
)):
e
.
noSearchData
=
0
===
e
.
searchList
.
length
})))},
onSearchListTouchStart
:
function
(){
e
.
key
.
hideSoftKeybord
()},
onSearchItemClick
:
function
(
e
,
t
){
t
.
stopPropagation
(),
this
.
searchSelectedIndex
!==
e
&&
(
this
.
searchSelectedIndex
=
e
),
this
.
moveToLocation
(
this
.
searchList
[
e
]
&&
this
.
searchList
[
e
].
location
)},
getAddressStart
:
function
(
e
){
var
t
=
e
.
addressOrigin
||
e
.
address
;
return
e
.
province
+
(
e
.
province
===
e
.
city
?
""
:
e
.
city
)
+
(
/^
\d
+$/
.
test
(
e
.
district
)?
""
:
t
.
startsWith
(
e
.
district
)?
""
:
e
.
district
)},
fixPois
:
function
(
e
){
for
(
var
t
=
0
;
t
<
e
.
length
;
t
++
){
var
A
=
e
[
t
];
A
.
name
=
A
.
name
.
replace
(
/
\\
/g
,
""
),
A
.
addressOrigin
=
A
.
address
.
replace
(
/
\\
/g
,
""
),
A
.
address
=
this
.
getAddressStart
(
A
)
+
A
.
addressOrigin
}},
wgs84togcjo2
:
function
(
e
,
t
){
var
A
=
weex
.
requireModule
(
"stream"
),
a
=
"https://apis.map.qq.com/jsapi?qt=translate&type=1&points="
.
concat
(
e
.
longitude
,
","
).
concat
(
e
.
latitude
,
"&key=MAP_KEY&output=json&pf=jsapi&ref=jsapi"
);
A
.
fetch
({
method
:
"GET"
,
url
:
a
,
type
:
"json"
},(
function
(
e
){
if
(
e
.
ok
){
var
A
=
e
.
data
.
detail
.
points
[
0
];
t
({
latitude
:
A
.
lat
,
longitude
:
A
.
lng
})}}))}}};
t
.
default
=
d
}).
call
(
this
,
A
(
2
).
weexPlus
,
A
(
35
).
default
)},
function
(
e
,
t
){
e
.
exports
=
{
map_center_marker_container
:{
alignItems
:
"flex-start"
,
width
:
"22"
,
height
:
"70"
},
map_center_marker
:{
width
:
"22"
,
height
:
"35"
},
"unichooselocation-icons"
:{
fontFamily
:
"unichooselocation"
,
textDecoration
:
"none"
,
textAlign
:
"center"
},
page
:{
flex
:
1
,
position
:
"relative"
},
"flex-r"
:{
flexDirection
:
"row"
,
flexWrap
:
"nowrap"
},
"flex-c"
:{
flexDirection
:
"column"
,
flexWrap
:
"nowrap"
},
"flex-fill"
:{
flex
:
1
},
"a-i-c"
:{
alignItems
:
"center"
},
"j-c-c"
:{
justifyContent
:
"center"
},
"nav-cover"
:{
position
:
"absolute"
,
left
:
0
,
top
:
0
,
right
:
0
,
height
:
"100"
,
backgroundImage
:
"linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0))"
},
statusbar
:{
height
:
"22"
},
"title-view"
:{
paddingTop
:
"5"
,
paddingRight
:
"15"
,
paddingBottom
:
"5"
,
paddingLeft
:
"15"
},
"btn-cancel"
:{
paddingTop
:
0
,
paddingRight
:
0
,
paddingBottom
:
0
,
paddingLeft
:
0
},
"btn-cancel-text"
:{
fontSize
:
"30"
,
color
:
"#ffffff"
},
"btn-done"
:{
backgroundColor
:
"#007AFF"
,
borderRadius
:
"3"
,
paddingTop
:
"5"
,
paddingRight
:
"12"
,
paddingBottom
:
"5"
,
paddingLeft
:
"12"
},
"btn-done-disabled"
:{
backgroundColor
:
"#62abfb"
},
"text-done"
:{
color
:
"#ffffff"
,
fontSize
:
"15"
,
fontWeight
:
"bold"
,
lineHeight
:
"15"
,
height
:
"15"
},
"text-done-disabled"
:{
color
:
"#c0ddfe"
},
"map-view"
:{
flex
:
2
,
position
:
"relative"
},
map
:{
width
:
"750rpx"
,
justifyContent
:
"center"
,
alignItems
:
"center"
},
"map-location"
:{
position
:
"absolute"
,
right
:
"20"
,
bottom
:
"25"
,
width
:
"44"
,
height
:
"44"
,
backgroundColor
:
"#ffffff"
,
borderRadius
:
"40"
,
boxShadow
:
"0 2px 4px rgba(100, 100, 100, 0.2)"
},
"map-location-text"
:{
fontSize
:
"20"
},
"map-location-text-active"
:{
color
:
"#007AFF"
},
"result-area"
:{
flex
:
2
,
position
:
"relative"
},
"search-bar"
:{
paddingTop
:
"12"
,
paddingRight
:
"15"
,
paddingBottom
:
"12"
,
paddingLeft
:
"15"
,
backgroundColor
:
"#ffffff"
},
"search-area"
:{
backgroundColor
:
"#ebebeb"
,
borderRadius
:
"5"
,
height
:
"30"
,
paddingLeft
:
"8"
},
"search-text"
:{
fontSize
:
"14"
,
lineHeight
:
"16"
,
color
:
"#b4b4b4"
},
"search-icon"
:{
fontSize
:
"16"
,
color
:
"#b4b4b4"
,
marginRight
:
"4"
},
"search-tab"
:{
flexDirection
:
"row"
,
paddingTop
:
"2"
,
paddingRight
:
"16"
,
paddingBottom
:
"2"
,
paddingLeft
:
"16"
,
marginTop
:
"-10"
,
backgroundColor
:
"#FFFFFF"
},
"search-tab-item"
:{
marginTop
:
0
,
marginRight
:
"5"
,
marginBottom
:
0
,
marginLeft
:
"5"
,
textAlign
:
"center"
,
fontSize
:
"14"
,
lineHeight
:
"32"
,
color
:
"#333333"
,
borderBottomStyle
:
"solid"
,
borderBottomWidth
:
"2"
,
borderBottomColor
:
"rgba(0,0,0,0)"
},
"search-tab-item-active"
:{
borderBottomColor
:
"#0079FF"
},
"no-data"
:{
color
:
"#808080"
},
"no-data-search"
:{
marginTop
:
"50"
},
"list-item"
:{
position
:
"relative"
,
paddingTop
:
"12"
,
paddingRight
:
"15"
,
paddingBottom
:
"12"
,
paddingLeft
:
"15"
},
"list-line"
:{
position
:
"absolute"
,
left
:
"15"
,
right
:
0
,
bottom
:
0
,
height
:
".5"
,
backgroundColor
:
"#d3d3d3"
},
"list-name"
:{
fontSize
:
"14"
,
lines
:
1
,
textOverflow
:
"ellipsis"
},
"list-address"
:{
fontSize
:
"12"
,
color
:
"#808080"
,
lines
:
1
,
textOverflow
:
"ellipsis"
,
marginTop
:
"5"
},
"list-icon-area"
:{
paddingLeft
:
"10"
,
paddingRight
:
"10"
},
"list-selected-icon"
:{
fontSize
:
"20"
,
color
:
"#007AFF"
},
"search-view"
:{
position
:
"absolute"
,
left
:
0
,
top
:
0
,
right
:
0
,
bottom
:
0
,
backgroundColor
:
"#f6f6f6"
},
"searching-area"
:{
flex
:
5
},
"search-input"
:{
fontSize
:
"14"
,
height
:
"30"
,
paddingLeft
:
"6"
},
"search-cancel"
:{
color
:
"#0079FF"
,
marginLeft
:
"10"
},
"loading-view"
:{
paddingTop
:
"15"
,
paddingRight
:
"15"
,
paddingBottom
:
"15"
,
paddingLeft
:
"15"
},
"loading-icon"
:{
width
:
"28"
,
height
:
"28"
,
color
:
"#808080"
}}},,,,,,,,,,,,,,,
function
(
e
,
t
,
A
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
A
=
e
.
_self
.
_c
||
t
;
return
A
(
"scroll-view"
,{
staticStyle
:{
flexDirection
:
"column"
},
attrs
:{
scrollY
:
!
0
,
enableBackToTop
:
!
0
,
bubble
:
"true"
}},[
A
(
"view"
,{
staticClass
:[
"page"
,
"flex-c"
]},[
A
(
"view"
,{
staticClass
:[
"flex-r"
,
"map-view"
]},[
A
(
"map"
,{
ref
:
"map1"
,
staticClass
:[
"map"
,
"flex-fill"
],
style
:
"height:"
+
e
.
mapHeight
+
"px"
,
attrs
:{
scale
:
e
.
mapScale
,
showLocation
:
e
.
showLocation
,
longitude
:
e
.
longitude
,
latitude
:
e
.
latitude
},
on
:{
regionchange
:
e
.
onregionchange
}},[
A
(
"div"
,{
staticClass
:[
"map_center_marker_container"
]},[
A
(
"u-image"
,{
staticClass
:[
"map_center_marker"
],
attrs
:{
src
:
e
.
positionIcon
}})],
1
)]),
A
(
"view"
,{
staticClass
:[
"map-location"
,
"flex-c"
,
"a-i-c"
,
"j-c-c"
],
on
:{
click
:
function
(
t
){
e
.
getUserLocation
()}}},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"map-location-text"
],
class
:{
"map-location-text-active"
:
e
.
isUserLocation
}},[
e
.
_v
(
""
)])]),
A
(
"view"
,{
staticClass
:[
"nav-cover"
]},[
A
(
"view"
,{
staticClass
:[
"statusbar"
],
style
:
"height:"
+
e
.
statusBarHeight
+
"px"
}),
A
(
"view"
,{
staticClass
:[
"title-view"
,
"flex-r"
]},[
A
(
"view"
,{
staticClass
:[
"btn-cancel"
],
on
:{
click
:
e
.
cancelClick
}},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"btn-cancel-text"
]},[
e
.
_v
(
""
)])]),
A
(
"view"
,{
staticClass
:[
"flex-fill"
]}),
A
(
"view"
,{
staticClass
:[
"btn-done"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
],
class
:{
"btn-done-disabled"
:
e
.
disableOK
},
on
:{
click
:
e
.
doneClick
}},[
A
(
"u-text"
,{
staticClass
:[
"text-done"
],
class
:{
"text-done-disabled"
:
e
.
disableOK
}},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"done"
)))])])])])],
1
),
A
(
"view"
,{
staticClass
:[
"flex-c"
,
"result-area"
],
class
:{
"searching-area"
:
e
.
showSearch
}},[
A
(
"view"
,{
staticClass
:[
"search-bar"
]},[
A
(
"view"
,{
staticClass
:[
"search-area"
,
"flex-r"
,
"a-i-c"
],
on
:{
click
:
e
.
showSearchView
}},[
A
(
"u-text"
,{
staticClass
:[
"search-icon"
,
"unichooselocation-icons"
]},[
e
.
_v
(
""
)]),
A
(
"u-text"
,{
staticClass
:[
"search-text"
]},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"search_tips"
)))])])]),
e
.
noNearData
?
e
.
_e
():
A
(
"list"
,{
ref
:
"nearListLoadmore"
,
staticClass
:[
"flex-fill"
,
"list-view"
],
attrs
:{
loadmoreoffset
:
"5"
,
scrollY
:
!
0
},
on
:{
loadmore
:
function
(
t
){
e
.
searchNear
()}}},[
e
.
_l
(
e
.
nearList
,(
function
(
t
,
a
){
return
A
(
"cell"
,{
key
:
t
.
uid
,
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"list-item"
],
on
:{
click
:
function
(
t
){
e
.
onItemClick
(
a
,
t
)}}},[
A
(
"view"
,{
staticClass
:[
"flex-r"
]},[
A
(
"view"
,{
staticClass
:[
"list-text-area"
,
"flex-fill"
,
"flex-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"list-name"
]},[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
A
(
"u-text"
,{
staticClass
:[
"list-address"
]},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"distance"
)(
t
.
distance
))
+
e
.
_s
(
t
.
address
))])]),
a
===
e
.
nearSelectedIndex
?
A
(
"view"
,{
staticClass
:[
"list-icon-area"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"list-selected-icon"
]},[
e
.
_v
(
""
)])]):
e
.
_e
()]),
A
(
"view"
,{
staticClass
:[
"list-line"
]})])])})),
e
.
nearLoading
?
A
(
"cell"
,{
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"loading-view"
,
"flex-c"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"loading-indicator"
,{
staticClass
:[
"loading-icon"
],
attrs
:{
animating
:
!
0
,
arrow
:
"false"
}})])]):
e
.
_e
()],
2
),
e
.
noNearData
?
A
(
"view"
,{
staticClass
:[
"flex-fill"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"no-data"
]},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"no_found"
)))])]):
e
.
_e
(),
e
.
showSearch
?
A
(
"view"
,{
staticClass
:[
"search-view"
,
"flex-c"
]},[
A
(
"view"
,{
staticClass
:[
"search-bar"
,
"flex-r"
,
"a-i-c"
]},[
A
(
"view"
,{
staticClass
:[
"search-area"
,
"flex-fill"
,
"flex-r"
]},[
A
(
"u-input"
,{
staticClass
:[
"search-input"
,
"flex-fill"
],
attrs
:{
focus
:
!
0
,
placeholder
:
e
.
localize
(
"search_tips"
)},
on
:{
input
:
e
.
onsearchinput
}})],
1
),
A
(
"u-text"
,{
staticClass
:[
"search-cancel"
],
on
:{
click
:
e
.
hideSearchView
}},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"cancel"
)))])]),
A
(
"view"
,{
staticClass
:[
"search-tab"
]},
e
.
_l
(
e
.
searchMethods
,(
function
(
t
,
a
){
return
A
(
"u-text"
,{
key
:
a
,
staticClass
:[
"search-tab-item"
],
class
:{
"search-tab-item-active"
:
t
.
method
===
e
.
searchMethod
},
on
:{
click
:
function
(
A
){
e
.
searchMethod
=
e
.
searchLoading
?
e
.
searchMethod
:
t
.
method
}}},[
e
.
_v
(
e
.
_s
(
t
.
title
))])})),
0
),
e
.
noSearchData
?
e
.
_e
():
A
(
"list"
,{
staticClass
:[
"flex-fill"
,
"list-view"
],
attrs
:{
enableBackToTop
:
!
0
,
scrollY
:
!
0
},
on
:{
loadmore
:
function
(
t
){
e
.
search
()},
touchstart
:
e
.
onSearchListTouchStart
}},[
e
.
_l
(
e
.
searchList
,(
function
(
t
,
a
){
return
A
(
"cell"
,{
key
:
t
.
uid
,
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"list-item"
],
on
:{
click
:
function
(
t
){
e
.
onSearchItemClick
(
a
,
t
)}}},[
A
(
"view"
,{
staticClass
:[
"flex-r"
]},[
A
(
"view"
,{
staticClass
:[
"list-text-area"
,
"flex-fill"
,
"flex-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"list-name"
]},[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
A
(
"u-text"
,{
staticClass
:[
"list-address"
]},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"distance"
)(
t
.
distance
))
+
e
.
_s
(
t
.
address
))])]),
a
===
e
.
searchSelectedIndex
?
A
(
"view"
,{
staticClass
:[
"list-icon-area"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"list-selected-icon"
]},[
e
.
_v
(
""
)])]):
e
.
_e
()]),
A
(
"view"
,{
staticClass
:[
"list-line"
]})])])})),
e
.
searchLoading
?
A
(
"cell"
,{
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"loading-view"
,
"flex-c"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"loading-indicator"
,{
staticClass
:[
"loading-icon"
],
attrs
:{
animating
:
!
0
}})])]):
e
.
_e
()],
2
),
e
.
noSearchData
?
A
(
"view"
,{
staticClass
:[
"flex-fill"
,
"flex-r"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"no-data"
,
"no-data-search"
]},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"no_found"
)))])]):
e
.
_e
()]):
e
.
_e
()])])])},
i
=
[];
A
.
d
(
t
,
"b"
,(
function
(){
return
a
})),
A
.
d
(
t
,
"c"
,(
function
(){
return
i
})),
A
.
d
(
t
,
"a"
,(
function
(){}))},,,,,,
function
(
e
,
t
,
A
){
"use strict"
;
function
a
(
e
){
var
t
=
Object
.
prototype
.
toString
.
call
(
e
);
return
t
.
substring
(
8
,
t
.
length
-
1
)}
function
i
(){
return
"string"
==
typeof
__channelId__
&&
__channelId__
}
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
log
=
function
(
e
){
for
(
var
t
=
arguments
.
length
,
A
=
new
Array
(
t
>
1
?
t
-
1
:
0
),
a
=
1
;
a
<
t
;
a
++
)
A
[
a
-
1
]
=
arguments
[
a
];
console
[
e
].
apply
(
console
,
A
)},
t
.
default
=
function
(){
for
(
var
e
=
arguments
.
length
,
t
=
new
Array
(
e
),
A
=
0
;
A
<
e
;
A
++
)
t
[
A
]
=
arguments
[
A
];
var
n
=
t
.
shift
();
if
(
i
())
return
t
.
push
(
t
.
pop
().
replace
(
"at "
,
"uni-app:///"
)),
console
[
n
].
apply
(
console
,
t
);
var
o
=
t
.
map
((
function
(
e
){
var
t
=
Object
.
prototype
.
toString
.
call
(
e
).
toLowerCase
();
if
(
"[object object]"
===
t
||
"[object array]"
===
t
)
try
{
e
=
"---BEGIN:JSON---"
+
JSON
.
stringify
(
e
)
+
"---END:JSON---"
}
catch
(
t
){
e
=
"[object object]"
}
else
if
(
null
===
e
)
e
=
"---NULL---"
;
else
if
(
void
0
===
e
)
e
=
"---UNDEFINED---"
;
else
{
var
A
=
a
(
e
).
toUpperCase
();
e
=
"NUMBER"
===
A
||
"BOOLEAN"
===
A
?
"---BEGIN:"
+
A
+
"---"
+
e
+
"---END:"
+
A
+
"---"
:
String
(
e
)}
return
e
})),
s
=
""
;
if
(
o
.
length
>
1
){
var
r
=
o
.
pop
();
s
=
o
.
join
(
"---COMMA---"
),
0
===
r
.
indexOf
(
" at "
)?
s
+=
r
:
s
+=
"---COMMA---"
+
r
}
else
s
=
o
[
0
];
console
[
n
](
s
)}},
function
(
e
,
t
,
A
){
"use strict"
;
A
.
r
(
t
);
var
a
=
A
(
14
),
i
=
A
.
n
(
a
);
for
(
var
n
in
a
)
"default"
!==
n
&&
function
(
e
){
A
.
d
(
t
,
e
,(
function
(){
return
a
[
e
]}))}(
n
);
t
.
default
=
i
.
a
},,,,,
function
(
e
,
t
,
A
){
"use strict"
;
A
.
r
(
t
);
A
(
3
);
var
a
=
A
(
7
);
a
.
default
.
mpType
=
"page"
,
a
.
default
.
route
=
"template/__uniappchooselocation"
,
a
.
default
.
el
=
"#root"
,
new
Vue
(
a
.
default
)}]);
\ No newline at end of file
!
function
(
e
){
var
t
=
{};
function
A
(
a
){
if
(
t
[
a
])
return
t
[
a
].
exports
;
var
i
=
t
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
i
.
exports
,
i
,
i
.
exports
,
A
),
i
.
l
=!
0
,
i
.
exports
}
A
.
m
=
e
,
A
.
c
=
t
,
A
.
d
=
function
(
e
,
t
,
a
){
A
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
a
})},
A
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
A
.
t
=
function
(
e
,
t
){
if
(
1
&
t
&&
(
e
=
A
(
e
)),
8
&
t
)
return
e
;
if
(
4
&
t
&&
"object"
==
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
a
=
Object
.
create
(
null
);
if
(
A
.
r
(
a
),
Object
.
defineProperty
(
a
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
t
&&
"string"
!=
typeof
e
)
for
(
var
i
in
e
)
A
.
d
(
a
,
i
,
function
(
t
){
return
e
[
t
]}.
bind
(
null
,
i
));
return
a
},
A
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
A
.
d
(
t
,
"a"
,
t
),
t
},
A
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
A
.
p
=
""
,
A
(
A
.
s
=
41
)}([
function
(
e
,
t
){
e
.
exports
=
{}},
function
(
e
,
t
,
A
){
"use strict"
;
function
a
(
e
,
t
,
A
,
a
,
i
,
n
,
o
,
s
,
r
,
c
){
var
l
,
u
=
"function"
==
typeof
e
?
e
.
options
:
e
;
if
(
r
){
u
.
components
||
(
u
.
components
=
{});
var
d
=
Object
.
prototype
.
hasOwnProperty
;
for
(
var
h
in
r
)
d
.
call
(
r
,
h
)
&&!
d
.
call
(
u
.
components
,
h
)
&&
(
u
.
components
[
h
]
=
r
[
h
])}
if
(
c
&&
((
c
.
beforeCreate
||
(
c
.
beforeCreate
=
[])).
unshift
((
function
(){
this
[
c
.
__module
]
=
this
})),(
u
.
mixins
||
(
u
.
mixins
=
[])).
push
(
c
)),
t
&&
(
u
.
render
=
t
,
u
.
staticRenderFns
=
A
,
u
.
_compiled
=!
0
),
a
&&
(
u
.
functional
=!
0
),
n
&&
(
u
.
_scopeId
=
"data-v-"
+
n
),
o
?(
l
=
function
(
e
){(
e
=
e
||
this
.
$vnode
&&
this
.
$vnode
.
ssrContext
||
this
.
parent
&&
this
.
parent
.
$vnode
&&
this
.
parent
.
$vnode
.
ssrContext
)
||
"undefined"
==
typeof
__VUE_SSR_CONTEXT__
||
(
e
=
__VUE_SSR_CONTEXT__
),
i
&&
i
.
call
(
this
,
e
),
e
&&
e
.
_registeredComponents
&&
e
.
_registeredComponents
.
add
(
o
)},
u
.
_ssrRegister
=
l
):
i
&&
(
l
=
s
?
function
(){
i
.
call
(
this
,
this
.
$root
.
$options
.
shadowRoot
)}:
i
),
l
)
if
(
u
.
functional
){
u
.
_injectStyles
=
l
;
var
f
=
u
.
render
;
u
.
render
=
function
(
e
,
t
){
return
l
.
call
(
t
),
f
(
e
,
t
)}}
else
{
var
g
=
u
.
beforeCreate
;
u
.
beforeCreate
=
g
?[].
concat
(
g
,
l
):[
l
]}
return
{
exports
:
e
,
options
:
u
}}
A
.
d
(
t
,
"a"
,(
function
(){
return
a
}))},
function
(
e
,
t
,
A
){
"use strict"
;
var
a
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
weexPlus
=
t
.
default
=
void
0
,
a
=
"function"
==
typeof
getUni
?
getUni
:
function
(){
var
e
=
function
(
e
){
return
"function"
==
typeof
e
},
t
=
function
(
e
){
return
e
.
then
((
function
(
e
){
return
[
null
,
e
]})).
catch
((
function
(
e
){
return
[
e
]}))},
A
=
/^
\$
|^on|^create|Sync$|Manager$|^pause/
,
a
=
[
"os"
,
"getCurrentSubNVue"
,
"getSubNVueById"
,
"stopRecord"
,
"stopVoice"
,
"stopBackgroundAudio"
,
"stopPullDownRefresh"
,
"hideKeyboard"
,
"hideToast"
,
"hideLoading"
,
"showNavigationBarLoading"
,
"hideNavigationBarLoading"
,
"canIUse"
,
"navigateBack"
,
"closeSocket"
,
"pageScrollTo"
,
"drawCanvas"
],
n
=
function
(
e
){
return
(
!
A
.
test
(
e
)
||
"createBLEConnection"
===
e
)
&&!~
a
.
indexOf
(
e
)},
o
=
function
(
A
){
return
function
(){
for
(
var
a
=
arguments
.
length
,
i
=
Array
(
a
>
1
?
a
-
1
:
0
),
n
=
1
;
n
<
a
;
n
++
)
i
[
n
-
1
]
=
arguments
[
n
];
var
o
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{};
return
e
(
o
.
success
)
||
e
(
o
.
fail
)
||
e
(
o
.
complete
)?
A
.
apply
(
void
0
,[
o
].
concat
(
i
)):
t
(
new
Promise
((
function
(
e
,
t
){
A
.
apply
(
void
0
,[
Object
.
assign
({},
o
,{
success
:
e
,
fail
:
t
})].
concat
(
i
)),
Promise
.
prototype
.
finally
=
function
(
e
){
var
t
=
this
.
constructor
;
return
this
.
then
((
function
(
A
){
return
t
.
resolve
(
e
()).
then
((
function
(){
return
A
}))}),(
function
(
A
){
return
t
.
resolve
(
e
()).
then
((
function
(){
throw
A
}))}))}})))}},
s
=
[],
r
=
void
0
;
function
c
(
e
){
s
.
forEach
((
function
(
t
){
return
t
({
origin
:
r
,
data
:
e
})}))}
var
l
=
i
.
webview
.
currentWebview
().
id
,
u
=
new
BroadcastChannel
(
"UNI-APP-SUBNVUE"
);
function
d
(
e
){
var
t
=
i
.
webview
.
getWebviewById
(
e
);
return
t
&&!
t
.
$processed
&&
function
(
e
){
e
.
$processed
=!
0
;
var
t
=
i
.
webview
.
currentWebview
().
id
===
e
.
id
,
A
=
"uniNView"
===
e
.
__uniapp_origin_type
&&
e
.
__uniapp_origin_id
,
a
=
e
.
id
;
if
(
e
.
postMessage
=
function
(
e
){
A
?
u
.
postMessage
({
data
:
e
,
to
:
t
?
A
:
a
}):
w
({
type
:
"UniAppSubNVue"
,
data
:
e
})},
e
.
onMessage
=
function
(
e
){
s
.
push
(
e
)},
e
.
__uniapp_mask_id
){
r
=
e
.
__uniapp_host
;
var
n
=
e
.
__uniapp_mask
,
o
=
i
.
webview
.
getWebviewById
(
e
.
__uniapp_mask_id
);
o
=
o
.
parent
()
||
o
;
var
c
=
e
.
show
,
l
=
e
.
hide
,
d
=
e
.
close
,
h
=
function
(){
o
.
setStyle
({
mask
:
n
})},
f
=
function
(){
o
.
setStyle
({
mask
:
"none"
})};
e
.
show
=
function
(){
h
();
for
(
var
t
=
arguments
.
length
,
A
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
A
[
a
]
=
arguments
[
a
];
return
c
.
apply
(
e
,
A
)},
e
.
hide
=
function
(){
f
();
for
(
var
t
=
arguments
.
length
,
A
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
A
[
a
]
=
arguments
[
a
];
return
l
.
apply
(
e
,
A
)},
e
.
close
=
function
(){
f
();
for
(
var
t
=
arguments
.
length
,
A
=
Array
(
t
),
a
=
0
;
a
<
t
;
a
++
)
A
[
a
]
=
arguments
[
a
];
return
d
.
apply
(
e
,
A
)}}}(
t
),
t
}
u
.
onmessage
=
function
(
e
){
e
.
data
.
to
===
l
&&
c
(
e
.
data
.
data
)};
var
h
=
weex
.
requireModule
(
"plus"
),
f
=
weex
.
requireModule
(
"globalEvent"
),
g
=
0
,
p
=
{};
f
.
addEventListener
(
"plusMessage"
,(
function
(
e
){
"UniAppJsApi"
===
e
.
data
.
type
?
v
(
e
.
data
.
id
,
e
.
data
.
data
):
"UniAppSubNVue"
===
e
.
data
.
type
?
c
(
e
.
data
.
data
,
e
.
data
.
options
):
"onNavigationBarButtonTap"
===
e
.
data
.
type
?
"function"
==
typeof
_
&&
_
(
e
.
data
.
data
):
"onNavigationBarSearchInputChanged"
===
e
.
data
.
type
?
"function"
==
typeof
y
&&
y
(
e
.
data
.
data
):
"onNavigationBarSearchInputConfirmed"
===
e
.
data
.
type
?
"function"
==
typeof
B
&&
B
(
e
.
data
.
data
):
"onNavigationBarSearchInputClicked"
===
e
.
data
.
type
&&
"function"
==
typeof
x
&&
x
(
e
.
data
.
data
)}));
var
v
=
function
(
e
,
t
){
var
A
=
p
[
e
];
A
?(
A
(
t
),
A
.
keepAlive
||
delete
p
[
e
]):
console
.
error
(
"callback["
+
e
+
"] is undefined"
)},
m
=
function
(
t
){
var
A
,
a
,
i
=
t
.
id
,
n
=
t
.
type
,
o
=
t
.
params
;
p
[
i
]
=
(
a
=
function
(
t
){
e
(
A
)?
A
(
t
):
A
&&
(
~
t
.
errMsg
.
indexOf
(
":ok"
)?
e
(
A
.
success
)
&&
A
.
success
(
t
):
~
t
.
errMsg
.
indexOf
(
":fail"
)
&&
e
(
A
.
fail
)
&&
A
.
fail
(
t
),
e
(
A
.
complete
)
&&
A
.
complete
(
t
))},(
e
(
A
=
o
)
||
A
&&
e
(
A
.
callback
))
&&
(
a
.
keepAlive
=!
0
),
a
),
h
.
postMessage
({
id
:
i
,
type
:
n
,
params
:
o
},
"__uniapp__service"
)};
function
w
(
e
){
h
.
postMessage
(
e
,
"__uniapp__service"
)}
var
b
=
function
(
e
){
return
function
(
t
){
m
({
id
:
g
++
,
type
:
e
,
params
:
t
})}},
_
=
void
0
,
y
=
void
0
,
B
=
void
0
,
x
=
void
0
;
function
S
(
e
){
_
=
e
}
function
C
(
e
){
y
=
e
}
function
D
(
e
){
B
=
e
}
function
L
(
e
){
x
=
e
}
function
I
(
e
){
return
weex
.
requireModule
(
e
)}
var
E
=
weex
.
requireModule
(
"dom"
),
k
=
weex
.
requireModule
(
"globalEvent"
),
M
=
[];
function
N
(
e
){
"function"
==
typeof
e
&&
(
this
.
isUniAppReady
?
e
():
M
.
push
(
e
))}
k
.
addEventListener
(
"plusMessage"
,(
function
(
e
){
"UniAppReady"
===
e
.
data
.
type
&&
(
N
.
isUniAppReady
=!
0
,
M
.
length
&&
(
M
.
forEach
((
function
(
e
){
return
e
()})),
M
=
[]))}));
var
j
=
"function"
==
typeof
Symbol
&&
"symbol"
==
typeof
Symbol
.
iterator
?
function
(
e
){
return
typeof
e
}:
function
(
e
){
return
e
&&
"function"
==
typeof
Symbol
&&
e
.
constructor
===
Symbol
&&
e
!==
Symbol
.
prototype
?
"symbol"
:
typeof
e
},
O
=
weex
.
requireModule
(
"stream"
),
P
=
function
(
e
){
var
t
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:
"GET"
,
A
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
"application/x-www-form-urlencoded"
;
return
"object"
===
(
void
0
===
e
?
"undefined"
:
j
(
e
))?
"POST"
===
t
.
toUpperCase
()
&&
"application/json"
===
A
.
toLowerCase
()?
JSON
.
stringify
(
e
):
Object
.
keys
(
e
).
map
((
function
(
t
){
return
encodeURIComponent
(
t
)
+
"="
+
encodeURIComponent
(
e
[
t
])})).
join
(
"&"
):
e
},
G
=
weex
.
requireModule
(
"plusstorage"
),
T
=
weex
.
requireModule
(
"clipboard"
),
Q
=
function
(){
if
(
"function"
==
typeof
getUniEmitter
)
return
getUniEmitter
;
var
e
=
{
$on
:
function
(){
console
.
warn
(
"uni.$on failed"
)},
$off
:
function
(){
console
.
warn
(
"uni.$off failed"
)},
$once
:
function
(){
console
.
warn
(
"uni.$once failed"
)},
$emit
:
function
(){
console
.
warn
(
"uni.$emit failed"
)}};
return
function
(){
return
e
}}();
function
U
(
e
,
t
,
A
){
return
e
[
t
].
apply
(
e
,
A
)}
var
F
=
Object
.
freeze
({
loadFontFace
:
function
(
t
){
var
A
=
t
.
family
,
a
=
t
.
source
,
i
=
(
t
.
desc
,
t
.
success
),
n
=
(
t
.
fail
,
t
.
complete
);
E
.
addRule
(
"fontFace"
,{
fontFamily
:
A
,
src
:
a
.
replace
(
/"/g
,
"'"
)});
var
o
=
{
errMsg
:
"loadFontFace:ok"
,
status
:
"loaded"
};
e
(
i
)
&&
i
(
o
),
e
(
n
)
&&
n
(
o
)},
ready
:
N
,
request
:
function
(
t
){
var
A
=
t
.
url
,
a
=
t
.
data
,
i
=
t
.
header
,
n
=
t
.
method
,
o
=
void
0
===
n
?
"GET"
:
n
,
s
=
t
.
dataType
,
r
=
void
0
===
s
?
"json"
:
s
,
c
=
(
t
.
responseType
,
t
.
success
),
l
=
t
.
fail
,
u
=
t
.
complete
,
d
=!
1
,
h
=!
1
,
f
=
{};
if
(
i
)
for
(
var
g
in
i
)
h
||
"content-type"
!==
g
.
toLowerCase
()?
f
[
g
]
=
i
[
g
]:(
h
=!
0
,
f
[
"Content-Type"
]
=
i
[
g
]);
return
"GET"
===
o
&&
a
&&
(
A
=
A
+
(
~
A
.
indexOf
(
"?"
)?
"&"
===
A
.
substr
(
-
1
)
||
"?"
===
A
.
substr
(
-
1
)?
""
:
"&"
:
"?"
)
+
P
(
a
)),
O
.
fetch
({
url
:
A
,
method
:
o
,
headers
:
f
,
type
:
"json"
===
r
?
"json"
:
"text"
,
body
:
"GET"
!==
o
?
P
(
a
,
o
,
f
[
"Content-Type"
]):
""
},(
function
(
t
){
var
A
=
t
.
status
,
a
=
(
t
.
ok
,
t
.
statusText
,
t
.
data
),
i
=
t
.
headers
,
n
=
{};
!
A
||-
1
===
A
||
d
?(
n
.
errMsg
=
"request:fail"
,
e
(
l
)
&&
l
(
n
)):(
n
.
data
=
a
,
n
.
statusCode
=
A
,
n
.
header
=
i
,
e
(
c
)
&&
c
(
n
)),
e
(
u
)
&&
u
(
n
)})),{
abort
:
function
(){
d
=!
0
}}},
getStorage
:
function
(
t
){
var
A
=
t
.
key
,
a
=
(
t
.
data
,
t
.
success
),
i
=
t
.
fail
,
n
=
t
.
complete
;
G
.
getItem
(
A
+
"__TYPE"
,(
function
(
t
){
if
(
"success"
===
t
.
result
){
var
o
=
t
.
data
;
G
.
getItem
(
A
,(
function
(
t
){
if
(
"success"
===
t
.
result
){
var
A
=
t
.
data
;
o
&&
A
?(
"String"
!==
o
&&
(
A
=
JSON
.
parse
(
A
)),
e
(
a
)
&&
a
({
errMsg
:
"getStorage:ok"
,
data
:
A
})):(
t
.
errMsg
=
"setStorage:fail"
,
e
(
i
)
&&
i
(
t
))}
else
t
.
errMsg
=
"setStorage:fail"
,
e
(
i
)
&&
i
(
t
);
e
(
n
)
&&
n
(
t
)}))}
else
t
.
errMsg
=
"setStorage:fail"
,
e
(
i
)
&&
i
(
t
),
e
(
n
)
&&
n
(
t
)}))},
setStorage
:
function
(
t
){
var
A
=
t
.
key
,
a
=
t
.
data
,
i
=
t
.
success
,
n
=
t
.
fail
,
o
=
t
.
complete
,
s
=
"String"
;
"object"
===
(
void
0
===
a
?
"undefined"
:
j
(
a
))
&&
(
s
=
"Object"
,
a
=
JSON
.
stringify
(
a
)),
G
.
setItem
(
A
,
a
,(
function
(
t
){
"success"
===
t
.
result
?
G
.
setItem
(
A
+
"__TYPE"
,
s
,(
function
(
t
){
"success"
===
t
.
result
?
e
(
i
)
&&
i
({
errMsg
:
"setStorage:ok"
}):(
t
.
errMsg
=
"setStorage:fail"
,
e
(
n
)
&&
n
(
t
))})):(
t
.
errMsg
=
"setStorage:fail"
,
e
(
n
)
&&
n
(
t
)),
e
(
o
)
&&
o
(
t
)}))},
removeStorage
:
function
(
t
){
var
A
=
t
.
key
,
a
=
(
t
.
data
,
t
.
success
),
i
=
t
.
fail
,
n
=
t
.
complete
;
G
.
removeItem
(
A
,(
function
(
t
){
"success"
===
t
.
result
?
e
(
a
)
&&
a
({
errMsg
:
"removeStorage:ok"
}):(
t
.
errMsg
=
"removeStorage:fail"
,
e
(
i
)
&&
i
(
t
)),
e
(
n
)
&&
n
(
t
)})),
G
.
removeItem
(
A
+
"__TYPE"
)},
clearStorage
:
function
(
e
){
e
.
key
,
e
.
data
,
e
.
success
,
e
.
fail
,
e
.
complete
},
getClipboardData
:
function
(
t
){
var
A
=
t
.
success
,
a
=
(
t
.
fail
,
t
.
complete
);
T
.
getString
((
function
(
t
){
var
i
=
{
errMsg
:
"getClipboardData:ok"
,
data
:
t
.
data
};
e
(
A
)
&&
A
(
i
),
e
(
a
)
&&
a
(
i
)}))},
setClipboardData
:
function
(
t
){
var
A
=
t
.
data
,
a
=
t
.
success
,
i
=
(
t
.
fail
,
t
.
complete
),
n
=
{
errMsg
:
"setClipboardData:ok"
};
T
.
setString
(
A
),
e
(
a
)
&&
a
(
n
),
e
(
i
)
&&
i
(
n
)},
onSubNVueMessage
:
c
,
getSubNVueById
:
d
,
getCurrentSubNVue
:
function
(){
return
d
(
i
.
webview
.
currentWebview
().
id
)},
$on
:
function
(){
return
U
(
Q
(),
"$on"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$off
:
function
(){
return
U
(
Q
(),
"$off"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$once
:
function
(){
return
U
(
Q
(),
"$once"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))},
$emit
:
function
(){
return
U
(
Q
(),
"$emit"
,[].
concat
(
Array
.
prototype
.
slice
.
call
(
arguments
)))}}),
R
=
{
os
:{
nvue
:
!
0
}},
V
=
{};
return
"undefined"
!=
typeof
Proxy
?
V
=
new
Proxy
({},{
get
:
function
(
e
,
t
){
if
(
"os"
===
t
)
return
{
nvue
:
!
0
};
if
(
"postMessage"
===
t
)
return
w
;
if
(
"requireNativePlugin"
===
t
)
return
I
;
if
(
"onNavigationBarButtonTap"
===
t
)
return
S
;
if
(
"onNavigationBarSearchInputChanged"
===
t
)
return
C
;
if
(
"onNavigationBarSearchInputConfirmed"
===
t
)
return
D
;
if
(
"onNavigationBarSearchInputClicked"
===
t
)
return
L
;
var
A
=
F
[
t
];
return
A
||
(
A
=
b
(
t
)),
n
(
t
)?
o
(
A
):
A
}}):(
Object
.
keys
(
R
).
forEach
((
function
(
e
){
V
[
e
]
=
R
[
e
]})),
V
.
postMessage
=
w
,
V
.
requireNativePlugin
=
I
,
V
.
onNavigationBarButtonTap
=
S
,
V
.
onNavigationBarSearchInputChanged
=
C
,
V
.
onNavigationBarSearchInputConfirmed
=
D
,
V
.
onNavigationBarSearchInputClicked
=
L
,
Object
.
keys
({
uploadFile
:
!
0
,
downloadFile
:
!
0
,
chooseImage
:
!
0
,
previewImage
:
!
0
,
getImageInfo
:
!
0
,
saveImageToPhotosAlbum
:
!
0
,
chooseVideo
:
!
0
,
saveVideoToPhotosAlbum
:
!
0
,
saveFile
:
!
0
,
getSavedFileList
:
!
0
,
getSavedFileInfo
:
!
0
,
removeSavedFile
:
!
0
,
openDocument
:
!
0
,
setStorage
:
!
0
,
getStorage
:
!
0
,
getStorageInfo
:
!
0
,
removeStorage
:
!
0
,
clearStorage
:
!
0
,
getLocation
:
!
0
,
chooseLocation
:
!
0
,
openLocation
:
!
0
,
getSystemInfo
:
!
0
,
getNetworkType
:
!
0
,
makePhoneCall
:
!
0
,
scanCode
:
!
0
,
setScreenBrightness
:
!
0
,
getScreenBrightness
:
!
0
,
setKeepScreenOn
:
!
0
,
vibrateLong
:
!
0
,
vibrateShort
:
!
0
,
addPhoneContact
:
!
0
,
showToast
:
!
0
,
showLoading
:
!
0
,
hideToast
:
!
0
,
hideLoading
:
!
0
,
showModal
:
!
0
,
showActionSheet
:
!
0
,
setNavigationBarTitle
:
!
0
,
setNavigationBarColor
:
!
0
,
navigateTo
:
!
0
,
redirectTo
:
!
0
,
reLaunch
:
!
0
,
switchTab
:
!
0
,
navigateBack
:
!
0
,
getProvider
:
!
0
,
login
:
!
0
,
getUserInfo
:
!
0
,
share
:
!
0
,
requestPayment
:
!
0
,
subscribePush
:
!
0
,
unsubscribePush
:
!
0
,
onPush
:
!
0
,
offPush
:
!
0
}).
forEach
((
function
(
e
){
var
t
=
F
[
e
];
t
||
(
t
=
b
(
e
)),
n
(
e
)?
V
[
e
]
=
o
(
t
):
V
[
e
]
=
t
}))),
V
};
var
i
=
new
WeexPlus
(
weex
);
t
.
weexPlus
=
i
;
var
n
=
a
(
weex
,
i
,
BroadcastChannel
);
t
.
default
=
n
},
function
(
e
,
t
,
A
){
Vue
.
prototype
.
__$appStyle__
=
{},
Vue
.
prototype
.
__merge_style
&&
Vue
.
prototype
.
__merge_style
(
A
(
4
).
default
,
Vue
.
prototype
.
__$appStyle__
)},
function
(
e
,
t
,
A
){
"use strict"
;
A
.
r
(
t
);
var
a
=
A
(
0
),
i
=
A
.
n
(
a
);
for
(
var
n
in
a
)
"default"
!==
n
&&
function
(
e
){
A
.
d
(
t
,
e
,(
function
(){
return
a
[
e
]}))}(
n
);
t
.
default
=
i
.
a
},
function
(
e
,
t
,
A
){
"use strict"
;(
function
(
e
){
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
A
=
{
onLoad
:
function
(){
this
.
initMessage
()},
methods
:{
initMessage
:
function
(){
var
t
=
this
,
A
=
e
.
webview
.
currentWebview
().
extras
||
{},
a
=
A
.
from
,
i
=
(
A
.
callback
,
A
.
runtime
),
n
=
A
.
data
,
o
=
void
0
===
n
?{}:
n
,
s
=
A
.
useGlobalEvent
;
this
.
__from
=
a
,
this
.
__runtime
=
i
,
this
.
__page
=
e
.
webview
.
currentWebview
().
id
,
this
.
__useGlobalEvent
=
s
,
this
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
o
)),
e
.
key
.
addEventListener
(
"backbutton"
,(
function
(){
"function"
==
typeof
t
.
onClose
?
t
.
onClose
():
e
.
webview
.
currentWebview
().
close
(
"auto"
)}));
var
r
=
this
,
c
=
function
(
e
){
var
t
=
e
.
data
&&
e
.
data
.
__message
;
t
&&
r
.
__onMessageCallback
&&
r
.
__onMessageCallback
(
t
.
data
)};
this
.
__useGlobalEvent
?
weex
.
requireModule
(
"globalEvent"
).
addEventListener
(
"plusMessage"
,
c
):
new
BroadcastChannel
(
this
.
__page
).
onmessage
=
c
},
postMessage
:
function
(){
var
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:{},
A
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]
&&
arguments
[
1
],
a
=
JSON
.
parse
(
JSON
.
stringify
({
__message
:{
__page
:
this
.
__page
,
data
:
t
,
keep
:
A
}})),
i
=
this
.
__from
;
if
(
"v8"
===
this
.
__runtime
)
if
(
this
.
__useGlobalEvent
)
e
.
webview
.
postMessageToUniNView
(
a
,
i
);
else
{
var
n
=
new
BroadcastChannel
(
i
);
n
.
postMessage
(
a
)}
else
{
var
o
=
e
.
webview
.
getWebviewById
(
i
);
o
&&
o
.
evalJS
(
"__plusMessage&&__plusMessage("
.
concat
(
JSON
.
stringify
({
data
:
a
}),
")"
))}},
onMessage
:
function
(
e
){
this
.
__onMessageCallback
=
e
}}};
t
.
default
=
A
}).
call
(
this
,
A
(
2
).
weexPlus
)},
function
(
e
,
t
,
A
){
"use strict"
;(
function
(
e
){
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
A
=
{
data
:
function
(){
return
{
locale
:
"en"
,
fallbackLocale
:
"en"
,
localization
:{
en
:{
done
:
"OK"
,
cancel
:
"Cancel"
},
zh
:{
done
:
"完成"
,
cancel
:
"取消"
},
"zh-hans"
:{},
"zh-hant"
:{},
messages
:{}}}},
onLoad
:
function
(){
this
.
initLocale
()},
created
:
function
(){
this
.
initLocale
()},
methods
:{
initLocale
:
function
(){
if
(
!
this
.
__initLocale
){
this
.
__initLocale
=!
0
;
var
t
=
(
e
.
webview
.
currentWebview
().
extras
||
{}).
data
||
{};
if
(
t
.
messages
&&
(
this
.
localization
.
messages
=
t
.
messages
),
t
.
locale
)
this
.
locale
=
t
.
locale
.
toLowerCase
();
else
{
var
A
=
e
.
os
.
language
.
toLowerCase
().
split
(
"/"
)[
0
].
replace
(
"_"
,
"-"
).
split
(
"-"
),
a
=
A
[
1
];
a
&&
(
A
[
1
]
=
{
chs
:
"hans"
,
cn
:
"hans"
,
sg
:
"hans"
,
cht
:
"hant"
,
tw
:
"hant"
,
hk
:
"hant"
,
mo
:
"hant"
}[
a
]
||
a
),
A
.
length
=
A
.
length
>
2
?
2
:
A
.
length
,
this
.
locale
=
A
.
join
(
"-"
)}}},
localize
:
function
(
e
){
var
t
=
this
.
locale
,
A
=
t
.
split
(
"-"
)[
0
],
a
=
this
.
fallbackLocale
,
i
=
this
.
localization
;
function
n
(
e
){
return
i
[
e
]
||
{}}
return
n
(
"messages"
)[
e
]
||
n
(
t
)[
e
]
||
n
(
A
)[
e
]
||
n
(
a
)[
e
]
||
e
}}};
t
.
default
=
A
}).
call
(
this
,
A
(
2
).
weexPlus
)},
function
(
e
,
t
,
A
){
"use strict"
;
var
a
=
A
(
29
),
i
=
A
(
12
),
n
=
A
(
1
);
var
o
=
Object
(
n
.
a
)(
i
.
default
,
a
.
b
,
a
.
c
,
!
1
,
null
,
null
,
"14d2bcf2"
,
!
1
,
a
.
a
,
void
0
);(
function
(
e
){
this
.
options
.
style
||
(
this
.
options
.
style
=
{}),
Vue
.
prototype
.
__merge_style
&&
Vue
.
prototype
.
__$appStyle__
&&
Vue
.
prototype
.
__merge_style
(
Vue
.
prototype
.
__$appStyle__
,
this
.
options
.
style
),
Vue
.
prototype
.
__merge_style
?
Vue
.
prototype
.
__merge_style
(
A
(
36
).
default
,
this
.
options
.
style
):
Object
.
assign
(
this
.
options
.
style
,
A
(
36
).
default
)}).
call
(
o
),
t
.
default
=
o
.
exports
},,,,,
function
(
e
,
t
,
A
){
"use strict"
;
var
a
=
A
(
13
),
i
=
A
.
n
(
a
);
t
.
default
=
i
.
a
},
function
(
e
,
t
,
A
){
"use strict"
;(
function
(
e
,
a
){
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
i
=
o
(
A
(
5
)),
n
=
o
(
A
(
6
));
function
o
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
function
s
(
e
,
t
){
var
A
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
a
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
a
=
a
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
A
.
push
.
apply
(
A
,
a
)}
return
A
}
function
r
(
e
,
t
,
A
){
return
t
in
e
?
Object
.
defineProperty
(
e
,
t
,{
value
:
A
,
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
}):
e
[
t
]
=
A
,
e
}
weex
.
requireModule
(
"dom"
).
addRule
(
"fontFace"
,{
fontFamily
:
"unichooselocation"
,
src
:
"url('data:font/truetype;charset=utf-8;base64,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aG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"
});
var
c
=
weex
.
requireModule
(
"mapSearch"
),
l
=
"data:image/png;base64,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"
;
var
u
=
{
mixins
:[
i
.
default
,
n
.
default
],
data
:
function
(){
return
{
positionIcon
:
l
,
mapScale
:
16
,
userKeyword
:
""
,
showLocation
:
!
0
,
latitude
:
39.908692
,
longitude
:
116.397477
,
nearList
:[],
nearSelectedIndex
:
-
1
,
nearLoading
:
!
1
,
nearLoadingEnd
:
!
1
,
noNearData
:
!
1
,
isUserLocation
:
!
1
,
statusBarHeight
:
20
,
mapHeight
:
250
,
markers
:[{
id
:
"location"
,
latitude
:
39.908692
,
longitude
:
116.397477
,
zIndex
:
"1"
,
iconPath
:
l
,
width
:
26
,
height
:
36
}],
showSearch
:
!
1
,
searchList
:[],
searchSelectedIndex
:
-
1
,
searchLoading
:
!
1
,
searchEnd
:
!
1
,
noSearchData
:
!
1
,
localization
:{
en
:{
search_tips
:
"Search for a place"
,
no_found
:
"No results found"
,
nearby
:
"Nearby"
,
more
:
"More"
},
zh
:{
search_tips
:
"搜索地点"
,
no_found
:
"对不起,没有搜索到相关数据"
,
nearby
:
"附近"
,
more
:
"更多"
}},
searchNearFlag
:
!
0
,
searchMethod
:
"poiSearchNearBy"
}},
computed
:{
disableOK
:
function
(){
return
this
.
nearSelectedIndex
<
0
&&
this
.
searchSelectedIndex
<
0
},
searchMethods
:
function
(){
return
[{
title
:
this
.
localize
(
"nearby"
),
method
:
"poiSearchNearBy"
},{
title
:
this
.
localize
(
"more"
),
method
:
"poiKeywordsSearch"
}]}},
filters
:{
distance
:
function
(
e
){
return
e
>
100
?
""
.
concat
(
e
>
1
e3
?(
e
/
1
e3
).
toFixed
(
1
)
+
"k"
:
e
.
toFixed
(
0
),
"m | "
):
e
>
0
?
"100m内 | "
:
""
}},
watch
:{
searchMethod
:
function
(){
this
.
_searchPageIndex
=
1
,
this
.
searchEnd
=!
1
,
this
.
searchList
=
[],
this
.
_searchKeyword
&&
this
.
search
()}},
onLoad
:
function
(){
this
.
statusBarHeight
=
e
.
navigator
.
getStatusbarHeight
(),
this
.
mapHeight
=
e
.
screen
.
resolutionHeight
/
2
;
var
t
=
this
.
data
;
this
.
userKeyword
=
t
.
keyword
||
""
,
this
.
_searchInputTimer
=
null
,
this
.
_searchPageIndex
=
1
,
this
.
_searchKeyword
=
""
,
this
.
_nearPageIndex
=
1
,
this
.
_hasUserLocation
=!
1
,
this
.
_userLatitude
=
0
,
this
.
_userLongitude
=
0
},
onReady
:
function
(){
this
.
mapContext
=
this
.
$refs
.
map1
,
this
.
data
.
latitude
&&
this
.
data
.
longitude
?(
this
.
_hasUserLocation
=!
0
,
this
.
moveToCenter
({
latitude
:
this
.
data
.
latitude
,
longitude
:
this
.
data
.
longitude
})):
this
.
getUserLocation
()},
onUnload
:
function
(){
this
.
clearSearchTimer
()},
methods
:{
cancelClick
:
function
(){
this
.
postMessage
({
event
:
"cancel"
})},
doneClick
:
function
(){
if
(
!
this
.
disableOK
){
var
e
=
this
.
showSearch
&&
this
.
searchSelectedIndex
>=
0
?
this
.
searchList
[
this
.
searchSelectedIndex
]:
this
.
nearList
[
this
.
nearSelectedIndex
],
t
=
{
name
:
e
.
name
,
address
:
e
.
address
,
latitude
:
e
.
location
.
latitude
,
longitude
:
e
.
location
.
longitude
};
this
.
postMessage
({
event
:
"selected"
,
detail
:
t
})}},
getUserLocation
:
function
(){
var
t
=
this
;
e
.
geolocation
.
getCurrentPosition
((
function
(
e
){
var
A
=
e
.
coordsType
,
a
=
e
.
coords
;
"wgs84"
===
A
.
toLowerCase
()?
t
.
wgs84togcjo2
(
a
,(
function
(
e
){
t
.
getUserLocationSuccess
(
e
)})):
t
.
getUserLocationSuccess
(
a
)}),(
function
(
e
){
t
.
_hasUserLocation
=!
0
,
a
(
"log"
,
"Gelocation Error: code - "
+
e
.
code
+
"; message - "
+
e
.
message
,
" at template/__uniappchooselocation.nvue:292"
)}),{
geocode
:
!
1
})},
getUserLocationSuccess
:
function
(
e
){
this
.
_userLatitude
=
e
.
latitude
,
this
.
_userLongitude
=
e
.
longitude
,
this
.
_hasUserLocation
=!
0
,
this
.
moveToCenter
({
latitude
:
e
.
latitude
,
longitude
:
e
.
longitude
})},
searchclick
:
function
(
t
){
this
.
showSearch
=
t
,
!
1
===
t
&&
e
.
key
.
hideSoftKeybord
()},
showSearchView
:
function
(){
this
.
searchList
=
[],
this
.
showSearch
=!
0
},
hideSearchView
:
function
(){
this
.
showSearch
=!
1
,
e
.
key
.
hideSoftKeybord
(),
this
.
noSearchData
=!
1
,
this
.
searchSelectedIndex
=-
1
,
this
.
_searchKeyword
=
""
},
onregionchange
:
function
(
e
){
var
t
=
this
,
A
=
e
.
detail
,
a
=
A
.
type
||
e
.
type
;
"drag"
===
(
A
.
causedBy
||
e
.
causedBy
)
&&
"end"
===
a
&&
this
.
mapContext
.
getCenterLocation
((
function
(
e
){
t
.
searchNearFlag
?
t
.
moveToCenter
({
latitude
:
e
.
latitude
,
longitude
:
e
.
longitude
}):
t
.
searchNearFlag
=!
t
.
searchNearFlag
}))},
onItemClick
:
function
(
e
,
t
){
this
.
searchNearFlag
=!
1
,
t
.
stopPropagation
&&
t
.
stopPropagation
(),
this
.
nearSelectedIndex
!==
e
&&
(
this
.
nearSelectedIndex
=
e
),
this
.
moveToLocation
(
this
.
nearList
[
e
]
&&
this
.
nearList
[
e
].
location
)},
moveToCenter
:
function
(
e
){
this
.
latitude
===
e
.
latitude
&&
this
.
longitude
===
e
.
longitude
||
(
this
.
latitude
=
e
.
latitude
,
this
.
longitude
=
e
.
longitude
,
this
.
updateCenter
(
e
),
this
.
moveToLocation
(
e
),
this
.
isUserLocation
=
this
.
_userLatitude
===
e
.
latitude
&&
this
.
_userLongitude
===
e
.
longitude
)},
updateCenter
:
function
(
e
){
var
t
=
this
;
this
.
nearSelectedIndex
=-
1
,
this
.
nearList
=
[],
this
.
_hasUserLocation
&&
(
this
.
_nearPageIndex
=
1
,
this
.
nearLoadingEnd
=!
1
,
this
.
reverseGeocode
(
e
),
this
.
searchNearByPoint
(
e
),
this
.
onItemClick
(
0
,{
stopPropagation
:
function
(){
t
.
searchNearFlag
=!
0
}}),
this
.
$refs
.
nearListLoadmore
.
resetLoadmore
())},
searchNear
:
function
(){
this
.
nearLoadingEnd
||
this
.
searchNearByPoint
({
latitude
:
this
.
latitude
,
longitude
:
this
.
longitude
})},
searchNearByPoint
:
function
(
e
){
var
t
=
this
;
this
.
noNearData
=!
1
,
this
.
nearLoading
=!
0
,
c
.
poiSearchNearBy
({
point
:{
latitude
:
e
.
latitude
,
longitude
:
e
.
longitude
},
key
:
this
.
userKeyword
,
sortrule
:
1
,
index
:
this
.
_nearPageIndex
,
radius
:
1
e3
},(
function
(
e
){
t
.
nearLoading
=!
1
,
t
.
_nearPageIndex
=
e
.
pageIndex
+
1
,
t
.
nearLoadingEnd
=
e
.
pageIndex
===
e
.
pageNumber
,
e
.
poiList
&&
e
.
poiList
.
length
?(
t
.
fixPois
(
e
.
poiList
),
t
.
nearList
=
t
.
nearList
.
concat
(
e
.
poiList
),
t
.
fixNearList
()):
t
.
noNearData
=
0
===
t
.
nearList
.
length
}))},
moveToLocation
:
function
(
e
){
e
&&
this
.
mapContext
.
moveToLocation
(
function
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
A
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
s
(
Object
(
A
),
!
0
).
forEach
((
function
(
t
){
r
(
e
,
t
,
A
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
A
)):
s
(
Object
(
A
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
A
,
t
))}))}
return
e
}({},
e
,{
fail
:
function
(
e
){
a
(
"error"
,
"chooseLocation_moveToLocation"
,
e
,
" at template/__uniappchooselocation.nvue:419"
)}}))},
reverseGeocode
:
function
(
e
){
var
t
=
this
;
c
.
reverseGeocode
({
point
:
e
},(
function
(
A
){
"success"
===
A
.
type
&&
t
.
_nearPageIndex
<=
2
&&
(
t
.
nearList
.
splice
(
0
,
0
,{
code
:
A
.
code
,
location
:
e
,
name
:
"地图位置"
,
address
:
A
.
address
||
""
}),
t
.
fixNearList
())}))},
fixNearList
:
function
(){
var
e
=
this
.
nearList
;
if
(
e
.
length
>=
2
&&
"地图位置"
===
e
[
0
].
name
){
var
t
=
this
.
getAddressStart
(
e
[
1
]),
A
=
e
[
0
].
address
;
A
.
startsWith
(
t
)
&&
(
e
[
0
].
name
=
A
.
substring
(
t
.
length
))}},
onsearchinput
:
function
(
e
){
var
t
=
this
,
A
=
e
.
detail
.
value
.
replace
(
/^
\s
+|
\s
+$/g
,
""
);
this
.
clearSearchTimer
(),
this
.
_searchInputTimer
=
setTimeout
((
function
(){
clearTimeout
(
t
.
_searchInputTimer
),
t
.
_searchPageIndex
=
1
,
t
.
searchEnd
=!
1
,
t
.
_searchKeyword
=
A
,
t
.
searchList
=
[],
t
.
search
()}),
300
)},
clearSearchTimer
:
function
(){
this
.
_searchInputTimer
&&
clearTimeout
(
this
.
_searchInputTimer
)},
search
:
function
(){
var
e
=
this
;
0
===
this
.
_searchKeyword
.
length
||
this
.
_searchEnd
||
this
.
searchLoading
||
(
this
.
searchLoading
=!
0
,
this
.
noSearchData
=!
1
,
c
[
this
.
searchMethod
]({
point
:{
latitude
:
this
.
latitude
,
longitude
:
this
.
longitude
},
key
:
this
.
_searchKeyword
,
sortrule
:
1
,
index
:
this
.
_searchPageIndex
,
radius
:
5
e4
},(
function
(
t
){
e
.
searchLoading
=!
1
,
e
.
_searchPageIndex
=
t
.
pageIndex
+
1
,
e
.
searchEnd
=
t
.
pageIndex
===
t
.
pageNumber
,
t
.
poiList
&&
t
.
poiList
.
length
?(
e
.
fixPois
(
t
.
poiList
),
e
.
searchList
=
e
.
searchList
.
concat
(
t
.
poiList
)):
e
.
noSearchData
=
0
===
e
.
searchList
.
length
})))},
onSearchListTouchStart
:
function
(){
e
.
key
.
hideSoftKeybord
()},
onSearchItemClick
:
function
(
e
,
t
){
t
.
stopPropagation
(),
this
.
searchSelectedIndex
!==
e
&&
(
this
.
searchSelectedIndex
=
e
),
this
.
moveToLocation
(
this
.
searchList
[
e
]
&&
this
.
searchList
[
e
].
location
)},
getAddressStart
:
function
(
e
){
var
t
=
e
.
addressOrigin
||
e
.
address
;
return
e
.
province
+
(
e
.
province
===
e
.
city
?
""
:
e
.
city
)
+
(
/^
\d
+$/
.
test
(
e
.
district
)?
""
:
t
.
startsWith
(
e
.
district
)?
""
:
e
.
district
)},
fixPois
:
function
(
e
){
for
(
var
t
=
0
;
t
<
e
.
length
;
t
++
){
var
A
=
e
[
t
];
A
.
name
=
A
.
name
.
replace
(
/
\\
/g
,
""
),
A
.
addressOrigin
=
A
.
address
.
replace
(
/
\\
/g
,
""
),
A
.
address
=
this
.
getAddressStart
(
A
)
+
A
.
addressOrigin
}},
wgs84togcjo2
:
function
(
e
,
t
){
var
A
=
weex
.
requireModule
(
"stream"
),
a
=
"https://apis.map.qq.com/jsapi?qt=translate&type=1&points="
.
concat
(
e
.
longitude
,
","
).
concat
(
e
.
latitude
,
"&key=MAP_KEY&output=json&pf=jsapi&ref=jsapi"
);
A
.
fetch
({
method
:
"GET"
,
url
:
a
,
type
:
"json"
},(
function
(
e
){
if
(
e
.
ok
){
var
A
=
e
.
data
.
detail
.
points
[
0
];
t
({
latitude
:
A
.
lat
,
longitude
:
A
.
lng
})}}))}}};
t
.
default
=
u
}).
call
(
this
,
A
(
2
).
weexPlus
,
A
(
35
).
default
)},
function
(
e
,
t
){
e
.
exports
=
{
map_center_marker_container
:{
alignItems
:
"flex-start"
,
width
:
"22"
,
height
:
"70"
},
map_center_marker
:{
width
:
"22"
,
height
:
"35"
},
"unichooselocation-icons"
:{
fontFamily
:
"unichooselocation"
,
textDecoration
:
"none"
,
textAlign
:
"center"
},
page
:{
flex
:
1
,
position
:
"relative"
},
"flex-r"
:{
flexDirection
:
"row"
,
flexWrap
:
"nowrap"
},
"flex-c"
:{
flexDirection
:
"column"
,
flexWrap
:
"nowrap"
},
"flex-fill"
:{
flex
:
1
},
"a-i-c"
:{
alignItems
:
"center"
},
"j-c-c"
:{
justifyContent
:
"center"
},
"nav-cover"
:{
position
:
"absolute"
,
left
:
0
,
top
:
0
,
right
:
0
,
height
:
"100"
,
backgroundImage
:
"linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0))"
},
statusbar
:{
height
:
"22"
},
"title-view"
:{
paddingTop
:
"5"
,
paddingRight
:
"15"
,
paddingBottom
:
"5"
,
paddingLeft
:
"15"
},
"btn-cancel"
:{
paddingTop
:
0
,
paddingRight
:
0
,
paddingBottom
:
0
,
paddingLeft
:
0
},
"btn-cancel-text"
:{
fontSize
:
"30"
,
color
:
"#ffffff"
},
"btn-done"
:{
backgroundColor
:
"#007AFF"
,
borderRadius
:
"3"
,
paddingTop
:
"5"
,
paddingRight
:
"12"
,
paddingBottom
:
"5"
,
paddingLeft
:
"12"
},
"btn-done-disabled"
:{
backgroundColor
:
"#62abfb"
},
"text-done"
:{
color
:
"#ffffff"
,
fontSize
:
"15"
,
fontWeight
:
"bold"
,
lineHeight
:
"15"
,
height
:
"15"
},
"text-done-disabled"
:{
color
:
"#c0ddfe"
},
"map-view"
:{
flex
:
2
,
position
:
"relative"
},
map
:{
width
:
"750rpx"
,
justifyContent
:
"center"
,
alignItems
:
"center"
},
"map-location"
:{
position
:
"absolute"
,
right
:
"20"
,
bottom
:
"25"
,
width
:
"44"
,
height
:
"44"
,
backgroundColor
:
"#ffffff"
,
borderRadius
:
"40"
,
boxShadow
:
"0 2px 4px rgba(100, 100, 100, 0.2)"
},
"map-location-text"
:{
fontSize
:
"20"
},
"map-location-text-active"
:{
color
:
"#007AFF"
},
"result-area"
:{
flex
:
2
,
position
:
"relative"
},
"search-bar"
:{
paddingTop
:
"12"
,
paddingRight
:
"15"
,
paddingBottom
:
"12"
,
paddingLeft
:
"15"
,
backgroundColor
:
"#ffffff"
},
"search-area"
:{
backgroundColor
:
"#ebebeb"
,
borderRadius
:
"5"
,
height
:
"30"
,
paddingLeft
:
"8"
},
"search-text"
:{
fontSize
:
"14"
,
lineHeight
:
"16"
,
color
:
"#b4b4b4"
},
"search-icon"
:{
fontSize
:
"16"
,
color
:
"#b4b4b4"
,
marginRight
:
"4"
},
"search-tab"
:{
flexDirection
:
"row"
,
paddingTop
:
"2"
,
paddingRight
:
"16"
,
paddingBottom
:
"2"
,
paddingLeft
:
"16"
,
marginTop
:
"-10"
,
backgroundColor
:
"#FFFFFF"
},
"search-tab-item"
:{
marginTop
:
0
,
marginRight
:
"5"
,
marginBottom
:
0
,
marginLeft
:
"5"
,
textAlign
:
"center"
,
fontSize
:
"14"
,
lineHeight
:
"32"
,
color
:
"#333333"
,
borderBottomStyle
:
"solid"
,
borderBottomWidth
:
"2"
,
borderBottomColor
:
"rgba(0,0,0,0)"
},
"search-tab-item-active"
:{
borderBottomColor
:
"#0079FF"
},
"no-data"
:{
color
:
"#808080"
},
"no-data-search"
:{
marginTop
:
"50"
},
"list-item"
:{
position
:
"relative"
,
paddingTop
:
"12"
,
paddingRight
:
"15"
,
paddingBottom
:
"12"
,
paddingLeft
:
"15"
},
"list-line"
:{
position
:
"absolute"
,
left
:
"15"
,
right
:
0
,
bottom
:
0
,
height
:
".5"
,
backgroundColor
:
"#d3d3d3"
},
"list-name"
:{
fontSize
:
"14"
,
lines
:
1
,
textOverflow
:
"ellipsis"
},
"list-address"
:{
fontSize
:
"12"
,
color
:
"#808080"
,
lines
:
1
,
textOverflow
:
"ellipsis"
,
marginTop
:
"5"
},
"list-icon-area"
:{
paddingLeft
:
"10"
,
paddingRight
:
"10"
},
"list-selected-icon"
:{
fontSize
:
"20"
,
color
:
"#007AFF"
},
"search-view"
:{
position
:
"absolute"
,
left
:
0
,
top
:
0
,
right
:
0
,
bottom
:
0
,
backgroundColor
:
"#f6f6f6"
},
"searching-area"
:{
flex
:
5
},
"search-input"
:{
fontSize
:
"14"
,
height
:
"30"
,
paddingLeft
:
"6"
},
"search-cancel"
:{
color
:
"#0079FF"
,
marginLeft
:
"10"
},
"loading-view"
:{
paddingTop
:
"15"
,
paddingRight
:
"15"
,
paddingBottom
:
"15"
,
paddingLeft
:
"15"
},
"loading-icon"
:{
width
:
"28"
,
height
:
"28"
,
color
:
"#808080"
}}},,,,,,,,,,,,,,,
function
(
e
,
t
,
A
){
"use strict"
;
var
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
A
=
e
.
_self
.
_c
||
t
;
return
A
(
"scroll-view"
,{
staticStyle
:{
flexDirection
:
"column"
},
attrs
:{
scrollY
:
!
0
,
enableBackToTop
:
!
0
,
bubble
:
"true"
}},[
A
(
"view"
,{
staticClass
:[
"page"
,
"flex-c"
]},[
A
(
"view"
,{
staticClass
:[
"flex-r"
,
"map-view"
]},[
A
(
"map"
,{
ref
:
"map1"
,
staticClass
:[
"map"
,
"flex-fill"
],
style
:
"height:"
+
e
.
mapHeight
+
"px"
,
attrs
:{
scale
:
e
.
mapScale
,
showLocation
:
e
.
showLocation
,
longitude
:
e
.
longitude
,
latitude
:
e
.
latitude
},
on
:{
regionchange
:
e
.
onregionchange
}},[
A
(
"div"
,{
staticClass
:[
"map_center_marker_container"
]},[
A
(
"u-image"
,{
staticClass
:[
"map_center_marker"
],
attrs
:{
src
:
e
.
positionIcon
}})],
1
)]),
A
(
"view"
,{
staticClass
:[
"map-location"
,
"flex-c"
,
"a-i-c"
,
"j-c-c"
],
on
:{
click
:
function
(
t
){
e
.
getUserLocation
()}}},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"map-location-text"
],
class
:{
"map-location-text-active"
:
e
.
isUserLocation
}},[
e
.
_v
(
""
)])]),
A
(
"view"
,{
staticClass
:[
"nav-cover"
]},[
A
(
"view"
,{
staticClass
:[
"statusbar"
],
style
:
"height:"
+
e
.
statusBarHeight
+
"px"
}),
A
(
"view"
,{
staticClass
:[
"title-view"
,
"flex-r"
]},[
A
(
"view"
,{
staticClass
:[
"btn-cancel"
],
on
:{
click
:
e
.
cancelClick
}},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"btn-cancel-text"
]},[
e
.
_v
(
""
)])]),
A
(
"view"
,{
staticClass
:[
"flex-fill"
]}),
A
(
"view"
,{
staticClass
:[
"btn-done"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
],
class
:{
"btn-done-disabled"
:
e
.
disableOK
},
on
:{
click
:
e
.
doneClick
}},[
A
(
"u-text"
,{
staticClass
:[
"text-done"
],
class
:{
"text-done-disabled"
:
e
.
disableOK
}},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"done"
)))])])])])],
1
),
A
(
"view"
,{
staticClass
:[
"flex-c"
,
"result-area"
],
class
:{
"searching-area"
:
e
.
showSearch
}},[
A
(
"view"
,{
staticClass
:[
"search-bar"
]},[
A
(
"view"
,{
staticClass
:[
"search-area"
,
"flex-r"
,
"a-i-c"
],
on
:{
click
:
e
.
showSearchView
}},[
A
(
"u-text"
,{
staticClass
:[
"search-icon"
,
"unichooselocation-icons"
]},[
e
.
_v
(
""
)]),
A
(
"u-text"
,{
staticClass
:[
"search-text"
]},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"search_tips"
)))])])]),
e
.
noNearData
?
e
.
_e
():
A
(
"list"
,{
ref
:
"nearListLoadmore"
,
staticClass
:[
"flex-fill"
,
"list-view"
],
attrs
:{
loadmoreoffset
:
"5"
,
scrollY
:
!
0
},
on
:{
loadmore
:
function
(
t
){
e
.
searchNear
()}}},[
e
.
_l
(
e
.
nearList
,(
function
(
t
,
a
){
return
A
(
"cell"
,{
key
:
t
.
uid
,
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"list-item"
],
on
:{
click
:
function
(
t
){
e
.
onItemClick
(
a
,
t
)}}},[
A
(
"view"
,{
staticClass
:[
"flex-r"
]},[
A
(
"view"
,{
staticClass
:[
"list-text-area"
,
"flex-fill"
,
"flex-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"list-name"
]},[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
A
(
"u-text"
,{
staticClass
:[
"list-address"
]},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"distance"
)(
t
.
distance
))
+
e
.
_s
(
t
.
address
))])]),
a
===
e
.
nearSelectedIndex
?
A
(
"view"
,{
staticClass
:[
"list-icon-area"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"list-selected-icon"
]},[
e
.
_v
(
""
)])]):
e
.
_e
()]),
A
(
"view"
,{
staticClass
:[
"list-line"
]})])])})),
e
.
nearLoading
?
A
(
"cell"
,{
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"loading-view"
,
"flex-c"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"loading-indicator"
,{
staticClass
:[
"loading-icon"
],
attrs
:{
animating
:
!
0
,
arrow
:
"false"
}})])]):
e
.
_e
()],
2
),
e
.
noNearData
?
A
(
"view"
,{
staticClass
:[
"flex-fill"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"no-data"
]},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"no_found"
)))])]):
e
.
_e
(),
e
.
showSearch
?
A
(
"view"
,{
staticClass
:[
"search-view"
,
"flex-c"
]},[
A
(
"view"
,{
staticClass
:[
"search-bar"
,
"flex-r"
,
"a-i-c"
]},[
A
(
"view"
,{
staticClass
:[
"search-area"
,
"flex-fill"
,
"flex-r"
]},[
A
(
"u-input"
,{
staticClass
:[
"search-input"
,
"flex-fill"
],
attrs
:{
focus
:
!
0
,
placeholder
:
e
.
localize
(
"search_tips"
)},
on
:{
input
:
e
.
onsearchinput
}})],
1
),
A
(
"u-text"
,{
staticClass
:[
"search-cancel"
],
on
:{
click
:
e
.
hideSearchView
}},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"cancel"
)))])]),
A
(
"view"
,{
staticClass
:[
"search-tab"
]},
e
.
_l
(
e
.
searchMethods
,(
function
(
t
,
a
){
return
A
(
"u-text"
,{
key
:
a
,
staticClass
:[
"search-tab-item"
],
class
:{
"search-tab-item-active"
:
t
.
method
===
e
.
searchMethod
},
on
:{
click
:
function
(
A
){
e
.
searchMethod
=
e
.
searchLoading
?
e
.
searchMethod
:
t
.
method
}}},[
e
.
_v
(
e
.
_s
(
t
.
title
))])})),
0
),
e
.
noSearchData
?
e
.
_e
():
A
(
"list"
,{
staticClass
:[
"flex-fill"
,
"list-view"
],
attrs
:{
enableBackToTop
:
!
0
,
scrollY
:
!
0
},
on
:{
loadmore
:
function
(
t
){
e
.
search
()},
touchstart
:
e
.
onSearchListTouchStart
}},[
e
.
_l
(
e
.
searchList
,(
function
(
t
,
a
){
return
A
(
"cell"
,{
key
:
t
.
uid
,
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"list-item"
],
on
:{
click
:
function
(
t
){
e
.
onSearchItemClick
(
a
,
t
)}}},[
A
(
"view"
,{
staticClass
:[
"flex-r"
]},[
A
(
"view"
,{
staticClass
:[
"list-text-area"
,
"flex-fill"
,
"flex-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"list-name"
]},[
e
.
_v
(
e
.
_s
(
t
.
name
))]),
A
(
"u-text"
,{
staticClass
:[
"list-address"
]},[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"distance"
)(
t
.
distance
))
+
e
.
_s
(
t
.
address
))])]),
a
===
e
.
searchSelectedIndex
?
A
(
"view"
,{
staticClass
:[
"list-icon-area"
,
"flex-r"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"unichooselocation-icons"
,
"list-selected-icon"
]},[
e
.
_v
(
""
)])]):
e
.
_e
()]),
A
(
"view"
,{
staticClass
:[
"list-line"
]})])])})),
e
.
searchLoading
?
A
(
"cell"
,{
appendAsTree
:
!
0
,
attrs
:{
append
:
"tree"
}},[
A
(
"view"
,{
staticClass
:[
"loading-view"
,
"flex-c"
,
"a-i-c"
,
"j-c-c"
]},[
A
(
"loading-indicator"
,{
staticClass
:[
"loading-icon"
],
attrs
:{
animating
:
!
0
}})])]):
e
.
_e
()],
2
),
e
.
noSearchData
?
A
(
"view"
,{
staticClass
:[
"flex-fill"
,
"flex-r"
,
"j-c-c"
]},[
A
(
"u-text"
,{
staticClass
:[
"no-data"
,
"no-data-search"
]},[
e
.
_v
(
e
.
_s
(
e
.
localize
(
"no_found"
)))])]):
e
.
_e
()]):
e
.
_e
()])])])},
i
=
[];
A
.
d
(
t
,
"b"
,(
function
(){
return
a
})),
A
.
d
(
t
,
"c"
,(
function
(){
return
i
})),
A
.
d
(
t
,
"a"
,(
function
(){}))},,,,,,
function
(
e
,
t
,
A
){
"use strict"
;
function
a
(
e
){
var
t
=
Object
.
prototype
.
toString
.
call
(
e
);
return
t
.
substring
(
8
,
t
.
length
-
1
)}
function
i
(){
return
"string"
==
typeof
__channelId__
&&
__channelId__
}
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
}),
t
.
log
=
function
(
e
){
for
(
var
t
=
arguments
.
length
,
A
=
new
Array
(
t
>
1
?
t
-
1
:
0
),
a
=
1
;
a
<
t
;
a
++
)
A
[
a
-
1
]
=
arguments
[
a
];
console
[
e
].
apply
(
console
,
A
)},
t
.
default
=
function
(){
for
(
var
e
=
arguments
.
length
,
t
=
new
Array
(
e
),
A
=
0
;
A
<
e
;
A
++
)
t
[
A
]
=
arguments
[
A
];
var
n
=
t
.
shift
();
if
(
i
())
return
t
.
push
(
t
.
pop
().
replace
(
"at "
,
"uni-app:///"
)),
console
[
n
].
apply
(
console
,
t
);
var
o
=
t
.
map
((
function
(
e
){
var
t
=
Object
.
prototype
.
toString
.
call
(
e
).
toLowerCase
();
if
(
"[object object]"
===
t
||
"[object array]"
===
t
)
try
{
e
=
"---BEGIN:JSON---"
+
JSON
.
stringify
(
e
)
+
"---END:JSON---"
}
catch
(
t
){
e
=
"[object object]"
}
else
if
(
null
===
e
)
e
=
"---NULL---"
;
else
if
(
void
0
===
e
)
e
=
"---UNDEFINED---"
;
else
{
var
A
=
a
(
e
).
toUpperCase
();
e
=
"NUMBER"
===
A
||
"BOOLEAN"
===
A
?
"---BEGIN:"
+
A
+
"---"
+
e
+
"---END:"
+
A
+
"---"
:
String
(
e
)}
return
e
})),
s
=
""
;
if
(
o
.
length
>
1
){
var
r
=
o
.
pop
();
s
=
o
.
join
(
"---COMMA---"
),
0
===
r
.
indexOf
(
" at "
)?
s
+=
r
:
s
+=
"---COMMA---"
+
r
}
else
s
=
o
[
0
];
console
[
n
](
s
)}},
function
(
e
,
t
,
A
){
"use strict"
;
A
.
r
(
t
);
var
a
=
A
(
14
),
i
=
A
.
n
(
a
);
for
(
var
n
in
a
)
"default"
!==
n
&&
function
(
e
){
A
.
d
(
t
,
e
,(
function
(){
return
a
[
e
]}))}(
n
);
t
.
default
=
i
.
a
},,,,,
function
(
e
,
t
,
A
){
"use strict"
;
A
.
r
(
t
);
A
(
3
);
var
a
=
A
(
7
);
a
.
default
.
mpType
=
"page"
,
a
.
default
.
route
=
"template/__uniappchooselocation"
,
a
.
default
.
el
=
"#root"
,
new
Vue
(
a
.
default
)}]);
\ No newline at end of file
unpackage/dist/dev/app-plus/app-config-service.js
View file @
71df02fd
var
isReady
=
false
;
var
onReadyCallbacks
=
[];
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
__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
__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"
:
"扫码"
}}
,{
"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
.
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
}}}});
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