|
@@ -36,60 +36,49 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--任务列表-->
|
|
|
- <view class="common-page-padding tasks-list">
|
|
|
- <view class="cell-title">
|
|
|
- <label>任务提醒</label>
|
|
|
- <view class="tik-right">
|
|
|
- <image mode="scaleToFill" src="/image/icon-edit.png"/>
|
|
|
- <label>编辑每日任务</label>
|
|
|
+ <view class="common-page-padding tasks-list">
|
|
|
+ <view class="cell-title">
|
|
|
+ <label>任务提醒</label>
|
|
|
+ <!--<view class="tik-right"><image mode="scaleToFill" src="/image/icon-edit.png"/><label>编辑每日任务</label></view> -->
|
|
|
+ </view>
|
|
|
+ <!--有提醒任务-->
|
|
|
+ <view a:if="{{isreminds}}" a:for="{{taskList}}" key="{{index}}">
|
|
|
+ <view class="tasks-list-item" a:if="{{item.state == 0}}">
|
|
|
+ <text> {{item.itemName}}</text>
|
|
|
+ <view class="tasks-item-red">
|
|
|
+ <text> 未完成</text>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
- <!--有提醒任务-->
|
|
|
- <view a:if="{{isreminds}}">
|
|
|
- <view class="tasks-list-item">
|
|
|
- <text>洗衣服</text>
|
|
|
- <view class="tasks-item-yes">
|
|
|
- <image mode="scaleToFill" src="/image/icon-yes.png"/>
|
|
|
- </view>
|
|
|
- <view class="tasks-item-no" onTap="showcancel">
|
|
|
- <image mode="scaleToFill" src="/image/icon-no.png"/>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="tasks-list-item">
|
|
|
- <text>做完饭</text>
|
|
|
- <view class="tasks-item-yes">
|
|
|
- <image mode="scaleToFill" src="/image/icon-yes.png"/>
|
|
|
- </view>
|
|
|
- <view class="tasks-item-no" onTap="showcancel">
|
|
|
- <image mode="scaleToFill" src="/image/icon-no.png"/>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="tasks-list-item">
|
|
|
- 打扫卧室
|
|
|
- </view>
|
|
|
- <view class="tasks-list-item">
|
|
|
- <text>打扫房间</text>
|
|
|
- <label class="nogood">任务不详细</label>
|
|
|
- <view class="tasks-item-yes">
|
|
|
- <image mode="scaleToFill" src="/image/icon-no.png"/>
|
|
|
- </view>
|
|
|
+ <view class="tasks-list-item" a:if="{{item.state == 1}}">
|
|
|
+ <text> {{item.itemName}}</text>
|
|
|
+ <view class="tasks-item-yes">
|
|
|
+ <text> 已完成</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!--没有任务-->
|
|
|
- <view a:if="{{!isreminds}}">
|
|
|
- <view class="notasks">
|
|
|
- <text>还没有任务</text>
|
|
|
+ <view class="tasks-list-item" a:if="{{item.state == 2}}">
|
|
|
+ <text>{{item.itemName}}</text>
|
|
|
+ <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-red">
|
|
|
+ <text> 未完成</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+ <!--没有任务-->
|
|
|
+ <view a:if="{{!isreminds}}">
|
|
|
+ <view class="notasks">
|
|
|
+ <text>还没有任务</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<!---没有任务花销计算不显示-->
|
|
|
<view a:if="{{isreminds}}" class="tast-moneybox">
|
|
|
<view class="tasks-list-money">
|
|
|
<view class="tasks-list-pay">今日花销合计</view>
|
|
|
- <view class="tasks-list-pay-right"><input placeholder="请输入"/><text>元</text></view>
|
|
|
- </view>
|
|
|
- <view class="tasks-set">
|
|
|
- <button type="primary" hover-class="active-button" onTap="createServant">提交</button>
|
|
|
+ <text> {{item.itemName}}</text>
|
|
|
+ <text> {{item.itemName}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|