Commit 9f80587fd1dda323f359dc9c2eacade5ad43f778

Authored by vking
1 parent 8238f6a3

search

@@ -29,6 +29,14 @@ Component({ @@ -29,6 +29,14 @@ Component({
29 this.init() 29 this.init()
30 this.filterParams= null 30 this.filterParams= null
31 this.paramsData={}//过滤参数集合 31 this.paramsData={}//过滤参数集合
  32 + setTimeout(()=>{
  33 + if(this.data.filterParams){
  34 + this.filterEvent({detail:{
  35 + type:'set',
  36 + data:this.data.filterParams,
  37 + }})
  38 + }
  39 + },0)
32 }, 40 },
33 /** 41 /**
34 * 组件的方法列表 42 * 组件的方法列表
@@ -238,6 +238,7 @@ Page({ @@ -238,6 +238,7 @@ Page({
238 this.param.tags = this.filterGroupData.tags; 238 this.param.tags = this.filterGroupData.tags;
239 this.hasFilterData=true 239 this.hasFilterData=true
240 } 240 }
  241 + console.log('this.filterGroupData',this.filterGroupData)
241 if (this.filterGroupData.cuisine) { 242 if (this.filterGroupData.cuisine) {
242 this.param.cuisine = this.filterGroupData.cuisine; 243 this.param.cuisine = this.filterGroupData.cuisine;
243 this.hasFilterData=true 244 this.hasFilterData=true
@@ -446,19 +447,11 @@ Page({ @@ -446,19 +447,11 @@ Page({
446 this.getList() 447 this.getList()
447 }, 448 },
448 moveToLocation(){ 449 moveToLocation(){
449 - if(!this.location || !this.location.latitude || !this.location.longitude){  
450 - this.selectComponent('#getpos').getPos(true);  
451 - return;  
452 - }  
453 - this.suggestion=null  
454 - this.hasCleanSuggestion=true 450 + delete this.options.keyword
455 this.setData({ 451 this.setData({
456 - suggestion:null,  
457 - hasSuggestion:false,  
458 keyword:'', 452 keyword:'',
459 }) 453 })
460 - //PubSub.emit('searchParam', {fun:'moveToLocation'})  
461 - setTimeout(()=>{this.getList()},0) 454 + this.selectComponent('#getpos').getPos();
462 }, 455 },
463 filterShow(){ 456 filterShow(){
464 this.selectComponent('#filter').show(this.filterParams); 457 this.selectComponent('#filter').show(this.filterParams);