Commit 15858cfc authored by 高滢's avatar 高滢

Merge remote-tracking branch 'origin/master'

parents b1bee226 5557d4f7
......@@ -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
// 加载事故点
......
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