Commit c494e56874a16e79c58df16895cb1e809ddd2194

Authored by wangfan
1 parent 29d1bed4

C端优化

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