<view class="head" bindtap="changeDataType">
    <view class="item {{content.dataType==1?'active':''}}" id='1'>
        {{language['新增线索']||'新增线索'}}
    </view>
    <view class="item {{content.dataType==2?'active':''}}" id='2'>
        {{language['更新线索']||'更新线索'}}
    </view>
    <view class="item {{content.dataType==3?'active':''}}" id='3'>
        {{language['跟进线索']||'跟进线索'}}
    </view>
    <navigator url="#" class="filter" catchtap="openFiltrete">
        <text class="iconfont icon-shaixuan" />
    </navigator>
</view>
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <view class="content-box" wx:for="{{list}}" wx:key="changedate">
        <view class="title">
            <text wx:if="{{item.tradefield}}">{{language[item.tradefield]||item.tradefield}}</text>
            <view class="line-1">
                {{item.projectname || item.enterprisename || " --"}}
            </view>
        </view>
        <view class="rep">
            {{language['业务员']||'业务员'}}：{{item.hrname}}
            <block wx:if="{{item.hrname && item.depname}}">
                -
            </block>
            {{language[item.depname]||item.depname}}
        </view>
        <block wx:if="{{content.dataType==1}}">
            <view class="rep">
                {{language['联系人']||'联系人'}}：{{item.hrname}}
                <block wx:if="{{item.hrname && item.phonenumber}}">
                    -
                </block>
                <text style="color: #3874F6;" bindtap="callphonenumber" data-phonenumber="{{item.phonenumber}}">{{item.phonenumber}}</text>
            </view>
            <view class="rep">
                {{language['项目']||'项目'}}：{{item.projectname ||' --'}}
            </view>
            <view class="rep">
                {{language['新增时间']||'新增时间'}}：{{item.changedate ||' --'}}
            </view>
        </block>

        <block wx:if="{{content.dataType==2}}">
            <view class="rep">
                {{language['更新时间']||'更新时间'}}：{{item.changedate ||' --'}}
            </view>
            <view class="rep">
                {{language['更新内容']||'更新内容'}}：{{language[item.newvalue]||item.newvalue ||' --'}}
            </view>
        </block>

        <block wx:if="{{content.dataType==3}}">
            <view class="rep">
                {{language['跟进类型']||'跟进类型'}}：{{item.followupmode ||' --'}}
            </view>
            <view class="rep">
                {{language['跟进对象']||'跟进对象'}}：{{item.followname ||' --'}}
            </view>
            <view class="rep">
                {{language['跟进时间']||'跟进时间'}}：{{item.createdate ||' --'}}
            </view>
            <view class="rep">
                {{language['跟进内容']||'跟进内容'}}：{{language[item.content]||item.content ||' --'}}
            </view>
            <view class="rep">
                {{language['来源应用']||'来源应用'}}：{{language[item.resource]||item.resource ||' --'}}
            </view>
        </block>
    </view>
    <My_empty wx:if="{{!list.length}}" />
    <view style="height: 80rpx;" />
</Yl_ListBox>
<Yl_Filtrate1 id="Yl_Filtrate1" show='{{showFiltrete}}' list='{{filtratelist}}' dateRange bindhandle="handleFilter" bindinterrupt='interrupt' />