Showing
1 changed file
with
13 additions
and
4 deletions
| @@ -344,7 +344,7 @@ Page({ | @@ -344,7 +344,7 @@ Page({ | ||
| 344 | if(flag){ | 344 | if(flag){ |
| 345 | //obj.scrollIntoView='seller-'+e.markerId; | 345 | //obj.scrollIntoView='seller-'+e.markerId; |
| 346 | obj.current=current; | 346 | obj.current=current; |
| 347 | - this.hasMarkertap=true; | 347 | + //this.hasMarkertap=true; |
| 348 | } | 348 | } |
| 349 | this.setData(obj) | 349 | this.setData(obj) |
| 350 | }, | 350 | }, |
| @@ -510,9 +510,18 @@ Page({ | @@ -510,9 +510,18 @@ Page({ | ||
| 510 | this.selectComponent('#getpos').getPos(true); | 510 | this.selectComponent('#getpos').getPos(true); |
| 511 | return; | 511 | return; |
| 512 | } | 512 | } |
| 513 | - //console.log(this.user.latitude,this.mapData.latitude,def_latitude); | ||
| 514 | - //if(this.user.latitude==this.mapData.latitude && this.user.longitude==this.mapData.longitude) return; | ||
| 515 | - //if(this.user.latitude==def_latitude && this.user.longitude==def_longitude) return; | 513 | + this.sellersIds=[] |
| 514 | + this.sellers=[] | ||
| 515 | + let map = this.data.map; | ||
| 516 | + map.latitude = this.user.latitude; | ||
| 517 | + map.longitude = this.user.longitude; | ||
| 518 | + map.scale=mapScale; | ||
| 519 | + map.height = this.systemInfo.windowHeight-this.transverseViewHeight | ||
| 520 | + this.setData({ | ||
| 521 | + map: map, | ||
| 522 | + markers:[], | ||
| 523 | + hasSuggestion:false, | ||
| 524 | + }) | ||
| 516 | this.mapCtx.moveToLocation({ | 525 | this.mapCtx.moveToLocation({ |
| 517 | success:(res)=>{ | 526 | success:(res)=>{ |
| 518 | console.log('moveToLocation',res) | 527 | console.log('moveToLocation',res) |
-
Please register or login to post a comment