Commit 5c82de6037e7944588ad939a90a9667416af2483

Authored by wangfan
1 parent df7200a7

地图优化--全量覆盖

Showing 1 changed file with 12 additions and 14 deletions
@@ -14,7 +14,7 @@ const renNum=function(){ @@ -14,7 +14,7 @@ const renNum=function(){
14 return arr; 14 return arr;
15 } 15 }
16 const cates_version='?1.1'; 16 const cates_version='?1.1';
17 -const hasSellerConcat=true;//变量存储所有商户 17 +const hasSellerConcat=false;//变量存储所有商户
18 Page({ 18 Page({
19 19
20 /** 20 /**
@@ -441,20 +441,18 @@ Page({ @@ -441,20 +441,18 @@ Page({
441 } 441 }
442 this.sellersNow=now_sid; 442 this.sellersNow=now_sid;
443 let obj={} 443 let obj={}
444 - if(markers.length>0){  
445 - if(hasSellerConcat){  
446 - obj.markers=this.data.markers.concat(markers);  
447 - }else{  
448 - obj.markers=markers;  
449 - }  
450 - obj.markers.forEach(mk=>{  
451 - //mk.display='none';  
452 - if(now_sid._indexOf(mk.id)>-1){  
453 - mk.display='';  
454 - }  
455 - })  
456 - this.setData(obj) 444 + if(hasSellerConcat){
  445 + obj.markers=this.data.markers.concat(markers);
  446 + }else{
  447 + obj.markers=markers;
457 } 448 }
  449 + obj.markers.forEach(mk=>{
  450 + //mk.display='none';
  451 + if(now_sid._indexOf(mk.id)>-1){
  452 + mk.display='';
  453 + }
  454 + })
  455 + this.setData(obj)
458 if(now_sid.length>0 && now_sid._indexOf(this.activeSellerID)<0){ 456 if(now_sid.length>0 && now_sid._indexOf(this.activeSellerID)<0){
459 setTimeout(()=>{ 457 setTimeout(()=>{
460 this.markertap({ 458 this.markertap({