<van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' bind:clear='onClear' />
<view class="head" style="height: 20rpx;" />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <navigator class="offer-list" url="#" wx:for="{{list}}" wx:key="index" data-id="{{item[idname]}}" bindtap="changeResult">
        <view class="portrait">
                {{item[showName][0]}}
            </view>
        <view class="box">
            <view class="title line-1">
                {{item[showName]||'--'}}
                <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{language[tag]||tag}}</van-tag>
                <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{language[tag]||tag}}</van-tag>
            </view>
            <view class="exp">{{item.phonenumber}}</view>
        </view>
        <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
    </navigator>
    <view style="height: 230rpx;" />
    <My_empty wx:if="{{!list.length}}" />
</Yl_ListBox>
<block wx:if="{{!radio}}">
    <view style="height: 130rpx;" />
    <view class="footer">
        <view class="count">
            {{language['已选']||'已选'}}：{{result.length}}
        </view>
        <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">{{language['添加']||'添加'}}</van-button>
    </view>
</block>
<wxs module="handle">
    module.exports = {
        isCheck: function (id, list) {
            return list.some(function (v) {
                return v == id
            });
        }
    }
</wxs>