update
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-10-27 17:33:11 +08:00
parent d88da0739c
commit fe2411083f
2 changed files with 12 additions and 1 deletions

View File

@@ -226,6 +226,7 @@ watch(
width="24"
height="24"
object-fit="cover"
:class="{ 'earned-badge': badge.is_earned }"
/>
</template>
<n-flex vertical size="small">
@@ -241,6 +242,9 @@ watch(
)
}}
</span>
<n-text type="primary" v-if="badge.is_earned">
✓ 已获得
</n-text>
</n-flex>
</n-tooltip>
</n-flex>
@@ -260,4 +264,10 @@ watch(
<n-empty v-if="problemSets.length === 0"></n-empty>
</template>
<style scoped></style>
<style scoped>
.earned-badge {
border: 2px solid #ffd700;
border-radius: 50%;
box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
</style>

View File

@@ -242,6 +242,7 @@ export interface ProblemSetBadge {
icon: string
condition_type: "all_problems" | "problem_count" | "score"
condition_value: number
is_earned?: boolean
}
export interface UserBadge {