<view>
  <view class="header margin-bottom">
  <form onReset="onReset">
    <view class="search flex-box flex-v-ce">
      <image mode="scaleToFill" src="../../../image/ss.png"/>
      <input class="flex-1" placeholder="请输入姓名搜索" onInput="bindKeyInput" class="flex-1"/>
      <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
    </view>
  </form>
    <view class="flex-box flex-v-ce" style="margin-top:28rpx;">
      <image a:if="{{gsData.logo_ur}}" mode="scaleToFill" src="{{gsData.logo_url}}" class="logo"/>
      <image a:else mode="scaleToFill" src="../../../image/gs_logo.png" class="logo"/>
      <view class="flex-1 name">{{gsData.name}}</view>
    </view>
  </view>
  <view class="flex-box flex-v-ce shu" a:if="{{terr.length>1}}">
    <view a:for="{{terr}}" class="flex-box flex-v-ce" data-index="{{index}}" catchTap="activeItem" data-item="{{item}}">
      <image mode="scaleToFill" src="../../../image/right.png" style="width:20rpx;height:20rpx;margin:0 6rpx;" a:if="{{index!=0}}"/>{{item.name}}
    </view>
  </view>
  <scroll-view a:if="{{isItem}}" class="main" scroll-y="{{true}}" style="{{terr.length>1? 'height: calc(100vh - 472rpx)':'height: calc(100vh - 408rpx)'}}">
    <view class="flex-box flex-v-ce li" a:for="{{rule_tree}}" catchTap="activeTree" data-item="{{item}}">
      <view class="img-left">
        <image mode="scaleToFill" src="../../../image/BM.png"></image></view>
      <view class="{{(index+1)!=rule_tree.length? 'border-bottom':'' }} flex-box flex-v-ce flex-1 li-right">
        <view class="title flex-1">{{item.name}}</view>
        <image mode="scaleToFill" src="../../../image/right.png" class="img-right"></image>
      </view>
    </view>
    <view class="title2 fontColorF">全部人员</view>
    <view class="flex-box flex-v-ce li" a:for="{{userList}}">
      <view class="img-tx">
        <img-box imgUrl="{{item.img_url}}" name="{{item.name}}" height="90rpx" width="90rpx" fSize="24rpx"></img-box>
      </view>
      <view class="{{(index+1)!=rule_tree.lenght? 'border-bottom':'' }}  flex-box flex-v-ce flex-1 li-right">
        <view class="title flex-1">{{item.name}}</view>
      </view>
    </view>
    <view a:if="{{userList.length==0}}"><no-data  content="未找到相关人员"/></view>
  </scroll-view>
  <scroll-view a:else class="main"  scroll-y="{{true}}" style="height: calc(100vh - 388rpx)">
    <view class="title2 fontColorF">全部人员</view>
    <view class="flex-box flex-v-ce li" a:for="{{searchUser}}">
      <view class="img-tx">
        <img-box imgUrl="{{item.img_url}}" name="{{item.name}}" height="90rpx" width="90rpx" fSize="24rpx"></img-box>
      </view>
      <view class="{{(index+1)!=rule_tree.lenght? 'border-bottom':'' }}  flex-box flex-v-ce flex-1 li-right">
        <view class="title flex-1">{{item.name}}</view>
      </view>
    </view>
    <view a:if="{{searchUser.length==0}}"><no-data  content="未找到相关人员"/></view>
  </scroll-view>
  <view class="footer" catchTap="tbDd">
    <view>同步钉钉</view>
  </view>
</view>