| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <van-search class="search" value="{{ content.where.condition }}" shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' bind:clear='onClear' />
- <Yl_ListBox id='ListBox' bind:getlist='getList'>
- <view class="total">
- <text wx:if="{{language['总共']}}">{{language['总共']}}:{{content.total}}</text>
- <text wx:else>总共{{content.total}}个</text>
- </view>
- <navigator class="setclient-list-item" url="#" wx:for="{{list}}" wx:key="contactsid" data-id="{{item.contactsid}}" bindtap="changeResult">
- <view class="con">
- <view class="portrait {{item.enterprisename <=2?'min-portrait':''}}">
- {{handle.getName(item.enterprisename)}}
- </view>
- <view class="mian">
- <view class="label line-1">{{item.enterprisename}}</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: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="leader">
- {{language['负责人']||'负责人'}}:{{item.leader}}
- </view>
- </view>
- <view class="checkbox" wx:if="{{!radio}}">
- <van-checkbox value='{{handle.isCheck(item.contactsid,result)}}' />
- </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' disabled='{{result.length==0}}' 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>
|