<view class="container">
  <view class="search-w">
    <search-bar class="search-bar" bindinput="bindinput" />
    <view class="scan" bindtap="toScan"></view>
  </view>
  <view class="my-card-w">
    <view class="title m-t-32">我的名片</view>
    <view class="my-card-content" bindtap="toBusinessCard" data-id="{{ my_info.viewerId }}">
      <view class="card">
        <card scale="0.33" info="{{ my_info }}" />
      </view>
      <view class="info-item">
          <view class="title">{{ my_info.name }}</view>
          <view class="info-type">{{ my_info.companyPosition || '' }}</view>
          <view class="info-type company">{{ my_info.companyName || '' }}</view>
        </view>
    </view>
  </view>

  <view class="friend-card-w">
    <view class="title m-t-32">收到的名片({{ business_list.length }})</view>
    
    <view class="friend-card-content">
      <view class="friend-card-item" wx:for="{{business_list}}" wx:key="{{index}}"  bindtap="toBusinessCard" data-id="{{ item.viewerId }}">
        <view class="card">
          <card scale="0.33" info="{{ item }}" />
        </view>
        <view class="info-item" >
          <view class="title">{{ item.name }}</view>
          <view class="info-type">{{ item.companyPosition || '' }}</view>
          <view class="info-type company">{{ item.companyName || '' }}</view>
          <view class="call">
            <icon icon="maps_call" catchtap="callPhone" data-phone="{{ item.phoneNum }}" />
          </view>
        </view>
      </view>
    </view>
  </view>
</view>