<view class="setclient-list-item" style="margin-bottom: 20rpx;" wx:for="{{list}}" wx:key="sys_enterpriseid">
    <navigator url="/packageA/setclient/detail?id={{item.sa_customersid}}" class="con">
        <view class="portrait {{item.enterprisename <=2?'min-portrait':''}}">
            {{item.type?handle.getName(item.type):handle.getName(item.enterprisename)}}
        </view>
        <view class="mian">
            <view class="label line-1">{{item.enterprisename}}</view>
            <view class="tag-box">
                <view class="systemtag" wx:for="{{item.tags.systemtag}}" wx:key="item">{{item}}</view>
                <view class="datatag" wx:for="{{item.tags.datatag}}" wx:key="item">{{item}}</view>
            </view>
        </view>
        <view class="icon">
            <van-icon name="arrow" />
        </view>
    </navigator>
    <view class="bottom" wx:if="{{disabled}}">
        <!-- 更换类型 -->
        <picker bindchange="bindPickerChange" value="{{handle.getValue(item.type,range)}}" data-item="{{item}}" range="{{range}}">
            <navigator url="#">
                <text class="iconfont icon-dibu-biangengchengjiaozhuangtai" />
            </navigator>
        </picker>

        <!-- 删除 -->
        <navigator url="#" bindtap="handleFast" data-name="delete" data-item="{{item}}">
            <text class="iconfont icon-guanlian-shanchu" />
        </navigator>
    </view>
</view>

<My_empty wx:if="{{!list.length}}" />
<wxs module="handle">
    module.exports = {
        getName: function (name) {
            return name.substring(0, 4)
        },
        getValue: function (name, list) {
            var i = list.indexOf(name)
            return i == -1 ? 0 : i
        }
    }
</wxs>