<van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <view class="total">共{{params.content.total}}个</view>
    <navigator class="setclient-list-item" url="#" wx:for="{{list}}" wx:key="{{idname}}" data-id="{{item[idname]}}" bindtap="changeResult">
        <view class="con">
            <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
            <view class="mian">
                <view class="title line-1">
                    {{item.projectname}}
                </view>
                <view class="tag-box">
                    <view class="systemtag" wx:for="{{item.tags.systemtag}}" wx:key="item">{{item}}</view>
                    <view class="datatag" wx:for="{{item.tags.datatag}}" wx:key="item">{{item}}</view>
                </view>
                <view class="exp line-1">
                    项目编号：{{item.projectnum}}
                </view>
                <view class="exp line-1">
                    项目地址：{{item.province?item.province+item.city+item.county+item.address:" --"}}
                </view>
                <view class="exp line-1">
                    项目类型：{{item.projecttype||' --'}}
                </view>
                <view class="exp line-1">
                    项目等级：{{item.grade||' --'}}
                </view>
            </view>
        </view>
    </navigator>
    <view style="height: 230rpx;" />
    <My_empty wx:if="{{!list.length}}" />
</Yl_ListBox>

<view style="height: 130rpx;" />
<block wx:if="{{!radio}}">
    <view class="footer">
        <view class="count">
            已选：{{result.length}}
        </view>
        <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
    </view>
    <wxs module="handle">
        module.exports = {
            isCheck: function (id, list) {
                return list.some(function (v) {
                    return v == id
                });
            },
        }
    </wxs>
</block>