<view class="all">
  <image mode="scaleToFill" catchTap="onClose" class="close" src="../../../image/close.png"></image>
  <view class="content">
    <view>
      <view class="flex-box flex-v-ce shu" a:if="{{terr.length>1}}">
        <view a:for="{{terr}}" class="flex-box flex-v-ce flex-d-wrap" 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}}"/>
          <text style="max-width:2.5rem" class="font-flex-word">{{item.name}}</text>
        </view>
      </view>
      <scroll-view class="ul" scroll-y="{{true}}">
        <view class="flex-box flex-v-ce li2" a:for="{{rule_tree}}" a:key="{{index}}">
          <label class="flex-1">
            <view class="flex-box flex-v-ce flex-1" style="padding-left:24rpx;">
              <checkbox checked="{{item.checked}}" data-index="{{index}}" data-item="{{item}}" onChange="radioChange" name="{{item.id}}"/>
              <image class="images" src="../../../image/BM.png"/>
              <view class="font-flex-word" style="width:4rem">{{item.name}}</view>
            </view>
          </label>
          <view class="xia" data-item="{{item}}" catchTap="openDown" a:if="{{item._child.length>0}}">| 下级</view>
        </view>
      </scroll-view>
    </view>
  </view>
  <view class="StaffFooter flex-box flex-v-ce">
    <view class="flex-1 f-left flex-box flex-v-ce">
      <view a:for="{{selectSenction}}" style="margin-right:10rpx;" a:if="{{item.id}}">
        <image a:if="{{item.img_url}}" class="img-url" style="width:70rpx;height:70rpx;display: inline-block;  position: relative;top: 6rpx;" src="{{item.img_url}}"></image>
        <view a:else style="width: 70rpx;height: 70rpx;border-radius: 100%;background: #26A2FF;color: #fff;text-align: center;line-height: 70rpx;font-size: 24rpx;">{{item.name.substr(item.name.length-2)}}</view>
      </view>
    </view>
    <view class="staffBtn" onTap="onConfirm">确定</view>
  </view>
</view>