|
...
|
...
|
@@ -29,14 +29,17 @@ Page({ |
|
|
|
console.log('onLoad',options);
|
|
|
|
this.id=options.id;
|
|
|
|
this.ddate=options.ddate;
|
|
|
|
if(new Date()/1000+1800>options.ddate){
|
|
|
|
if(options.remindtime=='NaN'){
|
|
|
|
options.remindtime=0;
|
|
|
|
}
|
|
|
|
if(new Date()/1000+1800>parseInt(options.ddate)){
|
|
|
|
this.setData({
|
|
|
|
reminds:[{val:0,label:'不提醒'}]
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
if(options.remindtime>0){
|
|
|
|
if(parseInt(options.remindtime)>0){
|
|
|
|
this.setData({
|
|
|
|
remindtime:(options.ddate-options.remindtime)/60
|
|
|
|
remindtime:(parseInt(options.ddate)-parseInt(options.remindtime))/60
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -75,7 +78,7 @@ Page({ |
|
|
|
console.log(val);
|
|
|
|
this.remind_date=0;
|
|
|
|
if(val>0){
|
|
|
|
this.remind_date=parseInt(this.rdate)-parseInt(val*60);
|
|
|
|
this.remind_date=parseInt(this.ddate)-parseInt(val*60);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
remind(){
|
...
|
...
|
|