<van-tabs bindchange="tabChange" color='var(--assist)' custom-class='custom-class'>
    <van-tab title="客户" />
    <van-tab title="经销商" />
</van-tabs>
<van-search class="search" value="{{ content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <view class="total">共{{content.total}}个</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>{{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>{{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>{{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>