浏览代码

任务提醒细化

yangyongyong 4 年之前
父节点
当前提交
96537a3a84

+ 13 - 1
client/pages/customer/taskreminder/taskreminder.acss

@@ -196,8 +196,20 @@
   width: 60%;
   margin-top: 24rpx;
 }
-.tasks-list-pay-right text{
+.tasks-list-money text{
   float: right;
+  color: #09AFFF;
+  font-weight: normal;
+  padding-right: 8rpx;
+  height: 102rpx;
+  line-height: 102rpx;
+}
+.tasks-list-money label{
+  float: right;
+  font-weight: normal;
+  padding-right: 23rpx;
+  height: 102rpx;
+  line-height: 102rpx;
 }
 .notasks{
   margin: 21rpx 24rpx 30rpx 24rpx;

+ 2 - 2
client/pages/customer/taskreminder/taskreminder.axml

@@ -77,8 +77,8 @@
       <view a:if="{{isreminds}}" class="tast-moneybox">
         <view class="tasks-list-money">
           <view class="tasks-list-pay">今日花销合计</view>
-          <text> {{item.itemName}}</text>
-          <text> {{item.itemName}}</text>
+          <label>元</label>
+          <text> {{selectDailyCost}}</text>
         </view>
       </view>
     </view>

+ 9 - 4
client/pages/customer/taskreminder/taskreminder.js

@@ -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 => {