Browse Source

修复保姆工作站-任务展示

una 4 years ago
parent
commit
8d6fe08841
1 changed files with 7 additions and 5 deletions
  1. 7 5
      client/pages/customer/customerCenter/customerCenter.js

+ 7 - 5
client/pages/customer/customerCenter/customerCenter.js

@@ -62,6 +62,7 @@ Page({
  onShow(query){
     console.log(query);
       this.initCustomerInfo();
+       this.selectTodayTaskItem();
       this.getEmployerNotice();
       this.selectMonthlyReport();
   },
@@ -92,14 +93,14 @@ Page({
         });
         // 获取任务设置和服务标准设置
     this.isChooseSerStanSubject();
-    this.selectTodayTaskItem();
+    // this.selectTodayTaskItem();
            
         }else{
-           this.setData({
+          //  this.setData({
             //  unSetServiceModal:true,
             //  noSetSerStan:true,
              noAddTaskShow:true,
-             });
+            //  });
           //  获取服务标准和任务设置的具体情况
           this.isSetServiceAndTask();
         }
@@ -138,7 +139,8 @@ Page({
      request.httpServiceGet(apiUrl.selectTodayTaskItemPath,params).then(data=>{
         console.log(data);
         // 未设置任务
-        if(!data.isSet){
+        if(data.isSet==false){
+          console.log('isSet:false');
             this.setData({
          noAddTaskShow:true,
          noTaskShow:false,
@@ -216,7 +218,7 @@ Page({
              unSetTaskModal:false,
              finishSetModal:true,
              });
-             this.selectTodayTaskItem();//获取任务前三条
+            //  this.selectTodayTaskItem();//获取任务前三条
         }
      
           }).catch(e=>{