<view class="item" wx:for="{{list}}" wx:key="changeuserid">
    <navigator url="/packageA/setclient/modules/contacts/detail/index?contactsid={{item.contactsid}}" class="content">
        <view class="user">
            <view class="portrait">
                {{item.name[0]}}
            </view>
            <view class="right">
                <view class="title line-1">
                    {{item.name}}<text>{{item.phonenumber}}</text><text>{{item.email}}</text>
                </view>
                <view class="tag" wx:if="{{item.tag[0]}}">{{item.tag[0]}}</view>
                <view class="exp" style="margin-top: 10rpx;">{{item.enterprisename}} <text>{{item.position}}</text></view>
            </view>
        </view>
    </navigator>
    <view class="editor">
        <view />
        <view class="icon-but" bindtap="handleItem">
            <navigator url="#" data-item="{{item}}" data-name="call" class="iconfont icon-bodadianhua" />
            <navigator url="#" data-item="{{item}}" wx:if="{{disabled}}" data-name="edit" class="iconfont icon-bianji" />
            <navigator url="#" data-item="{{item}}" wx:if="{{disabled}}" data-name="change">
                <picker bindchange="bindPickerChange" value="{{handle.getValue(item.tag[0],range)}}" data-item="{{item}}" range="{{range}}">
                    <text class="iconfont icon-dibu-biangengchengjiaozhuangtai" />
                </picker>
            </navigator>
            <navigator url="#" data-item="{{item}}" wx:if="{{disabled}}" data-name="delete" class="iconfont icon-shanchu" />
        </view>
    </view>
</view>
<My_empty wx:if="{{list.length==0}}" />
<wxs module="handle">
    module.exports = {
        getValue: function (name, list) {
            var i = list.indexOf(name)
            return i == -1 ? 0 : i
        }
    }
</wxs>