<cu-custom bgColor="bg-color" isBack="{{true}}" title="员工管理">
  <!-- <view slot="content">员工管理</view> -->
</cu-custom>
<view class="worker_search">
  <view class="worker_search_con">
    <input type="text" placeholder="请输入名字" value="{{keyword}}" bindinput="setKeyword"></input>
    <view class="text-color" bindtap="searchList"><text class="cuIcon-search"></text>搜索</view>
  </view>
</view>
<view class="tabs">
  <view data-index="10" bindtap="tabs">
    <text class="{{activeIndex == '10' ? 'active' : ''}}">未授权</text>
  </view>
  <view data-index="20" bindtap="tabs">
    <text class="{{activeIndex == '20' ? 'active' : ''}}">已授权</text>
  </view>
  <view data-index="00" bindtap="tabs">
    <text class="{{activeIndex == '00' ? 'active' : ''}}">全部</text>
  </view>
</view>
<view class="userInfo">
  <view wx:for="{{companyUserList}}" wx:for-item="item">
    <view>
      <text>名字：{{item.nickName}}</text>
      <text>手机号：{{item.phoneNumber}}</text>
    </view>
    <view wx:if="{{item.status == '10'}}">
      <text bindtap="verify" data-index="20" data-id="{{item.id}}">授权</text>
      <text bindtap="verify" data-index="10" data-id="{{item.id}}">拒绝</text>
      <text bindtap="verify" data-index="40" data-id="{{item.id}}">退出、离职</text>
    </view>
    <view class="text" wx:if="{{item.status == 20}}">
      <view>已同意授权</view>
    </view>
  </view>
</view>