|
@@ -16,7 +16,8 @@ Page({
|
|
|
weekday: '',//日前
|
|
|
servantTypeValue: '',//保姆工种,
|
|
|
taskList: [],
|
|
|
- selectDailyCost:0 //今日花销
|
|
|
+ selectDailyCost:0, //今日花销
|
|
|
+ tomorrowtasksState:true,//明天任务状态
|
|
|
},
|
|
|
onLoad() {
|
|
|
//加载选中的时间
|
|
@@ -117,6 +118,13 @@ Page({
|
|
|
});
|
|
|
this.selectDayTaskItem();
|
|
|
this.selectDayTaskCost();
|
|
|
+ //如果是选中的时间大于当天,任务不显示
|
|
|
+ let nowdate=util.formatDate(new Date());
|
|
|
+ if(nowdate < this.data.nowselectTime){
|
|
|
+ this.setData({
|
|
|
+ tomorrowtasksState: false
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
showtime(){
|
|
@@ -135,6 +143,13 @@ Page({
|
|
|
this.setnowweek();
|
|
|
this.selectDayTaskItem();
|
|
|
this.selectDayTaskCost();
|
|
|
+ //如果是选中的时间大于当天,任务不显示
|
|
|
+ let nowdate=util.formatDate(new Date());
|
|
|
+ if(nowdate < this.data.nowselectTime){
|
|
|
+ this.setData({
|
|
|
+ tomorrowtasksState: false
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
// 查询保姆每日任务
|