<!-- packageH/project_verification/components/projectLR/projectLR.wxml -->
<view class="project {{ golden?'project-golden':'' }}">
  <view class="project-header">
    <image class="project-cover {{ simple?'project-cover-small':'' }}" src="{{ data.thumb||data.project_thumb }}" mode="aspectFill"></image>
    <view class="project-info">
      <view class="project-info_header">
        <view class="project-title {{ simple===false?'':'project-title_full' }}">
          {{ data.title||data.project_title }}
        </view>
        
      </view>
      <view class="project-statistisc" wx:if="{{ simple===false&&details }}">
        <view class="project-statistisc-item">总次数：{{ data.total_count }}</view>
        <view class="project-statistisc-item">已使用：{{ data.used_count===undefined?data.use_count:data.used_count }}</view>
        <!-- <view class="project-statistisc-item" wx:if="{{ showTimes }}">未使用次数{{ data.total_rest_count }}</view> -->
        
      </view>
      <view class="project-expire {{ projectExpireAppendClassName }}" wx:if="{{ simple===false }}">
        <block wx:if="{{ data.end_time }}">到期使用时间：{{ data.end_time }}</block>
        <block wx:if="{{ data.finish_time }}">完成时间：{{ data.finish_time }}</block>
      </view>
      <view class="project-worker">
        <!-- <block wx:if="{{ data.worker_nickname }}">核销员：{{ data.worker_nickname }}</block> -->
        <view class="verification_name" wx:if="{{data.use_type_h5 == 1}}">核销员：{{ data.worker_nickname }}</view>
        <view class="verification_name" wx:if="{{data.use_type_h5 == 2}}">受赠者：{{ data.transfer_nickname }}</view>
      </view>
    </view>
    <view class="project-counts" wx:if="{{ showTimes&&simple===false }}">
          <!-- {{ data.rest_count}} -->
          {{ data.rest_count||data.used_count}}<!-- 核销使用用的是used_count这个参数 -->
          <text selectable="false" space="false" decode="false">次</text>
          <view class="verification_num">未使用</view>
    </view>
  </view>
  <view class="project-footer">
    <slot name="footer" />
  </view>
</view>