classList.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view class="class-container">
  2. <!--
  3. <view class="class-view">
  4. <view class="class-date">2021-02-22 星期一</view>
  5. <view class="class-list">
  6. <radio-group bindchange="radioChange">
  7. <view class="class-box" wx:for="{{3}}" wx:key="index">
  8. <view class="class-name"><text class="class-type">1v1</text>小鹏钢琴课</view>
  9. <view class="class-time">09:00 ~ 11:00</view>
  10. <view class="get-box" wx:if="{{!showFlag}}">
  11. <radio value="{{index}}" checked="" color="#cc6031"/>
  12. </view>
  13. <view class="class-room">钢琴教室01</view>
  14. <view class="class-flag" wx:if="{{showFlag}}">已上课</view>
  15. <view class="class-teacher" style="{{!showFlag ? 'margin-left:54rpx' : ''}}">张老师</view>
  16. <view wx:if="{{showLeaveNum}}" class="last-leave-num" bindtap="getLeaveNumList">本课程请假余额 6 次</view>
  17. </view>
  18. </radio-group>
  19. </view>
  20. </view>-->
  21. <view class="class-view">
  22. <view class="class-date">{{date}} {{week}}</view>
  23. <view class="class-list">
  24. <view class="class-box" wx:for="{{list}}" wx:key="index">
  25. <view class="class-name"><text class="class-type">{{item.kindId == 1 ? '1v1':'集体'}}</text>{{item.classesName}}</view>
  26. <view class="class-time">{{item.bt}} ~ {{item.et}}</view>
  27. <view class="class-room">{{item.roomName}}</view>
  28. <view class="class-flag">
  29. <span wx:if="{{item.status == 0 || item.status == 11 || item.status == 12 || item.status == 4}}">{{item.isAttend == 1 ?'已' : '待'}}上课</span>
  30. <span wx:if="{{item.status == 2}}">已请假</span>
  31. <span wx:if="{{item.status == 3}}">已调出</span>
  32. <span wx:if="{{item.status == 11 || item.status == 12}}">加课</span>
  33. <span wx:if="{{item.status == 5}}">补课</span>
  34. </view>
  35. <view class="class-teacher">老师:{{item.teacherName}}</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>