|
@@ -46,7 +46,8 @@ export default {
|
|
|
reverseInit:false,
|
|
|
myinterval: '',
|
|
|
routeInfo:{},
|
|
|
- popid:0,
|
|
|
+ popid:0,
|
|
|
+ clickHandlerBl:true,
|
|
|
radiolist: [
|
|
|
{
|
|
|
name: '不提醒',
|
|
@@ -215,7 +216,11 @@ export default {
|
|
|
this.$refs.amap.setCenter(response.data);
|
|
|
}
|
|
|
this.carList=[response.data];
|
|
|
- this.$refs.amap.ifCenter(this.carList[0]);
|
|
|
+ if(this.clickHandlerBl){
|
|
|
+ this.$refs.amap.ifCenter(this.carList[0]);
|
|
|
+ }else{
|
|
|
+ this.clickHandlerBl=true;
|
|
|
+ }
|
|
|
|
|
|
if(!this.centerBl&&this.carList.length){
|
|
|
this.centerBl=this.$refs.amap.setCenter(this.carList[0]);
|
|
@@ -354,6 +359,9 @@ export default {
|
|
|
this.$refs.amap.initMap(point, this.stationList,startend);
|
|
|
}
|
|
|
},
|
|
|
+ clickHandler(){
|
|
|
+ this.clickHandlerBl=false
|
|
|
+ },
|
|
|
carShow2(item){
|
|
|
console.log(item)
|
|
|
if(item.type=="car"){
|
|
@@ -538,7 +546,7 @@ export default {
|
|
|
var pages = getCurrentPages();
|
|
|
var page = (pages[pages.length - 1]).route;
|
|
|
if (page == "pages/route/index") {
|
|
|
- setTimeout(this.getPoint, 10000);
|
|
|
+ setTimeout(this.getPoint, 5000);
|
|
|
}
|
|
|
},
|
|
|
getLocation(){
|