♻️ 提取剧诗Icon

This commit is contained in:
BTMuli
2025-10-08 12:05:51 +08:00
parent 41a144fec2
commit 651cbef0a0
7 changed files with 4 additions and 5 deletions

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -1,7 +1,7 @@
<template>
<div class="tucr-box">
<div class="tucr-title">
<img :src="`/icon/star/combat${getMedalIndex()}.webp`" alt="combat" />
<img :src="`/icon/combat/${getIcon()}.webp`" alt="combat" />
<span class="main" v-if="props.round.is_tarot">
圣牌挑战·{{ props.round.tarot_serial_no }}
</span>
@@ -32,9 +32,8 @@ import TucSub from "./tuc-sub.vue";
type TucRoundProps = { round: TGApp.Game.Combat.RoundData };
const props = defineProps<TucRoundProps>();
function getMedalIndex(): number {
if (!props.round.is_get_medal) return 0;
return props.round.is_tarot ? 2 : 1;
function getIcon(): string {
return `${props.round.is_tarot ? "tarot" : "star"}_${props.round.is_get_medal ? "1" : "0"}`;
}
</script>
<style lang="css" scoped>

View File

@@ -7,7 +7,7 @@
<slot name="text">{{ val }}</slot>
</div>
<div class="tuct-icons" v-else>
<img v-for="(v, idx) in val" :key="idx" :src="`/icon/star/combat${v}.webp`" :alt="`${v}`" />
<img v-for="(v, idx) in val" :key="idx" :src="`/icon/combat/star_${v}.webp`" :alt="`${v}`" />
</div>
</div>
</template>