<template>
   <div class='rank-list'>
       <div class='rank-head'>
           <span>用户昵称</span>
            <span>邀请时间</span>
       </div>
            <div class='rank-item' v-for='(item,index) in inviteList' :key='index'>
                    <div class='avatar'>
                        <img :src="item.avatar" alt="" class='img'>
                    </div>
                    <div class='name'>
                        {{item.nickname}}
                    </div>
                <div class='invite'>
                    {{item.created_at}}
                </div>
            </div>
        </div>
</template>
<script>
export default {
    props:{
        inviteList:{
            default:()=>{
                return []
            }
        }
    }
}
</script>
<style scoped lang='scss'>
.rank-list{
    width: 100%;
    padding-top:0.24rem;
    box-sizing: border-box;
    .rank-head{
        display: flex;
        width: 100%;
        justify-content: space-between;
        font-size: 0.24rem;
        font-weight: 400;
        color: #999999;
        padding: 0 0.36rem 0 0.32rem;
        box-sizing: border-box;
        margin-bottom: 0.1rem;
    }
    .rank-item{
        width:100%;
        padding: 0 0.36rem 0 0.32rem;
        display: flex;
        height:0.96rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        .avatar{
            display: flex;
            justify-content: center;
            align-items: center;
            .img{
                width:0.72rem;
                height:0.72rem;
                border-radius: 100%;
            }
        }
        .name{
            flex:1;
            max-width: 1.68rem;
            font-size: 0.24rem;
            font-weight: 400;
            color: #666666;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            margin-left:0.16rem;
        }
        .invite{
            font-size: 0.24rem;
            color: #333333;
        }   
    }
}
</style>