Commit c269efaa authored by 小费同学阿's avatar 小费同学阿 💬

出行服务

parent 4846c42c
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment