|
|
|
@ -104,17 +104,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 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.data.active===1){ |
|
|
|
|