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
15858cfc
Commit
15858cfc
authored
Nov 22, 2023
by
高滢
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b1bee226
5557d4f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
index.vue
src/views/mobilityServices/index.vue
+14
-14
No files found.
src/views/mobilityServices/index.vue
View file @
15858cfc
...
...
@@ -369,6 +369,8 @@ export default {
const
minutes
=
now
.
getMinutes
().
toString
().
padStart
(
2
,
'0'
);
// 将分钟格式化为两位数字
this
.
pageLoadTime
=
`
${
hours
}
:
${
minutes
}
`
;
};
setPageLoadTime
();
// 捕获初始页面加载时间
window
.
addEventListener
(
'load'
,
()
=>
{
...
...
@@ -376,7 +378,18 @@ export default {
});
/*调用道路信息api*/
// this.queryRouterMsg()
/*
/*输入框赋值*/
this
.
navigator
.
form
.
start
=
this
.
$route
.
params
.
start
/*输入框赋值*/
this
.
navigator
.
form
.
end
=
this
.
$route
.
params
.
end
/*起始经纬度赋值*/
this
.
navigator
.
formControl
.
start
.
location
=
[
this
.
$route
.
params
.
stratLocation
.
lat
,
this
.
$route
.
params
.
stratLocation
.
lng
]
/*目的地经纬度赋值*/
this
.
navigator
.
formControl
.
end
.
location
=
[
this
.
$route
.
params
.
endLocation
.
lat
,
this
.
$route
.
params
.
endLocation
.
lng
]
console
.
log
(
"起始点传进来的经纬度"
,
this
.
navigator
.
formControl
.
start
.
location
)
console
.
log
(
"目的地传进来的经纬度"
,
this
.
navigator
.
formControl
.
end
.
location
)
/*调用选择路线方法*/
this
.
direction
()
/*
/!*获取当前页面刷新时间*!/
const now = new Date();
const hours = now.getHours();
...
...
@@ -912,19 +925,6 @@ export default {
},
/*地图加载完成*/
mapReady
({
BMap
,
map
})
{
/*输入框赋值*/
this
.
navigator
.
form
.
start
=
this
.
$route
.
params
.
start
/*输入框赋值*/
this
.
navigator
.
form
.
end
=
this
.
$route
.
params
.
end
/*起始经纬度赋值*/
this
.
navigator
.
formControl
.
start
.
location
=
[
this
.
$route
.
params
.
stratLocation
.
lat
,
this
.
$route
.
params
.
stratLocation
.
lng
]
/*目的地经纬度赋值*/
this
.
navigator
.
formControl
.
end
.
location
=
[
this
.
$route
.
params
.
endLocation
.
lat
,
this
.
$route
.
params
.
endLocation
.
lng
]
console
.
log
(
"起始点传进来的经纬度"
,
this
.
navigator
.
formControl
.
start
.
location
)
console
.
log
(
"目的地传进来的经纬度"
,
this
.
navigator
.
formControl
.
end
.
location
)
/*调用选择路线方法*/
this
.
direction
()
this
.
BMap
=
BMap
this
.
map
=
map
// 加载事故点
...
...
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