实现租客成长等级并优化展示
This commit is contained in:
@@ -50,8 +50,10 @@ const realnameTone = computed(() => {
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
if (!session.phone) {
|
||||
try {
|
||||
await session.loadMe()
|
||||
} catch {
|
||||
// 保留本地会话展示,避免资料页因网络短暂异常整页不可用。
|
||||
}
|
||||
resetForm()
|
||||
})
|
||||
@@ -258,6 +260,14 @@ async function savePassword() {
|
||||
<dt>实名状态</dt>
|
||||
<dd :class="`is-${realnameTone}`">{{ realnameStatusLabel(session.realnameStatus) }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>租客等级</dt>
|
||||
<dd class="growth-level">{{ session.renterGrowthLevelName }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>成长积分</dt>
|
||||
<dd>{{ session.renterGrowthPoints }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
<button class="realname-shortcut" type="button" @click="router.push('/realname')">
|
||||
<span>查看实名认证</span>
|
||||
@@ -604,6 +614,10 @@ async function savePassword() {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.account-card dd.growth-level {
|
||||
color: #7c3aed;
|
||||
}
|
||||
|
||||
.realname-shortcut {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user