<van-tabs wx:if="{{tabShow}}" active="{{active.title}}" swipeable sticky title-active-color='var(--assist)' color='var(--assist)' bind:change="tabChange">
    <van-tab wx:for="{{tabList}}" wx:key="title" title="{{item.title}}" name="{{item.title}}" />
</van-tabs>

<view class="tabs" />
<My_ListBox id="ListBox" height="{{listHeight}}" bind:getlist='getList'>
    <block wx:if="{{active.title=='账号列表'}}">
        <navigator url="#" class="my-card user-item" wx:for="{{list}}" wx:key="userid" data-item="{{item}}" bindtap="changeUser">
            <view class="user-img">
                <van-image width="96rpx" height="96rpx" fit='cover' radius='48rpx' lazy-load src="{{item.attinfos[0].url||'/static/image/user.png'}}" />
            </view>
            <view class="details">
                <view class="user-name">
                    <view class="line-1">{{item.name}}</view>
                    <view class="position">{{item.position}}</view>
                    <view class="icon">
                        <text class="iconfont icon-a-wodetiaozhuan" />
                    </view>
                </view>
                <view class="base-msg" style="display: flex;flex-wrap: wrap;">
                    <block wx:if="{{item.partitionname.length}}">
                        <view class='tag' wx:for="{{item.partitionname}}" wx:for-item="it" wx:for-index="i" style="{{i>1?'margin-top:4rpx':''}}">
                            <van-tag plain type="primary">{{it.partitionname}}{{it.enddate}}</van-tag>
                        </view>
                    </block>
                    <block wx:else>
                        <van-tag plain type="danger">未付费</van-tag>
                    </block>
                </view>
                <view class="base-msg">账号：{{item.accountno}}<text class="iconfont icon-a-wodemendianxinxidianhua" />{{item.phonenumber}}</view>
            </view>
        </navigator>
    </block>
    <block wx:elif="{{active.title=='角色列表'}}">
        <navigator url="#" class="my-card role-item" wx:for="{{list}}" wx:key="roleid" data-item="{{item}}" bindtap="changeRole">
            <view class="role-l">
                <view class="first-line">
                    <text class="label line-1">{{item.rolename}}</text>
                    <text class="role line-1">{{item.remarks}}</text>
                </view>
                <view class="creator line-1">创建人：{{item.createby}}</view>
            </view>
            <view class="role-r">
                <text class="iconfont icon-a-wodetiaozhuan" />
            </view>
        </navigator>
    </block>
    <block wx:elif="{{active.title=='付费订单'}}">
        <navigator url="/pages/teams/order?id={{item.sys_payorderid}}" class="my-card orderForm" wx:for="{{list}}" wx:key="sys_payorderid">
            <view class="label">订单号:{{item.orderno}}</view>
            <view>
                付费金额：<text class="price">{{item.amount || "0"}}</text>
            </view>
            <view>
                付费时间：{{item.paytime || "未付费"}}
            </view>
            <view>
                备注：{{item.remarks || " --"}}
            </view>
            <text class="status" style="background-color: {{item.color}};">{{item.status}}</text>
        </navigator>
    </block>
    <view style="height: 230rpx;" />
    <Yl_Empty wx:if="{{list.length==0}}" />
</My_ListBox>
<view class="footer" wx:if="{{active.butText!='新建账号'}}">
    <van-button custom-class='add-but' color="var(--assist)" bindtap="newItem">{{active.butText}}</van-button>
</view>