<van-search custom-class="search" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' use-action-slot bind:clear='onClear'>
	<view slot="action" wx:if="{{isleader}}" style="color: #333;" catchtap="setTeam">
		<van-icon name="setting" /> {{manage}}
	</view>
</van-search>

<view style="height: 20rpx;" />
<view hover-class="{{manage=='管理'?'none':'navigator-hover'}}" class="user-box" wx:for="{{list}}" data-name="{{item.userid}}" bind:tap="{{manage=='管理'?'':'toggle'}}" wx:key="userid">
	<view class="user">
		<view class="profile">
			<van-image wx:if="{{item.headpic}}" width="42" height="42" round src="{{item.headpic}}" lazy-load />
			<view wx:else class="text">
				{{item.name[0]}}
			</view>
		</view>
		<view class="content">
			<view class="name line-1">
				{{item.name}}
			</view>
			<view class="tags">
				<van-tag wx:if="{{item.isleader}}" style="margin-right: 10rpx;" type="danger">负责人</van-tag>
				<van-tag type="primary">{{item.position}}</van-tag>
			</view>
		</view>
		<view class="set" wx:if="{{isleader && item.isleader==0}}">
			<van-button wx:if="{{manage=='管理'}}" type="primary" size="mini" data-item="{{item}}" bindclick='setLeader'>转让负责人</van-button>
			<van-checkbox wx:else custom-class='checkbox' icon-size='18' value='{{wqp.query(result,item.userid)}}' name="{{item.userid}}" />
		</view>
	</view>
</view>
<view style="height: 34rpx;" />
<Yl_Empty wx:if="{{list.length==0}}" />
<Yl_FloatingButton wx:if="{{isleader && manage=='管理'}}" bindtap="insert" />

<block wx:if="{{manage!='管理'}}">
	<!-- 底部 -->
	<view style="height: 100rpx;" />
	<view class="footer">
		<van-button custom-class='but' disabled='{{!result.length}}' bindclick="onRemove">移除（{{result.length}}）</van-button>
	</view>
</block>
<wxs src="../../utils/wxmlQueryPer.wxs" module="wqp" />