<van-search class="search" value="{{ params.content.where.condition }}" background='#F4F5F7' custom-class='custom-class' shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' bind:clear='onClear' />

<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <navigator class="setclient-list-item global-card" 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 ">
                    <text class="tag" wx:if="{{item.tradefield}}" style="background: #5ABA42;">{{item.tradefield}}</text>
                    {{item.projectname || item.enterprisename_customer || " --"}}
                </view>
                <view class="row" style="margin-top: 16rpx;">
                    <view class="left line-1">
                        {{language['负责人']||'负责人'}}：{{item.leader[0].name||' --'}}
                    </view>
                    <view class="right">
                        {{language['来源']||'来源'}}：{{language[item.cluesource]||item.cluesource||' --'}}
                    </view>
                </view>
                <view class="row"><text class="label">{{language['联系方式']||'联系方式'}}：</text><text>{{item.phonenumber || '--'}}</text></view>
                <view class="row"><text class="label">{{language['客户名称']||'客户名称'}}：</text><text>{{item.projectname || item.enterprisename_customer || '--'}}</text></view>
                <view class="row"><text class="label">{{language['项目名称']||'项目名称'}}：</text><text>{{item.projectname || '--'}}</text></view>
            </view>
        </view>
    </navigator>
    <view style="height: 230rpx;" />
    <My_empty wx:if="{{!list.length}}" />
</Yl_ListBox>

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