<wxs src='../../../utils/formatFuc.wxs' module="utils"></wxs>
<view class="container">
  <view class="add-top" bindtap="goDetail">

    <view>上传新农保，享受福利</view>
    <van-icon name="arrow" size="20px" color="#4371ED"/>
  </view>
 
   <view class="xnb-content">
     <view class="title">
       <text>*</text>
       1. 请上传新农保：
     </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>
       2. 请选择有效时间：
     </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="year-month"
  value="{{ currentDate }}"
  min-date="{{ minDate }}"
  bind:confirm="onConfirm"
  bind:cancel="onCancel"
/>
</van-popup>