Commit d138749ec658d8f3460ed5548118a62182b539e4

Authored by vking
1 parent a4f933ea

搜索平台商户

Showing 1 changed file with 5 additions and 4 deletions
@@ -617,7 +617,10 @@ Page({ @@ -617,7 +617,10 @@ Page({
617 //let pos=DA.gcj02towgs84(suggestion.longitude,suggestion.latitude) 617 //let pos=DA.gcj02towgs84(suggestion.longitude,suggestion.latitude)
618 map.latitude=suggestion.latitude 618 map.latitude=suggestion.latitude
619 map.longitude=suggestion.longitude 619 map.longitude=suggestion.longitude
620 - map.scale=20 620 + if(suggestion.type==-1){//平台商户
  621 + this.activeSellerID=suggestion.id
  622 + map.scale=20
  623 + }
621 this.sellersIds=[] 624 this.sellersIds=[]
622 this.sellers=[] 625 this.sellers=[]
623 let sdobj={ 626 let sdobj={
@@ -629,9 +632,7 @@ Page({ @@ -629,9 +632,7 @@ Page({
629 if(!this.hasSellerConcat){ 632 if(!this.hasSellerConcat){
630 sdobj.markers=[] 633 sdobj.markers=[]
631 } 634 }
632 - if(suggestion.type==-1){//平台商户  
633 - this.activeSellerID=suggestion.id  
634 - } 635 +
635 this.setData(sdobj) 636 this.setData(sdobj)
636 }, 637 },
637 638