Showing
1 changed file
with
4 additions
and
2 deletions
| @@ -269,6 +269,7 @@ Page({ | @@ -269,6 +269,7 @@ Page({ | ||
| 269 | this.hasMarkertap=false | 269 | this.hasMarkertap=false |
| 270 | let markers=this.data.markers; | 270 | let markers=this.data.markers; |
| 271 | console.log('markertap',e) | 271 | console.log('markertap',e) |
| 272 | + this.activeSellerID=e.markerId | ||
| 272 | let bl=1.2; | 273 | let bl=1.2; |
| 273 | let current=0,hasCurrent=true; | 274 | let current=0,hasCurrent=true; |
| 274 | markers.forEach((m,i)=>{ | 275 | markers.forEach((m,i)=>{ |
| @@ -454,7 +455,7 @@ Page({ | @@ -454,7 +455,7 @@ Page({ | ||
| 454 | }) | 455 | }) |
| 455 | this.setData(obj) | 456 | this.setData(obj) |
| 456 | } | 457 | } |
| 457 | - if(now_sid.length>0){ | 458 | + if(now_sid.length>0 && now_sid._indexOf(this.activeSellerID)<0){ |
| 458 | setTimeout(()=>{ | 459 | setTimeout(()=>{ |
| 459 | this.markertap({ | 460 | this.markertap({ |
| 460 | markerId:now_sid[0] | 461 | markerId:now_sid[0] |
| @@ -528,12 +529,13 @@ Page({ | @@ -528,12 +529,13 @@ Page({ | ||
| 528 | return; | 529 | return; |
| 529 | } | 530 | } |
| 530 | let i=e.detail.current | 531 | let i=e.detail.current |
| 532 | + this.activeSellerID=this.data.markers[i].id | ||
| 531 | // this.activeSellerID=this.sellersNow[i]; | 533 | // this.activeSellerID=this.sellersNow[i]; |
| 532 | // this.markertap({ | 534 | // this.markertap({ |
| 533 | // markerId:this.activeSellerID | 535 | // markerId:this.activeSellerID |
| 534 | // },false) | 536 | // },false) |
| 535 | this.markertap({ | 537 | this.markertap({ |
| 536 | - markerId:this.data.markers[i].id | 538 | + markerId:this.activeSellerID |
| 537 | },false) | 539 | },false) |
| 538 | }, | 540 | }, |
| 539 | gotoDetail(e){ | 541 | gotoDetail(e){ |
-
Please register or login to post a comment