<view class="setclient-list-item" wx:for="{{list}}" wx:key="sys_enterpriseid">
    <navigator url="/packageA/publicCustomer/detail?id={{item.sa_customersid}}" 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>{{item.type}}</van-tag>
                <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{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>{{tag}}</van-tag>
            </view>
        </view>
        <view class="icon">
            <van-icon name="arrow" />
        </view>
    </navigator>
</view>

<My_empty wx:if="{{!list.length}}" />
<wxs module="handle">
    module.exports.getName = function (name) {
        return name.substring(0, 4)
    };
</wxs>