|
...
|
...
|
@@ -344,7 +344,7 @@ Page({ |
|
|
|
if(flag){
|
|
|
|
//obj.scrollIntoView='seller-'+e.markerId;
|
|
|
|
obj.current=current;
|
|
|
|
this.hasMarkertap=true;
|
|
|
|
//this.hasMarkertap=true;
|
|
|
|
}
|
|
|
|
this.setData(obj)
|
|
|
|
},
|
|
...
|
...
|
@@ -510,9 +510,18 @@ Page({ |
|
|
|
this.selectComponent('#getpos').getPos(true);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
//console.log(this.user.latitude,this.mapData.latitude,def_latitude);
|
|
|
|
//if(this.user.latitude==this.mapData.latitude && this.user.longitude==this.mapData.longitude) return;
|
|
|
|
//if(this.user.latitude==def_latitude && this.user.longitude==def_longitude) return;
|
|
|
|
this.sellersIds=[]
|
|
|
|
this.sellers=[]
|
|
|
|
let map = this.data.map;
|
|
|
|
map.latitude = this.user.latitude;
|
|
|
|
map.longitude = this.user.longitude;
|
|
|
|
map.scale=mapScale;
|
|
|
|
map.height = this.systemInfo.windowHeight-this.transverseViewHeight
|
|
|
|
this.setData({
|
|
|
|
map: map,
|
|
|
|
markers:[],
|
|
|
|
hasSuggestion:false,
|
|
|
|
})
|
|
|
|
this.mapCtx.moveToLocation({
|
|
|
|
success:(res)=>{
|
|
|
|
console.log('moveToLocation',res)
|
...
|
...
|
|