<van-collapse value="{{ activeNames }}" bind:change="onChange">
    <van-collapse-item content-class='content-class' title="{{item.teamleader[0].name+'的团队 ('+item.team.length+')'}}" name="{{index}}" wx:for="{{teams}}" wx:key="index">
        <view class="head" wx:if="{{item.ismyteam==1}}">
            <view class="search">
                <van-icon name="search" />
                <input type="text" placeholder="搜索关键字" bindinput='onInput' value="{{keyword}}" />
                <van-icon wx:if="{{keyword}}" name="close" bindtap="cancelTheSearch" />
            </view>
            <navigator url="#" class="add" bindtap="toAdd" wx:if="{{userid == item.teamleader[0].userid}}">
                <van-icon name="plus" />
            </navigator>
        </view>
        <List id='List' list='{{item.team}}' ownertable='{{ownertable}}' ownerid='{{ownerid}}' teamleaderId='{{item.teamleader[0].userid}}' />
        <block wx:if="{{item.team.length==0}}">
            <My_empty />
            <view style="height: 30rpx;" />
        </block>
    </van-collapse-item>
</van-collapse>