<template>
    <view class="user-list">
        <view class="user first">
            <image src="https://picsum.photos/100/100?random=1" class="user-head"></image> <text>拼主</text>
        </view>
        <view class="user"> <image src="https://picsum.photos/100/100?random=2" class="user-head"></image> </view>
    </view>
</template>

<script></script>

<style lang="scss" scoped>
.flex-center-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-list {
    @extend .flex-center-box;
    .user {
        @extend .flex-center-box;
        position: relative;
        width: 100rpx;
        height: 100rpx;

        border-radius: 50%;

        border: 2rpx dashed #cccccc;
        border-radius: 50%;
        box-sizing: border-box;

        &::before {
            content: '?';
            font-size: 36rpx;
            color: #999999;
        }

        &.first {
            margin-right: 32rpx;
        }

        .user-head {
            position: absolute;
            left: -2rpx;
            top: -2rpx;
            z-index: 1;
            display: block;
            width: 100rpx;
            height: 100rpx;
            border-radius: 50%;
        }

        text {
            @extend .flex-center-box;
            position: absolute;
            left: -20rpx;
            top: 0;
            z-index: 2;
            width: 56rpx;
            height: 28rpx;
            background: #ff457b;
            border: 1rpx solid #ffffff;
            border-radius: 14rpx;
            font-size: 20rpx;
            color: #ffffff;
        }
    }
}
</style>
