fuxubing %!s(int64=4) %!d(string=hai) anos
pai
achega
f6e2945407

+ 8 - 6
client/pages/servant/taskreminder/taskreminder.axml

@@ -63,17 +63,19 @@
           </view>
           <view class="tasks-list-item" a:if="{{item.state == 2}}">
             <text> {{item.itemName}}</text>
-            <label class="nogood">{{item.incompleteReason}}</label>
+            <label class="nogood" a:if="{{item.incompleteReason == 1}}">任务太多</label>
+            <label class="nogood" a:if="{{item.incompleteReason == 2}}">我不会</label>
+            <label class="nogood" a:if="{{item.incompleteReason == 3}}">任务不详细</label>
             <view class="tasks-item-yes">
               <image mode="scaleToFill" src="/image/icon-no.png"/>
             </view>
           </view>
         </view>
-        <!--没有任务-->
-        <view a:if="{{!isreminds}}">
-          <view class="notasks">
-            <text>还没有任务</text>
-          </view>
+      </view>
+      <!--没有任务-->
+      <view a:if="{{!isreminds}}">
+        <view class="notasks">
+          <text>还没有任务</text>
         </view>
       </view>
       <!---没有任务花销计算不显示-->

+ 2 - 2
client/pages/servant/taskreminder/taskreminder.js

@@ -33,7 +33,7 @@ Page({
       datelist: data
     });
     //处理时间完成
-     this.selectDayTaskItem();
+    this.selectDayTaskItem();
   },
   showcancel() {
     this.setData({
@@ -104,7 +104,7 @@ Page({
     request.httpServiceGet(apiUrl1.selectDayTaskItemPath, params).then(data => {
       console.log(data);
       // 未设置任务
-      if (data == null) {
+      if (data.length == 0) {
         this.setData({
           isreminds: false,
         });