<view>
  <view class="order-detail">
    <view>

      <view class="order-detail_i">
        <view class="order-detail_i_name"> 选择请假类型：</view>
        <view>
          <picker mode="selector" bindchange="bindPickerChange" value="{{chooseLeaveTypeIndex}}" range="{{arrnameA}}">
            <view class="picker picker-content">
              {{arrnameA[chooseLeaveTypeIndex]}}
            </view>
          </picker>
        </view>
      </view>
      <view class="order-detail_i">
        <view class="order-detail_i_name"> 选择请假子类：</view>
        <picker bindchange="bindPickerChangeB" value="{{chooseLeaveSubIndex}}" range="{{arrnameB}}">
          <view class="picker picker-content" >
            {{arrnameB[chooseLeaveSubIndex]}}
          </view>
        </picker>
      </view>

      <view class="order-detail_i">
        <view class="order-detail_i_name"> 请假开始时间：</view>
        <view>
          <picker mode="multiSelector" value="{{dateTimeKS}}" bindchange="changeDateTime" range="{{dateTimeArray}}">
            <view class="picker-content">{{leaveStartTime}}</view>
          </picker> 
        </view>  
      </view>

      <view class="order-detail_i">
        <view class="order-detail_i_name"> 请假结束时间：</view>
        <view>
          <picker mode="multiSelector" value="{{dateTimeJS}}" bindchange="changeDateTimeEnd" range="{{dateTimeArray}}">
            <view class="picker-content">{{leaveEndTime}}</view>
          </picker> 
        </view>  
      </view>

      <view class="order-detail_i" style="height:208rpx">
        <view class="order-detail_i_name">请假原因：</view>
        <view>
          <textarea class="weui-input name-input" maxlength="80" style="height: 180rpx;width:500rpx;border:2px solid #fefe;" auto-height="" placeholder="请输入原因" value="{{leaveReason}}" bindinput="bindleaveReason" />
          <view style="color: #b2b2b2; text-align: right;">{{aah}}</view>
        </view>
      </view>

      <view class="weui-uploader">
        <view class="weui-uploader__hd">
          <view class="weui-uploader__title">选择凭证图片</view>
          <view class="weui-uploader__info">{{picUrls.length}}/{{files.length}}</view>
        </view>
        <view class="weui-uploader__bd">
          <view class="weui-uploader__files" id="uploaderFiles">
            <block wx:for="{{files}}" wx:key="*this">
              <view class="weui-uploader__file" bindtap="previewImage" id="{{item}}">
                <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
              </view>
            </block>
            <view class="weui-uploader__input-box">
              <view class="weui-uploader__input" bindtap="chooseImage"></view>
            </view>
          </view>
        </view>
      </view>

      <view class="register-btn" bindtap="commitLeave">
        提交
      </view>

    </view>
  </view>
</view>