|
...
|
...
|
@@ -89,12 +89,28 @@ Page({ |
|
|
|
meLocation(){
|
|
|
|
this.selectComponent('#location').rePos({currentTarget:{dataset:{isAddr:true}}});
|
|
|
|
},
|
|
|
|
GetRecomList(){
|
|
|
|
App.Customer.GetRecomList({
|
|
|
|
pid:this.city.pid,
|
|
|
|
code:this.city.code,
|
|
|
|
lat:this.position.latitude,
|
|
|
|
lng:this.position.longitude,
|
|
|
|
offset:1,
|
|
|
|
size:50
|
|
|
|
}).then(res=>{
|
|
|
|
this.setData({
|
|
|
|
sellers:res.data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
locationEvent(e){
|
|
|
|
console.log('locationEvent',e.detail)
|
|
|
|
this.city=e.detail.city
|
|
|
|
this.position=e.detail.position
|
|
|
|
this.setData({
|
|
|
|
location:e.detail.isAddr?e.detail.address:e.detail.city.name,
|
|
|
|
IsSetActivityByFoods:false,
|
|
|
|
sellers:[],
|
|
|
|
})
|
|
|
|
App.Customer.IsSetActivityByFoods({
|
|
|
|
pid:this.city.pid,
|
|
...
|
...
|
@@ -104,6 +120,7 @@ Page({ |
|
|
|
IsSetActivityByFoods:res.data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.GetRecomList()
|
|
|
|
},
|
|
|
|
filterParams:null,
|
|
|
|
displayFilter(){
|
...
|
...
|
|