<!--packageD/team_sell/teamLimit/teamLimit.wxml-->
<view class="teamActive">
	<van-tabs active="{{pageindx}}" bind:change="chooseTabData">
		<!-- <van-tab title="活跃值"></van-tab>
		<van-tab title="直推超级会员活跃值"></van-tab> -->
		<van-tab title="普通用户"></van-tab>
		<block wx:for="{{info.levels}}" wx:key="index">
			<van-tab title="{{item.level_name}}"></van-tab>
		</block>

	</van-tabs>
	<view style="padding-top:30rpx;background:#fff;">
		<view class="inpbox">
			<icon class="iconfont icon-sousuo1" catchtap="souSuo"></icon>
			<input placeholder="搜索会员ID/昵称/手机号" bindinput="keyValue"></input>
		</view>
		<block wx:for="{{list}}" wx:key="index" wx:if="{{level_id == 0}}">
			<view class="ind_two">
				<view class="two_poto">
					<image src="{{item.avatar_image}}"></image>
				</view>
				<view class="two_list">
					<view class="two_name" style="font-size: 33rpx;max-width: 500rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis">{{item.nickname}}</view>
					<view class="two_card_live" style="color: #666666;font-size: 24rpx; ">普通会员</view>
				</view>
				<view class="two_right">
					<view class="upgrade" catchtap="toUpdate" data-uid="{{item}}">升级</view>
				</view>
			</view>
		</block>
		<block wx:for="{{list}}" wx:key="index" wx:if="{{level_id != 0}}">
			<view class="ind_two">
				<view class="two_poto">
					<image src="{{item.has_one_member.avatar_image}}"></image>
				</view>
				<view class="two_list">
					<view class="two_name" style="font-size: 33rpx;max-width: 500rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis">{{item.has_one_member.nickname}}</view>
					<view class="two_card_live" style="color: #666666;font-size: 24rpx; ">{{info.levels[level_id-1].level_name}}</view>
				</view>
				<view class="two_right">
					<view class="upgrade" catchtap="toUpdate" data-uid="{{item}}">升级</view>
				</view>
			</view>
		</block>
	</view>


	<van-popup show="{{show}}" position='bottom' custom-style="width:100%;border-radius: 42rpx 42rpx 0rpx 0rpx;">
		<view class="showbox">
			<view class="topHead">
				<view style="margin-left:59rpx;font-size: 28rpx;color: #666666;" catchtap="cancel">取消</view>
				<view style="font-size: 32rpx;">选择升级等级</view>
				<view style="margin-right:59rpx;font-size: 28rpx;color: #ee2e2b;" catchtap="resultAdd">确认</view>
			</view>
			<!-- 选择等级 -->
			<view class="checkBox">
				<block wx:for="{{info.levels}}" wx:key="index">
					<view class="checkList">
						<view>{{item.level_name}}</view>
						<van-radio-group value="{{value}}" bind:change="raidinp">
							<van-radio name="{{item.id}}"></van-radio>
						</van-radio-group>
					</view>
				</block>
			</view>
		</view>
	</van-popup>
</view>
