12345678910111213141516171819202122232425262728293031 |
- <van-tabs bindchange="tabChange" color='var(--assist)' custom-class='custom-class'>
- <van-tab name="客户" title="{{language['客户']||'客户'}}" />
- <van-tab name="经销商" title="{{language['经销商']||'经销商'}}" />
- </van-tabs>
- <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">{{language['总共']||'共'}} {{content.total}} {{language['个']||'个'}}</view>
- <navigator class="setclient-list-item" url="#" wx:for="{{list}}" wx:key="sys_enterpriseid" data-item="{{item}}" 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' color='#E7EEFF' wx:if="{{item.type}}" text-color='#3874F6' round>{{language[item.type]||item.type}}</van-tag>
- <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' wx:key="index" color='#E7EEFF' text-color='#3874F6' round>{{language[tag]|tag}}</van-tag>
- <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' wx:key="index" color='#FFEFD9' text-color='#FA8C16' round>{{language[tag]|tag}}</van-tag>
- </view>
- </view>
- </view>
- </navigator>
- <My_empty wx:if="{{!list.length}}" />
- </Yl_ListBox>
- <wxs module="handle">
- module.exports = {
- getName: function (name) {
- return name.substring(0, 4)
- }
- }
- </wxs>
|