|
...
|
...
|
@@ -95,9 +95,9 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
backfill: this.data.suggestion[i].title
|
|
|
|
});
|
|
|
|
PubSub.emit('searchParam',{fun:'setSuggestion',suggestion:this.data.suggestion[i]})
|
|
|
|
PubSub.emit('searchParamList',{fun:'setSuggestion',suggestion:this.data.suggestion[i]})
|
|
|
|
this.setSuggestion({fun:'setSuggestion',suggestion:this.data.suggestion[i]})
|
|
|
|
wx.navigateBack();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
...
|
...
|
@@ -230,8 +230,7 @@ Page({ |
|
|
|
//let pages = getCurrentPages();
|
|
|
|
//let p = pages[pages.length - 2];
|
|
|
|
//p.setSuggestion(item)
|
|
|
|
PubSub.emit('searchParam',{fun:'setSuggestion',suggestion:item})
|
|
|
|
PubSub.emit('searchParamList',{fun:'setSuggestion',suggestion:item})
|
|
|
|
this.setSuggestion({fun:'setSuggestion',suggestion:item})
|
|
|
|
this.setData({
|
|
|
|
backfill: item.title
|
|
|
|
});
|
|
...
|
...
|
@@ -302,4 +301,13 @@ Page({ |
|
|
|
this.selectComponent('#as').show(e.detail.seller);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
setSuggestion(data){//只通知前页变更数据
|
|
|
|
let pages = getCurrentPages();
|
|
|
|
let p = pages[pages.length - 2];
|
|
|
|
if(p.route=='pages/reserve/index'){
|
|
|
|
PubSub.emit('searchParam',data)
|
|
|
|
}else{
|
|
|
|
PubSub.emit('searchParamList',data)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|