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(){
return arr;
}
const cates_version='?1.1';
const hasSellerConcat=true;//变量存储所有商户
const hasSellerConcat=false;//变量存储所有商户
Page({
/**
... ... @@ -441,20 +441,18 @@ Page({
}
this.sellersNow=now_sid;
let obj={}
if(markers.length>0){
if(hasSellerConcat){
obj.markers=this.data.markers.concat(markers);
}else{
obj.markers=markers;
}
obj.markers.forEach(mk=>{
//mk.display='none';
if(now_sid._indexOf(mk.id)>-1){
mk.display='';
}
})
this.setData(obj)
if(hasSellerConcat){
obj.markers=this.data.markers.concat(markers);
}else{
obj.markers=markers;
}
obj.markers.forEach(mk=>{
//mk.display='none';
if(now_sid._indexOf(mk.id)>-1){
mk.display='';
}
})
this.setData(obj)
if(now_sid.length>0 && now_sid._indexOf(this.activeSellerID)<0){
setTimeout(()=>{
this.markertap({
... ...