<wxs src='../../../utils/format.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"  wx:for="{{xnbList}}" wx:key="index1"
   wx:for-item="item1" wx:for-index="index1">
     <view class="status {{(item1.stateVal=='未上传'||item1.stateVal=='已过期'||item1.stateVal=='审核未通过')?'alert':''}}">
        <view class="dot"></view>
        <view >{{item1.stateVal}}</view>
     </view>
     <view class="img-block">
      <image mode="aspectFill"  src="{{item2}}" class="xnb-img" wx:for="{{item1.imgs}}" wx:key="index2"
   wx:for-item="item2" wx:for-index="index2" bindtap="imgPre" data-src="{{item2}}" data-imgs="{{item1.imgs}}"></image>
     </view>
     <view class="line">有效时间：</view>
     <!-- <view class="line">{{item1.effectiveStart}} - {{item1.effectiveEnd}}</view> -->
     <view class="line">{{utils.substrText(item1.effectiveStart,0,7)}} - {{utils.substrText(item1.effectiveEnd,0,7)}}</view>
     <view class="line" wx:if="{{item1.auditRemark}}">审核原因：</view>
     <view class="line"  wx:if="{{item1.auditRemark}}">{{item1.auditRemark}}</view>
   

   </view>



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