taskreminder.axml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
  2. <view class="tasks-page">
  3. <!---客户信息-->
  4. <view class="tasks-head">
  5. <view class="cell-title">
  6. <label>{{servantName}}</label>
  7. <view class="cell-right">
  8. <image mode="scaleToFill" src="/image/switch-grey.png"/>
  9. <label>切换到其他家庭</label>
  10. </view>
  11. </view>
  12. <view class="cell-list">
  13. {{weekday}}
  14. </view>
  15. <view class="cell-type">
  16. 保姆工种:<label>{{formate.serviceType(servantTypeValue)}}</label>
  17. </view>
  18. </view>
  19. <!---一周任务查看器-->
  20. <view class="tasks-line">
  21. <view class="common-page-padding tasks-tik">
  22. <view class="tik-title">
  23. <label>今天</label>
  24. <view class="tik-right" onTap="showtime">
  25. <image mode="scaleToFill" src="/image/icon-calendar.png"/>
  26. <label>查看其它日期</label>
  27. </view>
  28. </view>
  29. <view class="tik-week" a:for="{{datelist}}" key="{{index}}">
  30. <view class="tik-week-item {{item.cssName}}" onTap="changeWeekTime" data-id="{{id}}">
  31. <view>{{item.title}}</view>
  32. <view>{{item.day}}
  33. <text a:if={{item.cssName}}>\n▪</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <!--任务列表-->
  39. <view class="common-page-padding tasks-list">
  40. <view class="cell-title">
  41. <label>任务提醒</label>
  42. <!--<view class="tik-right"><image mode="scaleToFill" src="/image/icon-edit.png"/><label>编辑每日任务</label></view> -->
  43. </view>
  44. <!--有提醒任务-->
  45. <view a:if="{{isreminds}}" a:for="{{taskList}}" key="{{index}}">
  46. <view class="tasks-list-item" a:if="{{item.state == 0}}">
  47. <text> {{item.itemName}}</text>
  48. <view class="tasks-item-red">
  49. <text> 未完成</text>
  50. </view>
  51. </view>
  52. <view class="tasks-list-item" a:if="{{item.state == 1}}">
  53. <text> {{item.itemName}}</text>
  54. <view class="tasks-item-yes">
  55. <text> 已完成</text>
  56. </view>
  57. </view>
  58. <view class="tasks-list-item" a:if="{{item.state == 2}}">
  59. <text>{{item.itemName}}</text>
  60. <label class="nogood" a:if="{{item.incompleteReason == 1}}">任务太多</label>
  61. <label class="nogood" a:if="{{item.incompleteReason == 2}}">我不会</label>
  62. <label class="nogood" a:if="{{item.incompleteReason == 3}}">任务不详细</label>
  63. <view class="tasks-item-red">
  64. <text> 未完成</text>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!--没有任务-->
  70. <view a:if="{{!isreminds}}">
  71. <view class="notasks">
  72. <text>还没有任务</text>
  73. </view>
  74. </view>
  75. <!---没有任务花销计算不显示-->
  76. <view a:if="{{isreminds}}" class="tast-moneybox">
  77. <view class="tasks-list-money">
  78. <view class="tasks-list-pay">今日花销合计</view>
  79. <text> {{item.itemName}}</text>
  80. <text> {{item.itemName}}</text>
  81. </view>
  82. </view>
  83. </view>
  84. <!---弹出日历--->
  85. <modal show="{{showchangetime}}">
  86. <calendar
  87. type="single"
  88. onSelect="handleSelect" />
  89. </modal>
  90. <!--弹出取消原因-->
  91. <modal show="{{showcancelbox}}">
  92. <view class="cancel-box">
  93. <text>取消原因</text>
  94. <radio-group class="radio-group weui-input">
  95. <label a:for="{{cancellist}}" a:key={{value}}>
  96. <radio value="{{item.value}}" class="radio" checked="{{item.checked}}"/>{{item.label}}
  97. </label>
  98. </radio-group>
  99. </view>
  100. <view class="am-modal-buttons--vertical" onTap="hidecnacelbox" >
  101. 取消
  102. </view>
  103. <view class="am-modal-buttons--vertical">
  104. 确认选择
  105. </view>
  106. </modal>
  107. </view>