Commit ecdbb8deb536f72fd223fe13cc2f2862f54449e4

Authored by wangfan
1 parent 220e49b2

C端调整

Showing 1 changed file with 13 additions and 4 deletions
... ... @@ -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)
... ...