| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | <import src="index.skeleton.wxml" /><template is="skeleton" wx:if="{{loading}}" /><van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' /><view class="total">共{{params.content.total}}个</view><Yl_ListBox id='ListBox' bind:getlist='getList'>	<navigator class="product" url="#" wx:for="{{list}}" wx:key="index" data-id="{{item[idname]}}" bindtap="changeResult">		<van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />		<view class="image-box">			<van-image width="100%" wx:if="{{item.attinfos[0]}}" height="100%" fit="cover" src="{{item.attinfos[0].subfiles[0].url||item.attinfos[0].url}}" use-loading-slot use-error-slot lazy-load>				<van-loading slot="loading" type="spinner" size="20" vertical />				<text slot="error">加载失败</text>			</van-image>			<text class="text" wx:else>暂无图片</text>		</view>		<view class="right-box">			<view class="title line-1">{{item.promname||'--'}}</view>			<view class="tags">				<view wx:if="{{item.type}}" style="background: #FA8C16;">					{{item.type}}				</view>				<view wx:if="{{item.brandname}}" style="background: #FA8C16;">					{{item.brandname}}				</view>				<view wx:if="{{item.tradefield}}" style="background: #FA8C16;">					{{item.tradefield}}				</view>			</view>			<view class="type line-1">开始时间:{{item.begdate||'--'}}</view>			<view class="type line-1">结束时间:{{item.enddate||'--'}}</view>		</view>	</navigator>	<view wx:if="{{!radio}}" style="height: 130rpx;" />	<Yl_Empty wx:if="{{list.length==0}}" /></Yl_ListBox><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>
 |