<wxs src='../../../utils/formatFuc.wxs' module="utils"></wxs>
<view class="container">
  <view class="add-top" >
  
     <van-cell-group>

      <!-- <van-cell title="证件类型">
  <view slot="">
    <van-radio-group value="{{ healthType }}" bind:change="onRadioChange"  direction="horizontal">
  <van-radio name="1" icon-size="20px">健康证</van-radio>
  <van-radio name="2" icon-size="20px">技能证书</van-radio>
</van-radio-group>
  </view>
</van-cell> -->
      
  <van-field
    value="{{ certificateName }}"
    label="证件名称"
    placeholder="请输入证件名称"
    bind:change="onNameChange"
  />
  <van-field
    value="{{ certificateNo }}"
    label="证件编号"
    placeholder="请输入证件编号"
    bind:change="onNoChange"
  />
</van-cell-group>
  </view> 
 
   <view class="xnb-content">
     <view class="title">
       <text>*</text>
       请上传健康证：
     </view>
     <view class="tips">请上传清晰，无遮挡的健康证照片</view>
      <van-uploader file-list="{{ fileList }}" max-count="{{max}}" bind:after-read="afterRead" bind:delete="deleteImage"  />
      <view class="title" style="margin-bottom:30rpx;">
       <text>*</text>
       请选择有效时间：
     </view>
     <view class="select-date" bindtap="issuancePicker">
       <view>发证日期:{{issuanceDate}}</view>
       <van-icon name="arrow" size="20px" color="#4371ED"/>
     </view>
     <view class="select-date" bindtap="startPicker">
       <view>开始时间:{{startDate}}</view>
       <van-icon name="arrow" size="20px" color="#4371ED"/>
     </view>
     <view class="select-date" bindtap="endPicker">
       <view>结束时间:{{endDate}}</view>
       <van-icon name="arrow" size="20px" color="#4371ED"/>
     </view>

   </view>

   <view class="submit-btn" bindtap="submit" >确认上传</view>



</view>
<van-popup
  show="{{ pickerShow }}"
  position="bottom"
 
 
>
<van-datetime-picker
type="date"
  value="{{ currentDate }}"
  min-date="{{ minDate }}"
  bind:confirm="onConfirm"
  bind:cancel="onCancel"
/>
</van-popup>