<import-sjs from="./../../../utils/render.sjs" name="utils"/>
<view
  class="cert-card{{ count > 1 ? ' space': '' }}"
  style="{{ utils.getCardStyle(extInfo, imgSrcPrefix, count) }}"
>
  <view
    onTap="toMyCertDetail"
    class="cert-card-content"
    data-certType="{{ item.certCardInfo.certType}}"
    a:if="{{ item.certCardInfo.status === 'active' }}"
  >
    <view class="cert-card-info">
      <view class="cert-card-avatar">
        <image src="{{ utils.getImageUrl(item.icon, imgSrcPrefix) }}"/>
      </view>
      <view class="cert-card-info-center">
        <view class="cert-card-name">
          <text number-of-lines="2">{{ item.certCardInfo.certName || item.name }}</text>
        </view>
        <view class="cert-card-bf">
          <text number-of-lines="2" >{{ item.certCardInfo.grantOrg }}颁发</text>
        </view>
      </view>
      <view class="user-name">
        <text number-of-lines="2" >{{ item.certCardInfo.userNameDe }}</text>
      </view>
    </view>
    <view class="cert-card-view">查看我的证件</view>
  </view>
  <view class="no-user-card" a:else >
    <view class="no-user-card-title">{{ extInfo.certNotActiveTips }}</view>
    <view class="no-user-card-desc">{{ extInfo.certNotActiveDesc }}</view>
    <button-auth className="cert-list-auth-button" item="{{ item }}">去认证</button-auth>
  </view>
</view>
