<!-- 头部数据 -->
<My_card custom-class='head'>
    <view class="box">
        <view class="title">
            <text class="iconfont {{ptype=='学习'?'icon-a-shangxueyuanxuexi':'icon-a-tonggaoshujuliulanliang'}}" />{{ptype=='学习'?'学习情况':'浏览量'}}
        </view>
        <view class="data">
            <view class="subarea">
                <view class="nubmer">{{tips.unstudy}}</view>
                <view class="string">未{{ptype}}</view>
            </view>
            <view class="vertical" />
            <view class="subarea">
                <view class="nubmer">{{tips.total}}</view>
                <view class="string">应{{ptype}}</view>
            </view>
        </view>
    </view>
</My_card>
<My_card custom-class='data-main'>
    <van-tabs wx:if="{{dataAuth=='all'}}" active="{{ active }}" color='#3874F6' title-active-color='#3874F6' bind:change="onChange">
        <van-tab name='经销商' title="经销商分析" />
        <van-tab name='内部' title="团队内部分析" />
    </van-tabs>
    <view class="data-content">
        <block wx:if="{{active=='经销商'}}">
            <block wx:for="{{list}}">
                <view class="title">
                    <view class="title_l">区域：{{item.areaname}}</view>
                    <view class="title_r">
                        未浏览：{{item.unstudy}}人
                    </view>
                </view>
                <view class="user-list" wx:if="{{item.agent.length}}">
                    <view class="user" wx:for="{{item.agent}}" wx:for-item="it" data-item="{{it}}" catchtap="callOut">
                        <view class="line-1">{{it.province}}{{it.city}}{{it.county}} {{it.contact}}</view>
                        <text class="iconfont icon-shujubodadianhua1" />
                    </view>
                </view>
                <view class="line-between" />
            </block>
        </block>
        <block wx:else>
            <block wx:for="{{list}}">
                <view class="title">
                    <view class="title_l">{{item.depname}}：{{ptype=='学习'?'未学习':'未浏览'}}{{item.unstudy}}人</view>
                </view>
                <view class="user-list" wx:if="{{item.user.length}}">
                    <view class="user" wx:for="{{item.user}}" wx:for-item="it" data-item="{{it}}" catchtap="callOut">
                        <view class="line-1">{{it.name}}</view>
                        <text class="iconfont icon-shujubodadianhua1" />
                    </view>
                </view>
                <view class="line-between" />
            </block>
        </block>
        <view wx:if="{{list.length==0}}" style="width: 100%; margin-left:-60rpx;padding-bottom: 150rpx;">
            <Yl_Empty />
        </view>
    </view>
</My_card>
<van-action-sheet show="{{ actionShow }}" actions="{{ actions }}" cancel-text="取消" bind:close="onClose" bind:cancel='onClose' bind:select='handleCallOut' />