|
|
|
// pages/reserve/home.js
|
|
|
|
import App from '../../utils/api';
|
|
|
|
import util from '../../utils/util'
|
|
|
|
import PubSub from '../../utils/PubSub'
|
|
|
|
const {regeneratorRuntime} = global
|
|
...
|
...
|
@@ -92,7 +93,16 @@ Page({ |
|
|
|
console.log('locationEvent',e.detail)
|
|
|
|
this.city=e.detail.city
|
|
|
|
this.setData({
|
|
|
|
location:e.detail.isAddr?e.detail.address:e.detail.city.name
|
|
|
|
location:e.detail.isAddr?e.detail.address:e.detail.city.name,
|
|
|
|
IsSetActivityByFoods:false,
|
|
|
|
})
|
|
|
|
App.Customer.IsSetActivityByFoods({
|
|
|
|
pid:this.city.pid,
|
|
|
|
code:this.city.code,
|
|
|
|
}).then(res=>{
|
|
|
|
this.setData({
|
|
|
|
IsSetActivityByFoods:res.data,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
filterParams:null,
|
...
|
...
|
|