picker_datetime.wxml 1.1 KB
<view class="pick_datetime" wx:if="{{pickerViewShow}}" animation="{{pickerAnimation}}" style="{{pickerViewStyle}}">
  <view class="pick_datetime_tool">
    <view class="pick_datetime_clear" bindtap="pickerOk">取消</view>
    <view class="pick_datetime_ok" bindtap="pickerOk">完成</view>
  </view>
  <picker-view indicator-style="height: 40px;;" value="{{pickDatetimeValue}}" bindchange="bindChange" style="height:{{pickerViewHeight}}rpx;font-size:30rpx">
    <picker-view-column>
      <view wx:for="{{pickerDateTextArr}}" wx:key class="pick_datetime_column">{{item}}</view>
    </picker-view-column>
    <picker-view-column>
      <view wx:for="{{pickerHourTextArr}}" wx:key class="pick_datetime_column">{{item}}</view>
    </picker-view-column>
    <picker-view-column>
      <view wx:for="{{pickerMinuteTextArr}}" wx:key class="pick_datetime_column">{{item}}</view>
    </picker-view-column>
    <picker-view-column>
      <view wx:for="{{pickerSecondTextArr}}" wx:key class="pick_datetime_column">{{item}}</view>
    </picker-view-column>
  </picker-view>
</view>
<view class="shadow-modal" wx:if="{{pickerViewShow}}"></view>