set_time.wxml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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-url="pages/select_times/select_times" data-paras='{{({btnIndex,id:item.id,type:item.type,time:item.startDate,istype:item.setState,index})}}' bindtap="{{item.setState==1?'navigateTo':'selectDay'}}"></image>
  18. </view>
  19. <!-- <view wx:if='{{!isSelectTime}}' 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. </view>
  36. </view>
  37. </view>