|
...
|
...
|
@@ -165,7 +165,9 @@ Page({ |
|
|
|
console.log('regionchange.getRegion',res)
|
|
|
|
if(res.southwest.latitude!=this.mapData.region.southwest.latitude) {
|
|
|
|
this.mapData.region = res
|
|
|
|
this.getMarkers();
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.getMarkers();
|
|
|
|
},300)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
...
|
...
|
@@ -333,14 +335,14 @@ Page({ |
|
|
|
App.Reserve.SellerList(param).then(res => {
|
|
|
|
this.mapData.region.southwest.latitude='';
|
|
|
|
if (res.ret == 200) {
|
|
|
|
let sellersIds=["scale"+this.mapData.scale];
|
|
|
|
res.data.forEach(seller=>{
|
|
|
|
sellersIds.push(seller.id);
|
|
|
|
})
|
|
|
|
if(sellersIds.toString()==this.sellersIds.toString()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
this.sellersIds=sellersIds;
|
|
|
|
// let sellersIds=["scale"+this.mapData.scale];
|
|
|
|
// res.data.forEach(seller=>{
|
|
|
|
// sellersIds.push(seller.id);
|
|
|
|
// })
|
|
|
|
// if(sellersIds.toString()==this.sellersIds.toString()) {
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// this.sellersIds=sellersIds;
|
|
|
|
sellers=res.data;
|
|
|
|
let sellersLength=sellers.length;
|
|
|
|
sellers.forEach((seller,si) => {
|
|
...
|
...
|
@@ -431,7 +433,8 @@ Page({ |
|
|
|
map.longitude=this.user.longitude
|
|
|
|
map.scale=mapScale
|
|
|
|
this.setData({
|
|
|
|
map:map
|
|
|
|
map:map,
|
|
|
|
hasSuggestion:false,
|
|
|
|
})
|
|
|
|
this.mapCtx.moveToLocation({
|
|
|
|
success:(res)=>{
|
...
|
...
|
|