<!--pages/peopleManagement/peopleManagement.wxml-->
<custom-navi text="圈子成员" back="{{true}}" home="{{true}}"></custom-navi>
<view class='peopleManagement'>
  <view class='top_peopleManagement'>
    <view class='topQuanzi'>
      <image src='../../img/search.png'></image>
      <input class="input" value='{{name}}' placeholder="请输入圈子名称" bindinput ="onInutName"/>
      <view bindtap='getMemberList'>搜索</view>
    </view>
    <text>圈内人数:{{memberCount}}人</text>
    <view class='peopleList'>
      <view class='con_peopleList' wx:for='{{memberList}}' wx:for-index='key' wx:for-item='members'>
        <text>{{key}}</text>
        <view wx:for='{{members}}' wx:for-item='member'>
          <van-swipe-cell right-width="{{ 50 }}" left-width="{{ 0 }}">
            <view slot="left">选择</view>
            <van-cell-group>
              <image src='{{member.header_img}}'></image>{{member.name}}
            </van-cell-group>
            <view slot="right" wx:if="{{isOwner}}" bindtap="deleteMember" data-index="{{member.user_id}}" style='height:50px;line-height:50px'>删除</view>
          </van-swipe-cell>
        </view>
      </view>
    </view>
  </view>
  <!-- <view class='invite' bindtap='inviteCircleMember'>邀请成员</view>-->
  <button class='invite' open-type='share'>邀请成员</button> 
  <van-dialog id="van-dialog" />
  <van-notify id="van-notify" />
</view>