|
...
|
...
|
@@ -475,6 +475,9 @@ Page({ |
|
|
|
if(this.data.hasSuggestion){
|
|
|
|
param.centre_pos=`${this.data.suggestion.latitude},${this.data.suggestion.longitude}`
|
|
|
|
}
|
|
|
|
if(this.findSellerData){
|
|
|
|
param=Object.assign(param,this.findSellerData.paramObj)
|
|
|
|
}
|
|
|
|
this.selectComponent('#list').getList(param);
|
|
|
|
this.param=param;
|
|
|
|
let now_sid=[];
|
|
...
|
...
|
@@ -850,7 +853,18 @@ Page({ |
|
|
|
tags:this.param.tags,
|
|
|
|
centre_pos:this.param.centre_pos,
|
|
|
|
hasSuggestion:this.data.hasSuggestion?1:''
|
|
|
|
},'./indexList')
|
|
|
|
},'./indexList'),
|
|
|
|
success: res=> {
|
|
|
|
// 通过eventChannel向被打开页面传送数据
|
|
|
|
if(this.findSellerData){
|
|
|
|
res.eventChannel.emit('acceptDataFromMapPage', this.findSellerData)
|
|
|
|
}
|
|
|
|
res.eventChannel.on('findSellerData',findSellerData=>{
|
|
|
|
console.log('findSellerData',findSellerData)
|
|
|
|
this.findSellerData=findSellerData
|
|
|
|
setTimeout(()=>{this.getMarkers();},0)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
setTSLocal(){
|
|
...
|
...
|
@@ -871,4 +885,21 @@ Page({ |
|
|
|
}
|
|
|
|
this.setData(sdobj)
|
|
|
|
},
|
|
|
|
findSellerData:null,
|
|
|
|
findSeller(){
|
|
|
|
wx.navigateTo({
|
|
|
|
url: './findSeller',
|
|
|
|
success: res=> {
|
|
|
|
// 通过eventChannel向被打开页面传送数据
|
|
|
|
if(this.findSellerData){
|
|
|
|
res.eventChannel.emit('acceptDataFromMapPage', this.findSellerData)
|
|
|
|
}
|
|
|
|
res.eventChannel.on('findSellerData',findSellerData=>{
|
|
|
|
console.log('findSellerData',findSellerData)
|
|
|
|
this.findSellerData=findSellerData
|
|
|
|
setTimeout(()=>{this.getMarkers();},0)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|