<view class="card_collect">
  <view class="collect">
    <view class="title">
      <view class="block"></view>
      <text class="span">我收藏的名片：{{ collectNum }}个</text>
    </view>
    <view class="other_list">
      <view class="header_box" wx:for="{{collectList}}" data-item="{{item}}" catchtap="goToBackCard" wx:key="index">
        <view class="header">
          <image src="{{item.card.card_avatar}}" />
        </view>
        <view class="text ul">
          <view class="name li">
            <text class="span">{{ item.card.card_name }}</text>
            <icon wx:if="{{item.is_child}}" class="iconfont icon-card_relation" style="color:#f66747"></icon>
            <icon wx:if="{{item.is_new}}" class="iconfont icon-card_new" style="color:#f6c347"></icon>
            <view class="button" wx:if="{{item.mutual_save}}" type="button">互存名片</view>
          </view>
          <view wx:if="{{item.card.member.yz_member}}" class="grade">
            {{ item.card.member.yz_member.level.level_name }}
          </view>
        </view>
        <view class="icon_right" wx:if="{{item.card.card_mobile || item.card.card_wechat}}">
          <icon data-id="{{item.id}}" catchtap="showMore" class="iconfont icon-more"></icon>
        </view>
        <view class="more_box" wx:if="{{item.id === showID}}">
          <view class="list ul">
            <view class="li" data-item="{{item}}" data-name="微信" catchtap="showWeChat" wx:if="{{item.card.card_wechat}}">
              <icon class="iconfont icon-card_weixin1"></icon>
              <text class="span">微信</text>
            </view>
            <view class="li" data-item="{{item}}" data-name="电话" catchtap="showWeChat" wx:if="{{item.card.card_mobile}}">
              <icon class="iconfont icon-card_phone"></icon>
              <text class="span">电话</text>
            </view>
          </view>
          <icon data-id="{{item.id}}" catchtap="showMore" class="iconfont icon-up"></icon>
        </view>
      </view>
    </view>
  </view>
  <view>
    <van-popup show="{{show}}" position="center" bind:click-overlay="closePu" overlay="{{true}}" style="width:600rpx;height:160rpx; ">
      <view class="popup">
        <icon wx:if="{{showTitle === '微信'}}" class="iconfont icon-card_weixin1"></icon>
        <icon wx:if="{{showTitle === '电话'}}" class="iconfont icon-card_phone"></icon>
        {{ showTitle }}：{{ showContent }}
      </view>
    </van-popup>
  </view>
</view>
<shopfoot></shopfoot>