| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <view>
- <van-search class="search" value="{{ params.content.where.condition }}" shape="round" background='#F4F5F7' custom-class='custom-class' 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="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="con">
- <view class="portrait {{item.enterprisename <=2?'min-portrait':''}}">
- {{handle.getName(item[showName])}}
- </view>
- <view class="mian">
- <view class="label line-1"><text wx:if="{{language[item.brandName]||item.brandName}}">【{{language[item.brandName]||item.brandName}}】</text>{{item[showName] ||' -- '}}</view>
- <view class="tag-box">
- <van-tag custom-class='tag' wx:if="{{item.type}}" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{language[item.type]||item.type}}</van-tag>
- <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:key="index" 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:key="index" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{language[tag]||tag}}</van-tag>
- </view>
- </view>
- </view>
- </navigator>
- <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' bind:click="submit">{{language['确定']||'确定'}}</van-button>
- </view>
- </block>
- <wxs module="handle">
- module.exports = {
- getName: function (name) {
- return name.substring(0, 4)
- },
- isCheck: function (id, list) {
- return list.some(function (v) {
- return v == id
- });
- },
- }
- </wxs>
|