<view class="head" bindtap="changeDataType">
    <view class="item {{content.dataType==4?'active':''}}" id='4'>
        新增客户
    </view>
    <view class="item {{content.dataType==5?'active':''}}" id='5'>
        更新客户
    </view>
    <view class="item {{content.dataType==6?'active':''}}" id='6'>
        跟进客户
    </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">
            <view class="line-1">
                {{item.enterprisename}}
            </view>
        </view>
        <view class="rep">
            业务员：{{item.name}}
            <block wx:if="{{item.name && item.depname}}">
                -
            </block>
            {{item.depname}}
        </view>
        <block wx:if="{{content.dataType==4}}">
            <view class="rep">
                地址：{{item.province+item.city+item.county+item.address||'--'}}
            </view>
            <view class="rep">
                联系方式：<text wx:if="{{item.phonenumber}}" style="color: #3874F6;" bindtap="callphonenumber" data-phonenumber="{{item.phonenumber}}">{{item.phonenumber}}</text>
                <block wx:else>
                    --
                </block>
            </view>
            <view class="rep">
                新增时间：{{item.changedate ||' --'}}
            </view>
        </block>
        <block wx:if="{{content.dataType==5}}">
            <view class="rep">
                更新时间：{{item.changedate ||' --'}}
            </view>
            <view class="rep">
                更新内容：{{item.newvalue ||' --'}}
            </view>
        </block>
        <block wx:if="{{content.dataType==6}}">
            <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" />