  <view class="card_action">
    <view class="content">
      <view class="nav">
        <van-tabs active="{{active}}" tab-class="tag" tab-active-class="tag_active" bind:change="chooseTab">
          <van-tab title="名片访问">
            <view class="card_a">
              <view class="card_a_box">
                <view class="title">
                  <view class="block"></view>
                  <text class="span">访客统计</text>
                </view>
                <view class="info ul" wx:if="{{visit.statistics}}">
                  <view class="li">
                    <view class="span">{{ visit.statistics.visitor_num }}</view>
                    <text class="span">累计访问人数</text>
                  </view>
                  <view class="li">
                    <view class="span">{{ visit.statistics.visit_num }}</view>
                    <text class="span">累计访问次数</text>
                  </view>
                  <view class="li">
                    <view class="span">{{ visit.statistics.fans }}</view>
                    <text class="span">累计新增会员</text>
                  </view>
                </view>
                <!-- 折线图 -->
                <view class="chart1">
                  <view
                    class="img"
                    style="width: 100%; height: 350px;"
                  >
                  <ec-canvas id="echarts1" canvas-id="mychart-bar" ec="{{ec1}}"  style="height:350px;width: 704rpx;"></ec-canvas>
                  </view>
                </view>
              </view>
              <view class="look_box">
                <view class="title">
                  <view class="block"></view>
                  <text class="span">谁看过我</text>
                </view>
                <view class="other_list">
                  <view class="header_box" wx:for="{{visitList}}" data-item="{{item}}" data-str="visit" catchtap="goToBackCard" wx:key="index">
                    <view class="header">
                      <image
                        wx:if="{{item.visitor_card}}"
                        src="{{item.visitor_card.card_avatar}}"
                      />
                      <image
                        wx:if="{{!item.visitor_card  && item.visitor_member}}"
                        src="{{item.visitor_member.avatar_image}}"
                      />
                    </view>
                    <view class="text ul">
                      <view class="name li">
                        <text class="span" wx:if="{{item.visitor_card}}">{{
                          item.visitor_card.card_name
                        }}</text>
                        <text class="span" wx:if="{{!item.visitor_card  && item.visitor_member}}">{{
                          item.visitor_member.nickname
                        }}</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.visitor_member && item.visitor_member.yz_member.level}}"  class="grade li">
                        {{ item.visitor_member.yz_member.level.level_name }}
                      </view>
                    </view>
                    <view class="icon_right" wx:if="{{item.visitor_card && (item.visitor_card.card_wechat || item.visitor_card.card_mobile)}}">
                      <icon
                      data-id="{{item.id}}"
                        catchtap="showMore"
                        class="iconfont icon-more"
                      ></icon>
                    </view>
                    <view
                      class="more_box"
                      wx:if="{{item.visitor_card && item.id === showID}}"
                    >
                      <view class="list ul">
                        <view class="li"
                        data-item="{{item}}"
                        data-name="微信"
                          catchtap="showWeChat"
                          wx:if="{{item.visitor_card.card_wechat}}"
                        >
                          <icon class="iconfont icon-card_weixin1"></icon>
                          <text class="span">微信</text>
                        </view>
                        <view
                        data-item="{{item}}"
                        data-name="电话"
                          catchtap="showWeChat"
                          wx:if="{{item.visitor_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-tab>
          <van-tab title="名片动作">
            <view class="card_b">
              <view class="card_a_box" wx:if="{{share.diagram}}">
                <view class="title">
                  <view class="block"></view>
                  <text class="span">分享次数：{{ share.statistics }}次</text>
                </view>
                <!-- 折线图 -->
                <view class="chart1" wx:if="{{share.diagram.date}}">
                  <view class="img" style="width: 100%; height: 350px;">
                    <!-- <ECharts
                      :id="'echarts2'"
                      :text="''"
                      :XData="share.diagram.date"
                      :YData="share.diagram.num"
                      :right="'6%'"
                      style="height:350px;width: 22rem;"
                    /> -->
                     <ec-canvas id="echarts2"  canvas-id="mychart-bar2" ec="{{ec2}}"  style="height:350px;width: 704rpx;"></ec-canvas>
                  </view>
                </view>
              </view>
              <view class="card_a_box" wx:if="{{save.diagram}}">
                <view class="title">
                  <view class="block"></view>
                  <text class="span">保存次数：{{ save.statistics }}次</text>
                </view>
                <!-- 折线图 -->
                <view class="chart1">
                  <view class="img" style="width: 100%; height: 350px;">
                    <!-- <ECharts
                      :id="'echarts3'"
                      :text="''"
                      :XData="save.diagram.date"
                      :YData="save.diagram.num"
                      :right="'6%'"
                      style="height:350px;width: 22rem;"
                    /> -->
                       <ec-canvas id="echarts1" canvas-id="mychart-bar" ec="{{ec3}}"  style="height:350px;width: 704rpx;"></ec-canvas>
                  </view>
                </view>
              </view>
              <view class="card_a_box" wx:if="{{reliable.diagram}}">
                <view class="title">
                  <view class="block"></view>
                  <text class="span">靠谱次数：{{ reliable.statistics }}次</text>
                </view>
                <!-- 折线图 -->
                <view class="chart1">
                  <view
                    class="img"
                    style="width: 100%; height: 350px;"
                    wx:if="{{reliable.diagram.date}}"
                  >
                    <!-- <ECharts
                      :id="'echarts4'"
                      :text="''"
                      :XData="reliable.diagram.date"
                      :YData="reliable.diagram.num"
                      :right="'6%'"
                      style="height:350px;width: 22rem;"
                    /> -->
                       <ec-canvas id="echarts1" canvas-id="mychart-bar" ec="{{ec4}}"  style="height:350px;width: 704rpx;"></ec-canvas>
                  </view>
                </view>
              </view>
            </view>
          </van-tab>
          <van-tab title="收藏我的">
            <view class="card_c">
              <view class="card_a_box">
                <view class="title">
                  <view class="block"></view>
                  <text class="span">收藏我的名片次数:{{ collect.statistics }}次</text>
                </view>
                <!-- 折线图 -->
                <view class="chart1">
                  <view
                    class="img"
                    style="width: 100%; height: 350px;"
                    wx:if="{{collect.diagram.date}}"
                  >
                    <!-- <ECharts
                      :id="'echarts5'"
                      :text="''"
                      :XData="collect.diagram.date"
                      :YData="collect.diagram.num"
                      :right="'6%'"
                      style="height:350px;width: 22rem;"
                    /> -->
                       <ec-canvas id="echarts1" canvas-id="mychart-bar" ec="{{ec5}}"  style="height:350px;width: 704rpx;"></ec-canvas>
                  </view>
                </view>
              </view>
              <view class="look_box">
                <view class="title">
                  <view class="block"></view>
                  <text class="span">收藏我的名片会员</text>
                </view>
                <view class="other_list">
                  <view class="header_box" wx:for="{{collectList}}" data-item="{{item}}" data-str="collect" catchtap="goToBackCard" wx:key="index">
                    <view class="header">
                      <image
                        wx:if="{{item.collect_card}}"
                        src="{{item.collect_card.card_avatar}}"
                      />
                      <image
                        wx:if="{{!item.collect_card && item.collect_member}}"
                        src="{{item.collect_member.avatar_image}}"
                      />
                    </view>
                    <view class="text ul">
                      <view class="name li">
                        <text class="span" wx:if="{{item.collect_card}}">{{
                          item.collect_card.card_name
                        }}</text>
                        <text class="span" wx:if="{{!item.collect_card && item.collect_member}}">{{
                          item.collect_member.nickname
                        }}</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.collect_member && item.collect_member.yz_member.level}}"
                        class="grade li"
                      >
                        {{ item.collect_member.yz_member.level.level_name }}
                      </view>
                    </view>
                    <view class="icon_right" wx:if="{{item.collect_card && (item.collect_card.card_wechat || item.collect_card.card_mobile)}}">
                      <icon
                      data-id="{{item.id}}"
                        catchtap="showMore(item.id)"
                        class="iconfont icon-more"
                      ></icon>
                    </view>
                    <view
                      class="more_box"
                      wx:if="{{item.collect_card && item.id === showID}}"
                    >
                      <view class="list ul">
                        <view class="li"
                        data-item="{{item}}"
                        data-name="微信"
                        data-str="collect"
                          catchtap="showWeChat"
                          wx:if="{{item.collect_card.card_wechat}}"
                        >
                          <icon class="iconfont icon-card_weixin1"></icon>
                          <text class="span">微信</text>
                        </view>
                        <view class="li"
                        data-item="{{item}}"
                        data-name="电话"
                        data-str="collect"
                          catchtap="showWeChat"
                          wx:if="{{item.collect_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-tab>
        </van-tabs>
      </view>
    </view>

    <van-popup show="{{show}}" position="center" bind:click-overlay="closePu" style="display:block;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>
	<shopfoot></shopfoot>