|
...
|
...
|
@@ -68,14 +68,17 @@ Page({ |
|
|
|
if(options.city){
|
|
|
|
this.city=JSON.parse(options.city)
|
|
|
|
}
|
|
|
|
this.findSellerData=null
|
|
|
|
if(options.hows){
|
|
|
|
this.hows=JSON.parse(options.hows)
|
|
|
|
let paramStr=this.hows.paramStr.split(" ");
|
|
|
|
this.findSellerData=JSON.parse(options.hows)
|
|
|
|
let paramStr=this.findSellerData.paramStr.split(" ");
|
|
|
|
this.setData({
|
|
|
|
findSellerData:this.findSellerData,
|
|
|
|
headerHows:[
|
|
|
|
paramStr[0].substr(0,6),
|
|
|
|
paramStr[1]+' '+paramStr[2],
|
|
|
|
],
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.options=options;
|
|
...
|
...
|
@@ -223,7 +226,7 @@ Page({ |
|
|
|
code:this.city.code,
|
|
|
|
pid:this.city.pid,
|
|
|
|
keyword:this.options.keyword||'',
|
|
|
|
...this.hows.paramObj,
|
|
|
|
...this.findSellerData.paramObj,
|
|
|
|
}
|
|
|
|
console.log('this.location',this.location)
|
|
|
|
if(this.location){
|
|
...
|
...
|
@@ -364,10 +367,15 @@ Page({ |
|
|
|
this.selectComponent('#search-how').show();
|
|
|
|
},
|
|
|
|
howEvent(e){
|
|
|
|
this.eventChannel.emit('findSellerData',e.detail)
|
|
|
|
//this.eventChannel.emit('findSellerData',e.detail)
|
|
|
|
this.findSellerData=e.detail
|
|
|
|
let paramStr=this.findSellerData.paramStr.split(" ");
|
|
|
|
this.setData({
|
|
|
|
findSellerData:e.detail
|
|
|
|
findSellerData:e.detail,
|
|
|
|
headerHows:[
|
|
|
|
paramStr[0].substr(0,6),
|
|
|
|
paramStr[1]+' '+paramStr[2],
|
|
|
|
],
|
|
|
|
})
|
|
|
|
setTimeout(()=>{this.getList();},0)
|
|
|
|
this.selectComponent('#search-how').hide();
|
|
...
|
...
|
@@ -513,7 +521,7 @@ Page({ |
|
|
|
url:util.http_build_query({
|
|
|
|
filter:this.filterParams?JSON.stringify(this.filterParams):null,
|
|
|
|
city:JSON.stringify(this.city),
|
|
|
|
hows:JSON.stringify(this.hows),
|
|
|
|
hows:JSON.stringify(this.findSellerData),
|
|
|
|
},'/pages/reserve/searchKeyword')
|
|
|
|
})
|
|
|
|
},
|
...
|
...
|
|