datePicker.wxml 791 Bytes
<view class='picker' catchtouchmove='noScroll' wx:if='{{show}}'>
  <view class='bg' bindtap='close'></view>
  <view class='box {{up?"show":""}}'>
    <view class='title'>
      {{day}}
      <view class='left' bindtap='left'>
        <view class='arrow'></view>
      </view>
      <view class='right' bindtap='right' wx:if='{{showRight}}'>
        <view class='arrow'></view>
      </view>
    </view>
    <view class='time'>
      <view wx:for='{{time}}' wx:key='*this' class='day {{item.active?"active":""}} {{item.opacity?"opacity":""}}' bindtap='chooseDay' data-index='{{index}}' data-date='{{item.date}}' style='height:{{height}}rpx'>
        <view style='line-height:{{height*0.67}}rpx' class='{{item.have?"have":""}}'>{{item.value}}</view>
      </view>
    </view>
  </view>
</view>