change_course.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!--pages/change_course/change_course.wxml-->
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='header'>
  5. <view class='header-title'>
  6. <image class='header-title-icon' src='../../image/left-copy@2x.png' data-type='1' bindtap='checkMonthCtl'></image>
  7. <text class='header-title-text'>{{year}}年{{month}}月</text>
  8. <image class='header-title-icon' src='../../image/right-copy1@2x.png' data-type='2' bindtap='checkMonthCtl'></image>
  9. </view>
  10. <view class='header-items'>
  11. <view class='header-item' wx:for='{{weeks}}' wx:key='{{index}}'>
  12. <text class='header-item-title'>{{item.text}}</text>
  13. </view>
  14. </view>
  15. <view class='header-items'>
  16. <view class='header-item' wx:for='{{days}}' wx:key='{{index}}' data-index='{{index}}' bindtap='checkDayCtl'>
  17. <text class='header-item-text {{item.isLess ? "color-gray " : "color-black "}} {{item.type == 1 ? "header-item-circle-gray" : item.type == 2 ? "header-item-circle-red" : item.type == 3 ? "header-item-circle-black" : " "}} {{item.isActive ? "header-item-text-active": ""}}'>{{item.text}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class='section'>
  22. <view class='section-title'>上课时间段</view>
  23. <view class='section-items'>
  24. <view class='section-item {{item.status==0 ? "section-item-noSelect" : ""}}' wx:for='{{days[daysIndex].courses}}' wx:key='{{index}}' data-index='{{index}}' bindtap="{{item.status==1?'checkTimeCtl':''}}">{{item.startTime}}-{{item.endTime}}</view>
  25. </view>
  26. </view>
  27. <view class='modal-container' wx:if='{{isShowModal}}' catchtouchmove='true'>
  28. <view class='modal-wrapper'>
  29. <view class='modal-title'>调至时间段</view>
  30. <picker-view indicator-class="modal-picker-indicator" class='modal-picker-view' value="{{dateValue}}" bindchange="changeDateCtl">
  31. <picker-view-column>
  32. <view wx:for="{{yearList}}" wx:key='{{index}}' class='modal-picker-view-column'>{{item}}年</view>
  33. </picker-view-column>
  34. <picker-view-column>
  35. <view wx:for="{{monthList}}" wx:key='{{index}}' class='modal-picker-view-column'>{{item}}月</view>
  36. </picker-view-column>
  37. <picker-view-column>
  38. <view wx:for="{{dayList}}" wx:key='{{index}}' class='modal-picker-view-column'>{{item}}日</view>
  39. </picker-view-column>
  40. </picker-view>
  41. <picker-view indicator-class="modal-picker-indicator" class='modal-picker-view' value="{{timeValue}}" bindchange="changeTimeCtl">
  42. <picker-view-column>
  43. <view wx:for="{{timeList}}" wx:key='{{index}}' class='modal-picker-view-column'>
  44. <view class='modal-picker-view-column-cells'>
  45. <view class='modal-picker-view-column-cell'>{{item.startTime}}</view>
  46. <view class='modal-picker-view-column-cell-green'>至</view>
  47. <view class='modal-picker-view-column-cell'>{{item.endTime}}</view>
  48. </view>
  49. </view>
  50. </picker-view-column>
  51. </picker-view>
  52. <view class='modal-title'>调课事由</view>
  53. <view class='modal-items'>
  54. <view class='modal-item {{item.style == "active" ? "modal-item-green" : ""}}' wx:for='{{items}}' wx:key='{{index}}' data-index='{{index}}' bindtap='checkReasonCtl'>{{item.text}}</view>
  55. </view>
  56. <view class='modal-btns'>
  57. <view class='modal-btn btn-gray' data-type='1' bindtap='submitCtl'>确认</view>
  58. <view class='modal-btn btn-green' data-type='2' bindtap='submitCtl'>取消</view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>