<!-- 头部数据 -->
<view class='head global-card'>
    <view class="box">
        <view class="title">
            <text class="iconfont {{ptype=='学习'?'icon-a-shangxueyuanxuexi':'icon-a-tonggaoshujuliulanliang'}}" />{{language[(ptype=='学习'?'学习情况':'浏览量')]||(ptype=='学习'?'学习情况':'浏览量')}}
        </view>
        <view class="data">
            <view class="subarea">
                <view class="nubmer">{{tips.unstudy}}</view>
                <view class="string">{{language['未']||'未'}}{{language[ptype]||ptype}}</view>
            </view>
            <view class="vertical" />
            <view class="subarea">
                <view class="nubmer">{{tips.total}}</view>
                <view class="string">{{language['应']||'应'}}{{language[ptype]||ptype}}</view>
            </view>
        </view>
    </view>
</view>
<view class='global-card data-main'>
    <van-tabs wx:if="{{dataAuth=='all'}}" active="{{ active }}" color='#3874F6' title-active-color='#3874F6' bind:change="onChange">
        <van-tab name='经销商' title="{{language['经销商分析']||'经销商分析'}}" />
        <van-tab name='内部' title="{{language['团队内部分析']||'团队内部分析'}}" />
    </van-tabs>
    <view class="data-content">
        <block wx:if="{{active=='经销商'}}">
            <block wx:for="{{list}}">
                <view class="title">
                    <view class="title_l">{{language['区域']||'区域'}}：{{item.areaname}}</view>
                    <view class="title_r">
                        {{language['未浏览']||'未浏览'}}：{{item.unstudy}}{{language['人']||'人'}}
                    </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">{{language[item.depname]||item.depname}}：{{language[(ptype=='学习'?'未学习':'未浏览')]||(ptype=='学习'?'未学习':'未浏览')}}{{item.unstudy}}{{language['人']||'人'}}</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;">
            <My_empty />
        </view>
    </view>
</view>
<van-action-sheet show="{{ actionShow }}" actions="{{ actions }}" cancel-text="{{language['取消']||'取消'}}" bind:close="onClose" bind:cancel='onClose' bind:select='handleCallOut' />