diff --git a/components/player/EnemyCard.vue b/components/player/EnemyCard.vue index 7878cc6..dd72e0e 100644 --- a/components/player/EnemyCard.vue +++ b/components/player/EnemyCard.vue @@ -51,17 +51,19 @@ function getClan(){

{{ playerInfo.name }}

{{getClan()}}

+
场次 {{battleData.ship_profile.blt}}
评分 {{battleData.user_profile.pr}}
胜率 {{battleData.user_profile.wr.toFixed()}}%
+
击杀 {{battleData.ship_profile.fr}}
经验 {{battleData.user_profile.exp}}
伤害 {{battleData.user_profile.dmg}}
-
+

{{playerInfo.shipInfo ? numberToRoman(playerInfo.shipInfo.tier)+' '+playerInfo.shipInfo.ship_name.zh_sg : '不认识这艘船捏'}}

diff --git a/components/player/PlayerHistory.vue b/components/player/PlayerHistory.vue index b64ec95..a56f93c 100644 --- a/components/player/PlayerHistory.vue +++ b/components/player/PlayerHistory.vue @@ -26,6 +26,7 @@ const props = defineProps<{ const toast = useToast() +const info = ref('正在解析数据,请稍后') const gameInfo = ref(null as unknown as GameData) const teammates = ref([]) const enemies = ref([]) @@ -144,6 +145,7 @@ onMounted(async () => { toast.add({ title: "获取数据失败:" + err.message, }) + info.value = '获取数据失败:' + err.message console.log(err) }) } @@ -165,7 +167,7 @@ onMounted(async () => { class="w-3/5 rounded-lg shadow-sm p-5 border-dashed border border-blue-500 flex flex-col sm:flex-row justify-center items-center gap-2 sm:gap-0 text-center">
-
正在解析数据,请稍后
+
{{info}}
@@ -188,7 +190,7 @@ onMounted(async () => {
- +
diff --git a/components/player/PlayerInfoModal.vue b/components/player/PlayerInfoModal.vue index 446d0c3..fddd8d4 100644 --- a/components/player/PlayerInfoModal.vue +++ b/components/player/PlayerInfoModal.vue @@ -102,7 +102,7 @@ function getFRColorFromUtil(fr: number) {
-
+
{{getPersonalRateData(playerData.data.pr.pr).name}} {{playerData.data.pr.pr}}
diff --git a/components/player/PlayerShipInfoModal.vue b/components/player/PlayerShipInfoModal.vue index 840dc33..b35f658 100644 --- a/components/player/PlayerShipInfoModal.vue +++ b/components/player/PlayerShipInfoModal.vue @@ -149,8 +149,8 @@ function getFRColorFromUtil(fr: number) {
-