|
...
|
...
|
@@ -33,8 +33,8 @@ Page({ |
|
|
|
markers: [],
|
|
|
|
//polygons:{},
|
|
|
|
//sellers:[],
|
|
|
|
multiArray: [['不确定'], ['全部菜系']],
|
|
|
|
multiIndex: [0, 0],
|
|
|
|
multiArray: ['全部菜系'],
|
|
|
|
multiIndex: [0],
|
|
|
|
//scrollIntoView:'',
|
|
|
|
suggestion:{},
|
|
|
|
hasSuggestion:false,//搜索返回
|
|
...
|
...
|
@@ -42,6 +42,11 @@ Page({ |
|
|
|
hasSellers:false,
|
|
|
|
hasGetSellersEnd:false,
|
|
|
|
hasSetActivity:false,
|
|
|
|
tags:[
|
|
|
|
{id:1,name:'环境超棒'},
|
|
|
|
{id:2,name:'菜品有特色'},
|
|
|
|
{id:3,name:'超大包间'},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
hasClickMoveToLocation:false,//点击回到我的位置
|
|
|
|
hasSellerConcat:hasSellerConcat,
|
|
...
|
...
|
@@ -66,7 +71,7 @@ Page({ |
|
|
|
// key: 'SDEBZ-I74W4-QLGUX-XXYXU-HIR23-3QFBJ'
|
|
|
|
// });
|
|
|
|
this.setData({
|
|
|
|
multiArray:[['不确定'].concat(renNum()), ['全部菜系'].concat(await DA.getCates())]
|
|
|
|
multiArray:[['全部菜系'].concat(await DA.getCates())]
|
|
|
|
})
|
|
|
|
mta.Page.init({
|
|
|
|
"appID": "500667280",
|
|
...
|
...
|
@@ -391,10 +396,16 @@ Page({ |
|
|
|
map:JSON.stringify({...this.mapData.region,scale:this.mapData.scale})
|
|
|
|
}
|
|
|
|
if(this.data.multiIndex[0]>0){
|
|
|
|
param.pnum=this.data.multiIndex[0];
|
|
|
|
param.cuisine=await DA.getCatesID(this.data.multiIndex[0]-1);
|
|
|
|
}
|
|
|
|
if(this.data.multiIndex[1]>0){
|
|
|
|
param.cuisine=await DA.getCatesID(this.data.multiIndex[1]-1);
|
|
|
|
let tags=[];
|
|
|
|
this.data.tags.forEach(t=>{
|
|
|
|
if(t.active){
|
|
|
|
tags.push(t.id)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
if(tags.length>0){
|
|
|
|
param.tags=tags;
|
|
|
|
}
|
|
|
|
let now_sid=[];
|
|
|
|
App.Customer.SellerList(param).then(res => {
|
|
...
|
...
|
@@ -532,7 +543,7 @@ Page({ |
|
|
|
multiIndex:val
|
|
|
|
})
|
|
|
|
this.hasSellerConcat=hasSellerConcat;
|
|
|
|
if(val[0]>0 || val[1]>0){
|
|
|
|
if(val[0]>0){
|
|
|
|
this.hasSellerConcat=false;
|
|
|
|
this.sellersIds=[];
|
|
|
|
}
|
|
...
|
...
|
@@ -633,4 +644,20 @@ Page({ |
|
|
|
}
|
|
|
|
return mks;
|
|
|
|
},
|
|
|
|
tagsChange(e){
|
|
|
|
let id=util.attr(e,'id');
|
|
|
|
let tags=this.data.tags;
|
|
|
|
tags.forEach(t=>{
|
|
|
|
if(t.id==id){
|
|
|
|
t.active=!t.active
|
|
|
|
}
|
|
|
|
})
|
|
|
|
this.setData({
|
|
|
|
tags:tags,
|
|
|
|
})
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.getMarkers();
|
|
|
|
},0)
|
|
|
|
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|