<view class="head" bindtap="changeDataType">
    <view class="item {{content.dataType==7?'active':''}}" id='7'>
        新增项目
    </view>
    <view class="item {{content.dataType==8?'active':''}}" id='8'>
        更新项目
    </view>
    <view class="item {{content.dataType==9?'active':''}}" id='9'>
        跟进项目
    </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.projectname}}
            </view>
        </view>
        <view class="rep">
            编号：{{item.projectnum}}
        </view>
        <view class="rep">
            业务员：{{item.name}}
            <block wx:if="{{item.name && item.depname}}">
                -
            </block>
            {{item.depname}}
        </view>

        <block wx:if="{{content.dataType==7}}">
            <view class="rep">
                项目地址：{{item.province+item.city+item.county+item.address||'--'}}
            </view>
            <view class="rep">
                项目类型：{{item.projecttype ||' --'}}
            </view>
            <view class="rep">
                新增时间：{{item.changedate ||' --'}}
            </view>
        </block>

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

        <block wx:if="{{content.dataType==9}}">
            <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" />