Commit 9f80587fd1dda323f359dc9c2eacade5ad43f778

Authored by vking
1 parent 8238f6a3

search

... ... @@ -29,6 +29,14 @@ Component({
this.init()
this.filterParams= null
this.paramsData={}//过滤参数集合
setTimeout(()=>{
if(this.data.filterParams){
this.filterEvent({detail:{
type:'set',
data:this.data.filterParams,
}})
}
},0)
},
/**
* 组件的方法列表
... ...
... ... @@ -238,6 +238,7 @@ Page({
this.param.tags = this.filterGroupData.tags;
this.hasFilterData=true
}
console.log('this.filterGroupData',this.filterGroupData)
if (this.filterGroupData.cuisine) {
this.param.cuisine = this.filterGroupData.cuisine;
this.hasFilterData=true
... ... @@ -446,19 +447,11 @@ Page({
this.getList()
},
moveToLocation(){
if(!this.location || !this.location.latitude || !this.location.longitude){
this.selectComponent('#getpos').getPos(true);
return;
}
this.suggestion=null
this.hasCleanSuggestion=true
delete this.options.keyword
this.setData({
suggestion:null,
hasSuggestion:false,
keyword:'',
})
//PubSub.emit('searchParam', {fun:'moveToLocation'})
setTimeout(()=>{this.getList()},0)
this.selectComponent('#getpos').getPos();
},
filterShow(){
this.selectComponent('#filter').show(this.filterParams);
... ...