gaoyognxing 4 лет назад
Родитель
Сommit
4731ba09cc

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

@@ -128,7 +128,7 @@
   border-top-right-radius: 12rpx;
   border-bottom-right-radius: 12rpx;
   background-color:#FAFAFA;
-  color: rgb(101, 157, 241)
+  color: rgb(54, 127, 236)
 }
 .tasks-list-item image{
   width: 35rpx;

+ 28 - 0
client/pages/customer/taskreminder/taskreminder.js

@@ -1,5 +1,6 @@
 var util = require('../../../util/util.js')
 import apiUrl1 from '../../../util/apiUrl1'
+import apiUrl from '../../../util/apiUrl'
 import request from '../../../util/http'
 var app = getApp();
 Page({
@@ -42,6 +43,7 @@ Page({
     //处理时间完成
 
     this.selectDayTaskItem()
+    this.selectDayTaskCost()
   },
   showcancel(){
     this.setData({
@@ -129,5 +131,31 @@ Page({
 
     })
   },
+  //查询今天花销
+  selectDayTaskCost() {
+    let params = {
+      "employRelationNo": app.globalData.employRelationNo,
+      "date": this.data.nowselectTime
+    }
+    request.httpServiceGet(apiUrl.getEmployerCost, params).then(data => {
+      console.log("今日任务花费=" + data);
+      // 未设置任务
+      if (data.length == 0) {
+        this.setData({
+          isreminds: false,
+        });
+      } else {
+        // 今天有任务
+        this.setData({
+          taskList: data,
+        });
+      }
+    }
+
+    ).catch(e => {
+      console.log(e);
+
+    })
+  },
 
 });