Showing
1 changed file
with
5 additions
and
1 deletions
| @@ -229,7 +229,10 @@ Page({ | @@ -229,7 +229,10 @@ Page({ | ||
| 229 | ...this.findSellerData.paramObj, | 229 | ...this.findSellerData.paramObj, |
| 230 | } | 230 | } |
| 231 | console.log('this.location',this.location) | 231 | console.log('this.location',this.location) |
| 232 | - if(this.location){ | 232 | + if(this.suggestion){ |
| 233 | + this.param.lat_extend=this.suggestion.latitude | ||
| 234 | + this.param.lng_extend=this.suggestion.longitude | ||
| 235 | + }else if(this.location){ | ||
| 233 | this.param.lat_extend=this.location.latitude | 236 | this.param.lat_extend=this.location.latitude |
| 234 | this.param.lng_extend=this.location.longitude | 237 | this.param.lng_extend=this.location.longitude |
| 235 | } | 238 | } |
| @@ -448,6 +451,7 @@ Page({ | @@ -448,6 +451,7 @@ Page({ | ||
| 448 | }, | 451 | }, |
| 449 | moveToLocation(){ | 452 | moveToLocation(){ |
| 450 | delete this.options.keyword | 453 | delete this.options.keyword |
| 454 | + this.suggestion=null | ||
| 451 | this.setData({ | 455 | this.setData({ |
| 452 | keyword:'', | 456 | keyword:'', |
| 453 | }) | 457 | }) |
-
Please register or login to post a comment