<view class="head" bindtap="changeDataType">
    <view class="item {{content.dataType==1?'active':''}}" id='1'>
        新增线索
    </view>
    <view class="item {{content.dataType==2?'active':''}}" id='2'>
        更新线索
    </view>
    <view class="item {{content.dataType==3?'active':''}}" id='3'>
        跟进线索
    </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}}">{{item.tradefield}}</text>
            <view class="line-1">
                {{item.enterprisename}}
                <block wx:if="{{item.enterprisename && item.projectname}}">/</block>
                {{item.projectname}}
                <block wx:if="{{!item.enterprisename && !item.projectname}}">未关联客户/项目</block>
            </view>
        </view>
        <view class="rep">
            业务员：{{item.hrname}}
            <block wx:if="{{item.hrname && item.depname}}">
                -
            </block>
            {{item.depname}}
        </view>
        <block wx:if="{{content.dataType==1}}">
            <view class="rep">
                联系人：{{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">
                项目：{{item.projectname ||' --'}}
            </view>
            <view class="rep">
                新增时间：{{item.changedate ||' --'}}
            </view>
        </block>

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

        <block wx:if="{{content.dataType==3}}">
            <view class="rep">
                跟进时间：{{item.createdate ||' --'}}
            </view>
            <view class="rep">
                跟进内容：{{item.content ||' --'}}
            </view>
        </block>
    </view>
    <My_empty wx:if="{{!list.length}}" />
    <view style="height: 80rpx;" />
</Yl_ListBox>

<Yl_Filtrate1 show='{{showFiltrete}}' list='{{filtratelist}}' dateRange bindhandle="handleFilter" />