Commit df7200a708ac8f7b8fbbe18cd30c884708d05a6c

Authored by wangfan
1 parent d88b2193

地图优化

Showing 1 changed file with 4 additions and 2 deletions
... ... @@ -269,6 +269,7 @@ Page({
this.hasMarkertap=false
let markers=this.data.markers;
console.log('markertap',e)
this.activeSellerID=e.markerId
let bl=1.2;
let current=0,hasCurrent=true;
markers.forEach((m,i)=>{
... ... @@ -454,7 +455,7 @@ Page({
})
this.setData(obj)
}
if(now_sid.length>0){
if(now_sid.length>0 && now_sid._indexOf(this.activeSellerID)<0){
setTimeout(()=>{
this.markertap({
markerId:now_sid[0]
... ... @@ -528,12 +529,13 @@ Page({
return;
}
let i=e.detail.current
this.activeSellerID=this.data.markers[i].id
// this.activeSellerID=this.sellersNow[i];
// this.markertap({
// markerId:this.activeSellerID
// },false)
this.markertap({
markerId:this.data.markers[i].id
markerId:this.activeSellerID
},false)
},
gotoDetail(e){
... ...