|
...
|
...
|
@@ -180,15 +180,19 @@ Page({ |
|
|
|
let res=e.detail;
|
|
|
|
this.hasGetLocation=true;
|
|
|
|
if(!res.latitude) return;
|
|
|
|
this.sellersIds=[]
|
|
|
|
this.sellers=[]
|
|
|
|
let map = this.data.map;
|
|
|
|
map.latitude = res.latitude;
|
|
|
|
map.longitude = res.longitude;
|
|
|
|
|
|
|
|
map.scale=mapScale;
|
|
|
|
this.user.latitude = res.latitude;
|
|
|
|
this.user.longitude = res.longitude;
|
|
|
|
map.height = this.systemInfo.windowHeight-this.transverseViewHeight
|
|
|
|
this.setData({
|
|
|
|
map: map,
|
|
|
|
markers:[],
|
|
|
|
hasSuggestion:false,
|
|
|
|
})
|
|
|
|
if(this.mapCtx){
|
|
|
|
this.mapCtx.getRegion({
|
|
...
|
...
|
@@ -491,17 +495,6 @@ Page({ |
|
|
|
},
|
|
|
|
moveToLocation(){
|
|
|
|
this.hasClickMoveToLocation=true
|
|
|
|
let map=this.data.map;
|
|
|
|
map.latitude=this.user.latitude
|
|
|
|
map.longitude=this.user.longitude
|
|
|
|
map.scale=mapScale;
|
|
|
|
this.sellersIds=[]
|
|
|
|
this.sellers=[]
|
|
|
|
this.setData({
|
|
|
|
markers:[],
|
|
|
|
map:map,
|
|
|
|
hasSuggestion:false,
|
|
|
|
})
|
|
|
|
if(this.user.latitude==def_latitude && this.user.longitude==def_longitude){
|
|
|
|
this.selectComponent('#getpos').getPos(true);
|
|
|
|
return;
|
...
|
...
|
|