timePicker.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--components/timePicker/timePicker.wxml-->
  2. <!-- 自定义时间筛选器 -->
  3. <view hidden="{{!pickerShow}}">
  4. <view class="picker-container {{pickerShow?'show_picker':'hide_picker'}}" animation="{{animationData}}">
  5. <view class="btn-box" catchtouchmove="onCatchTouchMove">
  6. <view class="pick_btn" bindtap="hideModal">取消</view>
  7. <view class='pick_btn' style="color: #19f" bindtap="onConfirm">确定</view>
  8. </view>
  9. <view>
  10. <picker-view class='sensorTypePicker' indicator-style='height: 35px;' bindchange="changeStartDateTime"
  11. value="{{startValue}}" style="height: {{endDate?'120px':'250px'}};" bindpickstart="handlePickStart" bindpickend="handlePickEnd">
  12. <picker-view-column style="min-width: 70px;flex-shrink: 0">
  13. <view class='picker-item' wx:for="{{startYearList}}" wx:key='*this'>{{item}}年</view>
  14. </picker-view-column>
  15. <picker-view-column>
  16. <view class='picker-item' wx:for="{{startMonthList}}" wx:key='*this'>{{item}}月</view>
  17. </picker-view-column>
  18. <picker-view-column>
  19. <view class='picker-item' wx:for="{{startDayList}}" wx:key='*this'>{{item}}日</view>
  20. </picker-view-column>
  21. <picker-view-column hidden="{{!hourColumn}}">
  22. <view class='picker-item' wx:for="{{startHourList}}" wx:key='*this'>{{item}}时</view>
  23. </picker-view-column>
  24. </picker-view>
  25. </view>
  26. <view wx:if="{{endDate}}">
  27. </view>
  28. <!-- <view class='sure' bindtap="onConfirm">确定</view> -->
  29. </view>
  30. <!-- 遮罩 -->
  31. <view class="sensorType-screen" bindtap="hideModal" catchtouchmove="onCatchTouchMove" animation="{{animationOpacity}}"/>
  32. </view>