<van-search value="{{ params.content.where.condition }}" shape='round' placeholder="请输入搜索关键词" use-action-slot bind:clear='onClear' bind:search="startSearch">
    <navigator url="#" slot="action" class="iconfont icon-shaixuan" bindtap="openFiltrate">
        筛选
    </navigator>
</van-search>
<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="mian">
            <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
            <view class="img" data-file="{{item.attinfos}}" catchtap="viewImage">
                <van-image wx:if="{{item.cover}}" width="100%" height="100%" src="{{item.cover}}" use-loading-slot use-error-slot lazy-load>
                    <van-loading slot="loading" type="spinner" size="20" vertical />
                </van-image>
                <view wx:else class="default">
                    暂无图片
                </view>
            </view>
            <view class="dec">
                <view class="title line-1">
                    {{item.itemname}}
                </view>
                <view class="subfield line-1">
                    <text>编号:{{item.itemno}}</text>
                    品号:{{item.erpitemname||" --"}}
                </view>
                <view class="subfield line-1">
                    <text>标准:{{item.standards|| ' --'}}</text>
                    材质:{{item.material|| ' --'}}
                </view>
                <view class="subfield line-1">
                    <text>装置:{{item.device|| ' --'}}</text>
                    产线:{{item.prodline|| ' --'}}
                </view>
                <view class="subfield line-1">
                    <text>品牌:{{item.brandName}}</text>
                    产品类别:{{item.className}}
                </view>
                <view class="price line-1">
                    牌价：<text class="num">{{item.showMarketprice}}</text><text>/{{item.axunitname}}</text>
                </view>
            </view>
        </view>
        <view class="bot">
            <text class="line-1">规格:{{item.spec||' --'}}</text>
            <text class="line-1">型号:{{item.model||' --'}}</text>
        </view>
    </navigator>
    <view wx:if="{{!radio}}" 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>

<Yl_Filtrate1 show='{{filtrate}}' list="{{filtratelist}}" bindhandle="handleFilter" bindinterrupt='interrupt' />