|
|
|
@ -106,17 +106,17 @@ Page({
|
|
|
|
|
onShow: function () { |
|
|
|
|
let demo =wx.getStorageSync("date"); |
|
|
|
|
let timer=this.data.timer; |
|
|
|
|
// if(demo){
|
|
|
|
|
// timer=demo.time
|
|
|
|
|
// this.setData({
|
|
|
|
|
// timer
|
|
|
|
|
// })
|
|
|
|
|
// }else{
|
|
|
|
|
// timer = moment().format('YYYY-MM-DD')
|
|
|
|
|
// this.setData({
|
|
|
|
|
// timer
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
if(demo){ |
|
|
|
|
timer=demo.time |
|
|
|
|
this.setData({ |
|
|
|
|
timer |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
timer = moment().format('YYYY-MM-DD') |
|
|
|
|
this.setData({ |
|
|
|
|
timer |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$api.getLandlistedList({annoDate:timer,city:this.data.cityName}).then(res=>{ |
|
|
|
|
console.log(res.data) |
|
|
|
|