task.wxml 945 B

12345678910111213141516171819202122232425262728
  1. <view class="container">
  2. <!-- 时间筛选 -->
  3. <selectDate></selectDate>
  4. <!-- end -->
  5. <!-- 顶部切换标题 -->
  6. <view class="switch-view">
  7. <view class="switch-title {{curIndex == index ? 'curTitle' : ''}}" wx:for="{{switchTitle}}" data-index="{{index}}" wx:key="index" bindtap="getSwitch">{{item}}</view>
  8. </view>
  9. <!-- end -->
  10. <!-- 作业列表 -->
  11. <view class="task-view">
  12. <view class="task-list">
  13. <view class="task-box" wx:for="{{3}}" wx:key="index">
  14. <view class="task-title">2021-02-21 课后作业</view>
  15. <view class="do-time" wx:if="{{curIndex == 1}}">2021-02-22</view>
  16. <view class="task-class">小鹏钢琴课</view>
  17. <view class="task-time">09:00 ~ 11:00</view>
  18. <view class="task-desc">测试数据测试数据测试数据测试数据测试数据</view>
  19. <view class="do-task">{{doName}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- end -->
  24. </view>