<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{dateType}}' bind:onChange='changeDate' />
<block wx:if='{{list[0].followSize}}'>
    <view class="global-card" style='margin-top:0;'>
        <view class="row">
            <view class="col" style='background-color: #3874F6;'>
                <view class="label">{{language['跟进次数']||'跟进次数'}}</view>
                <view class="value">{{list[0].followSize}}</view>
            </view>
            <view class="col" hover-class="navigator-hover" style='background-color: #68C23A' bindtap="viewInstructions">
                <view class="label">
                    {{language['跟进频率']||'跟进频率'}}
                    <view class="iconfont icon-gantanhao" />
                </view>
                <view class="value">{{list[0].followfrequency}}</view>
            </view>
            <view class="col" style='background-color: #E6A23C;'>
                <view class="label">{{language['最近跟进人']||'最近跟进人'}}</view>
                <view class="value">{{list[0].name||list[0].changeby||''}}</view>
            </view>
        </view>
        <view class="row" style='margin-top: 20rpx;'>
            <view class="col" style='background-color: #3874F6;'>
                <view class="label">{{language['最近跟进时间']||'最近跟进时间'}}</view>
                <view class="value">{{list[0].createdate||''}}</view>
            </view>
        </view>
    </view>
    <view class="global-card  count">
        <view class="label">{{language['跟进人及次数']||'跟进人及次数'}}</view>
        <view class="tag-box">
            <view class='tag' wx:for="{{list[0].followDetail}}" wx:key='name' class="tag">
                {{item.name}}· {{item.qty}}
            </view>
        </view>
    </view>
    <shrink title="{{mode}}跟进记录明细" open='{{showList}}' bind:onChange='shrinkChange'>
        <view style='padding-top: 20rpx;'>
            <view class="global-card item" wx:for='{{list}}' wx:key='sys_datafollowupid'>
                <view class="resource">{{language[item.resource]||item.resource}}</view>
                <view class="createdate">{{language['跟进时间']||'跟进时间'}}：{{item.createdate}}</view>
                <view class="row" style='margin-bottom: 20rpx;'>
                    <view class="col" style='background-color: #3874F6;'>
                        <view class="value">{{language[item.name]||item.name||language[item.changeby]||item.changeby}}</view>
                        <view class="label">{{language['跟进人']||'跟进人'}}</view>
                    </view>
                    <view class="col" style='background-color: #68C23A'>
                        <view class="value">{{language[item.type]||item.type||'--'}}</view>
                        <view class="label">{{language['跟进类型']||'跟进类型'}}</view>
                    </view>
                    <view class="col" style='background-color: #E6A23C;'>
                        <view class="value">{{item.followname||' --'}}</view>
                        <view class="label">{{language['跟进对象']||'跟进对象'}}</view>
                    </view>
                </view>
                <block wx:if="{{mode == '联系人'}}">
                    <view class="line">
                        {{language['线索名称']||'线索名称'}}：{{language[item.ordercluename]||item.ordercluename || ' --'}}
                    </view>
                    <view class="line">
                        {{language['客户名称']||'客户名称'}}：{{language[item.enterprisename]||item.enterprisename || ' --'}}
                    </view>
                    <view class="line">
                        {{language['项目名称']||'项目名称'}}：{{language[item.projectname]||item.projectname || ' --'}}
                    </view>
                </block>
                <view class="line" wx:for="{{item.cons}}" wx:for-item='cons' wx:key='cons.label'>
                    {{language[cons.label]||cons.label}}：{{language[cons.value]||cons.value}}
                </view>
            </view>
        </view>
    </shrink>
</block>
<My_empty wx:else />