<view>
    <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' />
</view>
<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 wx:if="{{item.projecttype_remarks}}" class="tag" style="background: #3874F6;">{{item.projecttype_remarks}}</text>
                    <text wx:if="{{item.tradefield}}" class="tag" style="background: #58B73E;">{{item.tradefield}}</text>
                    <text>{{item.projectname}}</text>
                </view>
                <view class="row" style="margin-top: 16rpx;">
                    <view class="left">
                        {{language['项目编号']||'项目编号'}}：{{item.projectnum||' --'}}
                    </view>
                    <view class="right">
                        {{language['负责人']||'负责人'}}：{{item.leader[0].name||' --'}}
                    </view>
                </view>
                <view class="row line-1">
                    {{language['项目阶段']||'项目阶段'}}：{{language[item.stagename]||item.stagename||' --'}}
                </view>
                <view class="row line-1">
                    {{language['预计签约金额']||'预计签约金额'}}：{{item.signamount_due}}
                </view>
                <view class="row line-1">
                    {{language['预计签约时间']||'预计签约时间'}}：{{item.signdate_due||'--'}}
                </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>