taskreminder.axml 4.3 KB

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