💄 战绩添加幽境危战数据

This commit is contained in:
BTMuli
2025-07-05 12:12:42 +08:00
parent f8f08cf048
commit ceeec4b4a4
5 changed files with 62 additions and 29 deletions

View File

@@ -7,7 +7,7 @@
<span>最佳记录</span>
<span>{{ props.data.best.second }}s</span>
<img
:title="getDiffTitle(props.data.best)"
:title="getHardChallengeDesc(props.data.best.difficulty)"
:src="`/icon/challenge/UI_LeyLineChallenge_Medal_${props.data.best.difficulty}.webp`"
alt="medal"
/>
@@ -21,30 +21,13 @@
</div>
</template>
<script lang="ts" setup>
import { getHardChallengeDesc } from "@Sql/utils/transUserRecord.js";
import TucChallengeItem from "./tuc-challenge-item.vue";
type TucOverviewProps = { title: string; data: TGApp.Game.Challenge.Challenge };
const props = defineProps<TucOverviewProps>();
function getDiffTitle(best: TGApp.Game.Challenge.ChallengeBest): string {
switch (best.difficulty) {
case 1:
return "普通";
case 2:
return "进阶";
case 3:
return "困难";
case 4:
return "险恶";
case 5:
return "无畏";
case 6:
return "绝境";
default:
return `难度${best.difficulty}`;
}
}
</script>
<style lang="scss" scoped>
.tuc-overview-comp {

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="!modelValue">暂无数据</div>
<div v-else>
<div class="tur-og-box-3">
<div class="tur-og-box">
<TurOverviewSub
:text="modelValue.activeDays"
icon="/source/UI/userRecord.webp"
@@ -17,8 +17,11 @@
icon="/source/UI/userCombat.webp"
title="幻想真境剧诗"
/>
</div>
<div class="tur-og-box">
<TurOverviewSub
:text="modelValue.hardChallenge"
icon="/source/UI/userChallenge.webp"
title="幽境危战"
/>
<TurOverviewSub
:text="modelValue.avatarNumber"
icon="/source/UI/userAvatar.webp"