Commit c7ce8db223dc83349833c9ec8f49595880f67443

Authored by vking
1 parent 9f80587f

search

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 })