index.wxml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <i-modal scrollUp="{{true}}" visible="{{show}}">
  2. <view class="time1">
  3. <view class="top i-flex i-flex-spb">
  4. <text bindtap="cancel">取消</text>
  5. <text bindtap="confirm">确定</text>
  6. </view>
  7. <picker-view class="picker" value="{{value}}" bindchange="getime" indicator-style="height:30px;">
  8. <picker-view-column>
  9. <view class="hours" style="line-height:30px; text-align: center;" wx:for="{{hoursList}}" wx:key="index">
  10. {{ item }}</view>
  11. </picker-view-column>
  12. <picker-view-column>
  13. <view class="minutes" style="line-height:30px; text-align: center;" wx:for="{{minutes}}" wx:key="index">
  14. {{ item }}</view>
  15. </picker-view-column>
  16. <picker-view-column>
  17. <view class="minutes" style="line-height:30px; text-align: center;" wx:for="{{second}}" wx:key="index">
  18. {{ item }}</view>
  19. </picker-view-column>
  20. <block wx:if="{{!isOne}}">
  21. <picker-view-column>
  22. <view style="line-height:30px; text-align: center;">至</view>
  23. </picker-view-column>
  24. <picker-view-column>
  25. <view class="hours" style="line-height:30px; text-align: center;" wx:for="{{hoursList}}" wx:key="index">
  26. {{ item }}</view>
  27. </picker-view-column>
  28. <picker-view-column>
  29. <view class="minutes" style="line-height:30px; text-align: center;" wx:for="{{minutes}}" wx:key="index">
  30. {{ item }}</view>
  31. </picker-view-column>
  32. <picker-view-column>
  33. <view class="minutes" style="line-height:30px; text-align: center;" wx:for="{{second}}" wx:key="index">
  34. {{ item }}</view>
  35. </picker-view-column>
  36. </block>
  37. </picker-view>
  38. </view>
  39. </i-modal>