classList.wxml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <view class="class-container">
  2. <!-- <view class="class-view">
  3. <view class="class-date">2021-02-22 星期一</view>
  4. <view class="class-list">
  5. <radio-group bindchange="radioChange">
  6. <view class="class-box" wx:for="{{3}}" wx:key="index">
  7. <view class="class-name" style="{{!showTime ? 'width: 700rpx;' : ''}}"><text
  8. class="class-type">1v1</text>小鹏钢琴课</view>
  9. <view class="class-time" wx:if="{{showTime}}">09:00 ~ 11:00</view>
  10. <view class="get-box" wx:if="{{showRadio}}">
  11. <radio value="{{index}}" checked="" color="#cc6031" />
  12. </view>
  13. <view class="class-detail-box">
  14. <view class="class-room">钢琴教室01</view>
  15. <view class="class-teacher">张老师</view>
  16. </view>
  17. <view class="class-flag" wx:if="{{showFlag}}">已上课</view>
  18. <view class="class-btn-box" wx:if="{{showBtn}}">
  19. <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/targetList/targetList">申请加课</view>
  20. </view>
  21. <view wx:if="{{showLeaveNum}}" class="last-leave-num" bindtap="getLeaveNumList">本课程请假余额 6 次</view>
  22. </view>
  23. </radio-group>
  24. </view>
  25. </view> -->
  26. <view class="class-view">
  27. <view class="class-date">{{date}} {{week}}</view>
  28. <view class="class-list">
  29. <radio-group bindchange="radioChange">
  30. <view class="class-box" wx:for="{{list}}" wx:key="index">
  31. <view class="class-name" style="{{!showTime ? 'width: 700rpx;' : ''}}"><text
  32. class="class-type">{{item.kindId == 1 ? '1v1':'集体'}}</text>{{item.classesName}}
  33. </view>
  34. <view class="class-time" wx:if="{{showTime}}">{{item.bt}} ~ {{item.et}}</view>
  35. <view class="get-box" wx:if="{{showRadio}}">
  36. <radio value="{{index}}" checked="" color="#cc6031" />
  37. </view>
  38. <view class="class-detail-box">
  39. <view class="class-room">{{item.roomName}}</view>
  40. <view class="class-teacher">老师:{{item.teacherName}}</view>
  41. </view>
  42. <view class="class-flag" wx:if="{{showFlag}}">
  43. <span
  44. wx:if="{{item.status == 0 || item.status == 11 || item.status == 12 || item.status == 4}}">{{item.isAttend == 1 ?'已' : '待'}}上课</span>
  45. <span wx:if="{{item.status == 2}}">已请假</span>
  46. <span wx:if="{{item.status == 3}}">已调出</span>
  47. <span wx:if="{{item.status == 11 || item.status == 12}}">加课</span>
  48. <span wx:if="{{item.status == 5}}">补课</span>
  49. </view>
  50. <view class="class-btn-box" wx:if="{{showBtn}}">
  51. <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/targetList/targetList">申请加课</view>
  52. </view>
  53. <view wx:if="{{showLeaveNum}}" class="last-leave-num" bindtap="getLeaveNumList">本课程请假余额 6 次</view>
  54. </view>
  55. </radio-group>
  56. </view>
  57. </view>
  58. </view>