|
...
|
...
|
@@ -14,7 +14,7 @@ const renNum=function(){ |
|
|
|
return arr;
|
|
|
|
}
|
|
|
|
const cates_version='?1.1';
|
|
|
|
const hasSellerConcat=false;//变量存储所有商户
|
|
|
|
const hasSellerConcat=true;//变量存储所有商户
|
|
|
|
Page({
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -37,6 +37,7 @@ Page({ |
|
|
|
hasSuggestion:false,
|
|
|
|
current:0,
|
|
|
|
},
|
|
|
|
hasSellerConcat:hasSellerConcat,
|
|
|
|
transverseViewHeight:transverseViewHeight,//横向滚动高度,苹果要比安卓多20
|
|
|
|
//qqmapsdk:null,
|
|
|
|
sellers: [],
|
|
...
|
...
|
@@ -385,7 +386,7 @@ Page({ |
|
|
|
}else{
|
|
|
|
seller.distance+='米';
|
|
|
|
}
|
|
|
|
if(hasSellerConcat){
|
|
|
|
if(this.hasSellerConcat){
|
|
|
|
this.sellersIds.push(seller.id);
|
|
|
|
}
|
|
|
|
hasMark=true;
|
|
...
|
...
|
@@ -441,7 +442,7 @@ Page({ |
|
|
|
}
|
|
|
|
this.sellersNow=now_sid;
|
|
|
|
let obj={}
|
|
|
|
if(hasSellerConcat){
|
|
|
|
if(this.hasSellerConcat){
|
|
|
|
obj.markers=this.data.markers.concat(markers);
|
|
|
|
}else{
|
|
|
|
obj.markers=markers;
|
|
...
|
...
|
@@ -484,9 +485,15 @@ Page({ |
|
|
|
},
|
|
|
|
bindMultiPickerChange(e){
|
|
|
|
console.log(e);
|
|
|
|
let val=util.val(e);
|
|
|
|
this.setData({
|
|
|
|
multiIndex:util.val(e)
|
|
|
|
multiIndex:val
|
|
|
|
})
|
|
|
|
this.hasSellerConcat=hasSellerConcat;
|
|
|
|
if(val[0]>0 || val[1]>0){
|
|
|
|
this.hasSellerConcat=false;
|
|
|
|
this.sellersIds=[];
|
|
|
|
}
|
|
|
|
this.getMarkers();
|
|
|
|
},
|
|
|
|
setSuggestion(suggestion){
|
...
|
...
|
|