<view class="head" bindtap="changeDataType">
    <view class="item {{content.dataType==4?'active':''}}" id='4'>
        {{language['新增客户']||'新增客户'}}
    </view>
    <view class="item {{content.dataType==5?'active':''}}" id='5'>
        {{language['更新客户']||'更新客户'}}
    </view>
    <view class="item {{content.dataType==6?'active':''}}" id='6'>
        {{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">
            <view class="line-1">
                {{item.enterprisename}}
            </view>
        </view>
        <view class="rep">
            {{language['业务员']||'业务员'}}：{{item.name}}
            <block wx:if="{{item.name && item.depname}}">
                -
            </block>
            {{language[item.depname]||item.depname}}
        </view>
        <block wx:if="{{content.dataType==4}}">
            <view class="rep">
                {{language['地址']||'地址'}}：{{item.province+item.city+item.county+item.address||'--'}}
            </view>
            <view class="rep">
                {{language['联系方式']||'联系方式'}}：<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">
                {{language['新增时间']||'新增时间'}}：{{item.changedate ||' --'}}
            </view>
        </block>
        <block wx:if="{{content.dataType==5}}">
            <view class="rep">
                {{language['更新时间']||'更新时间'}}：{{item.changedate ||' --'}}
            </view>
            <view class="rep">
                {{language['更新内容']||'更新内容'}}：{{language[item.newvalue]||item.newvalue ||' --'}}
            </view>
        </block>
        <block wx:if="{{content.dataType==6}}">
            <view class="rep">
                {{language['跟进类型']||'跟进类型'}}：{{language[item.type]||item.type ||' --'}}
            </view>
            <view class="rep">
                {{language['跟进对象']||'跟进对象'}}：{{language[item.followname]||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' />