select_times.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!--pages/set_time/set_time.wxml-->
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='li'>
  5. <!-- <view class="li-select">
  6. <view class="li-select-btn {{index==btnIndex?'li-select-btn-active':''}}" wx:for='{{btnList}}' wx:key='index' data-idx="{{index}}" bindtap="selectYear">{{item}}</view>
  7. </view>
  8. <view class='li-items {{item.setState==2?"li-active":""}}' wx:for='{{list}}' wx:key='index' wx:if='{{isSelectTime}}'>
  9. <view style='margin-left:25rpx;'>
  10. <view>{{item.type==1?'寒假':item.type==2?'五一劳动节':item.type==3?'暑假':'十一国庆节'}}</view>
  11. <view class='li-items-day' wx:if='{{item.setState==1}}'>{{item.limitMsg}}</view>
  12. <view class='li-items-red' wx:if='{{item.setState==2}}' data-istype='{{1}}' data-type='{{item.type}}' data-id='{{item.id}}' data-time='{{0}}' data-index='{{index}}' bindtap='{{item.isEffect==2?"selectDay":""}}'>
  13. <text>{{item.startDate}}-{{item.endDate}}</text>
  14. <image src='../../assets/red_jian_tou.png' wx:if='{{item.isEffect==2}}' class='li-items-arrows'></image>
  15. </view>
  16. </view>
  17. <image src='{{item.setState==2?"../../assets/kai.png":"../../assets/guan.png"}}' class='li-items-img' data-istype='{{item.setState}}' data-type='{{item.type}}' data-id='{{item.id}}' data-time='{{item.startDate}}' data-index='{{index}}' bindtap='selectDay'></image>
  18. </view> -->
  19. <view class='li-time'>
  20. <view class='li-time-item'>
  21. <view class='li-time-star'>
  22. <picker mode="date" fields='day' value="{{star}}" start="{{star}}" end="{{end}}" bindchange="selectStartDate">
  23. <text style='color:{{startDate?"#FF6465":""}}'>{{startDate?startDate:'开始时间'}}</text>
  24. </picker>
  25. </view>
  26. <view class='li-time-word'>至</view>
  27. <view class='li-time-star'>
  28. <picker mode="date" fields='day' value="{{star}}" start="{{star}}" end="{{end}}" bindchange="selectEndDate">
  29. <text style='color:{{endDate?"#FF6465":""}}'>{{endDate?endDate:'结束时间'}}</text>
  30. </picker>
  31. </view>
  32. </view>
  33. <view class='li-class-grade-btn' style='margin:63rpx auto' bindtap='sureVacationSetSave'>确定</view>
  34. </view>
  35. <!-- 删除孩子弹幕 -->
  36. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  37. <view class='model' wx:if='{{hiddenModel}}'>
  38. <view class='rename'>
  39. <view class='rename-name' style='margin:92rpx 0;'>
  40. <view>您的设置将被清空</view>
  41. <view>确定返回吗?</view>
  42. </view>
  43. <view class='rename-footer'>
  44. <view bindtap='allShowModel'>取消</view>
  45. <view class='rename-footer-sure' bindtap='sureDelLibChild'>确定</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>