
  
    <view wx:for="{{list}}" wx:key="index" wx:for-item="ele"  class="item">
      <avatar text="{{ele.name}}" />
      <view class="info">
        <view class="nickName"> {{ ele.name }} </view>
        <view class="phone"> {{ ele.phone }} </view>
      </view>
      <view class="operate" wx:if="{{!ele.isAdmin}}">
        <van-button type="info" size="small" data-user="{{ele}}" bind:click="setAdmin" data-tenement="{{item.id}}" style="margin-bottom: 16rpx;" class="admin">设为管理员</van-button>
        <van-button type="danger" size="small" data-user="{{ele}}" bind:click="remove" data-tenement="{{item.id}}" class="remove">移除</van-button>
      </view>
    </view>
