schedule.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <view class="container">
  2. <!-- 日历组件 -->
  3. <view class="calendar">
  4. <calendar spot="{{eventList}}" bind:change="callSelectDate"></calendar>
  5. </view>
  6. <!-- end -->
  7. <!-- 课表列表 -->
  8. <view class="class-view">
  9. <view class="class-date">{{date}} {{week}}</view>
  10. <view class="class-list">
  11. <view class="class-box" wx:for="{{dateList}}" wx:key="index">
  12. <view class="class-name"><text class="class-type">{{item.kindId == 1 ? '1v1':'集体'}}</text>{{item.classesName}}</view>
  13. <view class="class-time">{{item.bt}} ~ {{item.et}}</view>
  14. <view class="class-room">{{item.roomName}}</view>
  15. <view class="class-flag">
  16. <span wx:if="{{item.status == 0 || item.status == 11 || item.status == 12 || item.status == 4}}">{{item.isAttend == 1 ?'已' : '待'}}上课</span>
  17. <span wx:if="{{item.status == 2}}">已请假</span>
  18. <span wx:if="{{item.status == 3}}">已调出</span>
  19. <span wx:if="{{item.status == 11 || item.status == 12}}">加课</span>
  20. <span wx:if="{{item.status == 5}}">补课</span>
  21. </view>
  22. <view class="class-teacher">老师:{{item.teacherName}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- end -->
  27. </view>