|
|
|
@ -26,13 +26,17 @@ Page({ |
|
|
|
lat: "", |
|
|
|
lon: "", |
|
|
|
keywords: "", |
|
|
|
realKeywords: "" |
|
|
|
realKeywords: "", |
|
|
|
movieAreas:[], |
|
|
|
movieArea:0 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad: function (options) { |
|
|
|
this.getMovieArea() |
|
|
|
let d = new Date(); |
|
|
|
let month = d.getMonth() + 1, |
|
|
|
day = d.getDate(); |
|
|
|
@ -86,6 +90,18 @@ Page({ |
|
|
|
console.log(this.data.type); |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
getMovieArea(){ |
|
|
|
commonApi._post("act/get_suzhou_areas_syt").then(res => { |
|
|
|
res.data.unshift({ |
|
|
|
area_id: "", |
|
|
|
area_title: "苏州市" |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
movieAreas:res.data |
|
|
|
}) |
|
|
|
this.getList() |
|
|
|
}) |
|
|
|
}, |
|
|
|
changeArea: function (e) { |
|
|
|
this.setData({ |
|
|
|
area: e.detail.value, |
|
|
|
@ -241,6 +257,7 @@ Page({ |
|
|
|
data.lon = this.data.lon; |
|
|
|
data.is_price_sort = this.data.sort == 'price'; |
|
|
|
data.is_distance_sort = this.data.sort == 'distance'; |
|
|
|
data.city_code=this.data.movieAreas[this.data.movieArea].area_id||"" |
|
|
|
} |
|
|
|
// if(this.data.movieType==1){
|
|
|
|
// data.queryDate = this.data.date
|
|
|
|
@ -317,6 +334,16 @@ Page({ |
|
|
|
}) |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
setCity(e){ |
|
|
|
this.setData({ |
|
|
|
movieArea: e.detail.value, |
|
|
|
list: [], |
|
|
|
total: 1, |
|
|
|
pageNo: 1, |
|
|
|
moreFlag: true |
|
|
|
}) |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
changeMovieType: function (e) { |
|
|
|
let type = e.currentTarget.dataset.type; |
|
|
|
this.setData({ |
|
|
|
|