|
@@ -16,14 +16,15 @@ Page({
|
|
|
weekday: '',//日前
|
|
|
servantTypeValue: '',//保姆工种,
|
|
|
taskList: [],
|
|
|
+ selectDailyCost:0 //今日花销
|
|
|
},
|
|
|
onLoad() {
|
|
|
//加载选中的时间
|
|
|
let that=this;
|
|
|
that.getWeekStartDate(this.data.nowselectTime);
|
|
|
that.setnowweek();
|
|
|
- this.selectDayTaskItem()
|
|
|
- this.selectDayTaskCost()
|
|
|
+ this.selectDayTaskItem();
|
|
|
+ this.selectDayTaskCost();
|
|
|
},
|
|
|
setnowweek(){
|
|
|
let data = this.data.datelist;
|
|
@@ -114,6 +115,7 @@ Page({
|
|
|
datelist:weeklist
|
|
|
});
|
|
|
this.selectDayTaskItem();
|
|
|
+ this.selectDayTaskCost();
|
|
|
},
|
|
|
|
|
|
showtime(){
|
|
@@ -128,9 +130,10 @@ Page({
|
|
|
showchangetime:false,
|
|
|
nowDay:new Date(util.formatDate(e[0])).getDay()
|
|
|
});
|
|
|
- this.selectDayTaskItem();
|
|
|
this.getWeekStartDate(util.formatDate(e[0]));
|
|
|
this.setnowweek();
|
|
|
+ this.selectDayTaskItem();
|
|
|
+ this.selectDayTaskCost();
|
|
|
},
|
|
|
|
|
|
// 查询保姆每日任务
|
|
@@ -166,7 +169,9 @@ Page({
|
|
|
"date": this.data.nowselectTime
|
|
|
}
|
|
|
request.httpServiceGet(apiUrl.getEmployerCost, params).then(data => {
|
|
|
-
|
|
|
+ this.setData({
|
|
|
+ selectDailyCost:data
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
).catch(e => {
|