Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
binhai-people
Project
Project
Details
Activity
Releases
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
binhai-jiaoguan
binhai-people
Commits
adcf803b
Commit
adcf803b
authored
Nov 21, 2023
by
YangAo
🇨🇳
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
677052de
0acf4300
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
index.vue
src/views/mobilityServices/index.vue
+13
-6
No files found.
src/views/mobilityServices/index.vue
View file @
adcf803b
...
...
@@ -335,7 +335,7 @@ border-radius: 4px;color:#ffffff;padding:0.5rem;cursor:pointer;display: flex;ali
<span
style=
"padding: 0.2rem 0.3rem;background: #46CE76;opacity: 1;"
>
畅通
</span>
</div>
<div
style=
"height: 2rem;width: 100%;display: flex;align-items: center;justify-content: center;"
>
更新时间:
11
更新时间:
{{
pageLoadTime
}}
</div>
</div>
</div>
...
...
@@ -364,12 +364,19 @@ export default {
created
()
{
/*调用道路信息api*/
// this.queryRouterMsg()
this
.
navigator
.
form
.
start
=
this
.
$router
.
params
.
start
this
.
navigator
.
form
.
end
=
this
.
$router
.
params
.
end
console
.
log
(
"现在我要取值了:"
,
this
.
$router
.
params
.
start
)
this
.
navigator
.
form
.
start
=
this
.
$route
.
params
.
start
this
.
navigator
.
form
.
end
=
this
.
$route
.
params
.
end
this
.
direction
()
/*获取当前页面刷新时间*/
const
now
=
new
Date
();
const
hours
=
now
.
getHours
();
const
minutes
=
now
.
getMinutes
();
this
.
pageLoadTime
=
`
${
hours
}
:
${
minutes
}
`
;
},
data
()
{
return
{
/*获取当前页面刷新时间*/
pageLoadTime
:
''
,
show
:
false
,
// 道路信息标点显示信息
markInfo
:
{
...
...
@@ -725,11 +732,11 @@ export default {
infoWindowOpen
(
marker
)
{
this
.
markInfo
.
content
=
marker
.
roadName
this
.
markInfo
.
position
=
marker
.
position
// TODO: 请清除该日志
console
.
log
(
'marker'
,
marker
)
this
.
show
=
true
this
.
$refs
.
infoWindow
.
redraw
()
},
/*查询道路信息事件*/
handleEventTip
(
type
)
{
console
.
log
(
"传进来的是1吗?"
,
type
)
return
new
Promise
(
resolve
=>
{
...
...
@@ -989,7 +996,7 @@ export default {
/*导航*/
direction
()
{
const
{
start
,
end
}
=
this
.
navigator
.
formControl
// 如果起点和终点都有了才根据当前tab进行导航
// 如果起点和终点都有了
(经纬度也要有)
才根据当前tab进行导航
if
(
_
.
isEmpty
(
start
.
location
)
||
_
.
isEmpty
(
end
.
location
))
{
return
}
...
...
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