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

View File

@@ -7,7 +7,7 @@
<slot name="text">{{ val }}</slot> <slot name="text">{{ val }}</slot>
</div> </div>
<div class="tuct-icons" v-else> <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>
</div> </div>
</template> </template>