classList.wxml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <view class="class-container" style="height: {{height}}px;overflow-y: {{overflow}}">
  2. <radio-group bindchange="radioChange">
  3. <view class="class-view" wx:for="{{list}}" wx:for-item="head" wx:key="index">
  4. <view class="class-date" wx:if="{{head.date}}">{{head.date}} {{head.week}}</view>
  5. <view class="class-list">
  6. <view class="class-box" wx:for="{{head.items}}" wx:key="index">
  7. <view class="class-name" style="{{!showTime ? 'width: 700rpx;' : ''}}"><text
  8. class="class-type">{{item.kindId == 1 ? '1v1':'集体'}}</text>{{item.classesName}}
  9. </view>
  10. <view class="class-time" wx:if="{{showTime}}">{{item.bt}} ~ {{item.et}}</view>
  11. <view class="get-box" wx:if="{{showRadio}}">
  12. <radio value="{{head.date}}#{{item.attendTeacherId}}#{{item.bt}}" checked="" color="#cc6031" />
  13. </view>
  14. <view class="class-detail-box">
  15. <view class="class-room">{{item.roomName}}</view>
  16. <view class="class-teacher">老师:{{item.teacherName}}</view>
  17. </view>
  18. <view wx:if="{{showLevel}}">
  19. <view class="class-teacher">等级:{{item.levelName ? item.levelName : '无'}}</view>
  20. </view>
  21. <view class="class-flag" wx:if="{{showFlag}}">
  22. <span wx:if="{{item.status == 0 || item.status == 11 || item.status == 12 || item.status == 4}}">{{item.isAttend == 1 ?'已' : '待'}}上课</span>
  23. <span wx:if="{{item.status == 2}}">已请假</span>
  24. <span wx:if="{{item.status == 3}}">已调出</span>
  25. <span wx:if="{{item.status == 11 || item.status == 12}}">加课</span>
  26. <span wx:if="{{item.status == 5}}">补课</span>
  27. </view>
  28. <view class="class-btn-box" wx:if="{{showBtn}}">
  29. <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/targetList/targetList" data-id="{{item.id}}" data-action="{{action}}">申请{{actionName}}课</view>
  30. </view>
  31. <view class="class-btn-box" wx:if="{{item.leaveFlag}}">
  32. <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/leaveDetail/leaveDetail" data-id="{{item.id}}" data-action="{{action}}">请假</view>
  33. </view>
  34. <view class="class-btn-box" wx:if="{{item.transferFlag}}">
  35. <view class="add-btn class-btn" bindtap="toPages" data-url="/pages/targetList/targetList" data-id="{{item.id}}" data-action="{{action}}">调课</view>
  36. </view>
  37. <view wx:if="{{showLeaveNum && (item.status == 0 || item.status == 2 || item.status == 4)}}" class="last-leave-num" bindtap="getLeaveNumList">本课程请假余额 {{item.leaveCount}} 次</view>
  38. </view>
  39. </view>
  40. </view>
  41. </radio-group>
  42. <view class="choose-bg" wx:if="{{bottom == 0}}" bindtap="hideChoose"></view>
  43. <view class="class-choose" animation="{{animation}}" style="bottom:{{bottom}}rpx">
  44. <view wx:if="{{action == '1' || action=='2' || action=='3'}}">
  45. <view class="title">待{{actionName}}课程</view>
  46. <view class="choose-list">
  47. <view class="choose-box">
  48. <view class="choose-title">{{source.week}}, {{source.date}}</view>
  49. <view class="choose-time">{{source.bt}} ~ {{source.et}}</view>
  50. <view class="choose-name">{{source.classesName}}</view>
  51. <view class="choose-room">{{source.roomName}}</view>
  52. <view class="choose-teacher">授课老师:{{source.teacherName}}</view>
  53. </view>
  54. </view>
  55. <view class="title">目标课程</view>
  56. <view class="choose-list">
  57. <view class="choose-box">
  58. <view class="choose-title">{{target.week}}, {{target.date}}</view>
  59. <view class="choose-time">{{target.bt}} ~ {{target.et}}</view>
  60. <view class="choose-name">{{target.classesName}}</view>
  61. <view class="choose-room">{{target.roomName}}</view>
  62. <view class="choose-teacher">授课老师:{{target.teacherName}}</view>
  63. </view>
  64. </view>
  65. <view class="choose-btn-view">
  66. <view class="choose-btn" bindtap="doSave">确认{{actionName}}课</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>