feat: 添加等级名称显示

This commit is contained in:
陈淳
2024-01-29 11:20:40 +08:00
parent 6bc9f1c7fd
commit fd78b2e3c3
11 changed files with 138 additions and 38 deletions

View File

@@ -13,7 +13,7 @@
<div class="text">{{ userInfo.nick }}</div>
<div class="level">
<el-tag round effect="light" type="success" v-if="userInfo.level"
>等级{{ userInfo.level }}</el-tag
>{{ userInfo.level }}-{{userInfo.levelName}} 等级</el-tag
>
</div>
<div class="status" v-if="userInfo.userLimit">
@@ -113,6 +113,7 @@ const Init = () => {
userInfo.level = props.userInfo.level;
userInfo.userLimit = props.userInfo.userLimit;
userInfo.userName= props.userInfo.userName;
userInfo.levelName= props.userInfo.levelName;
iconUrl.value = iconUrlHandler(userInfo.icon);
}

View File

@@ -22,7 +22,7 @@
<div class="name">{{ userInfo.nick }}</div>
<div class="level">
<el-tag effect="light" type="success" v-if="userInfo.level"
>等级{{ userInfo.level }}</el-tag
>{{ userInfo.level }}-{{ userInfo.levelName }} 等级</el-tag
>
</div>
</div>