🐛 修正星章计算逻辑

This commit is contained in:
BTMuli
2026-02-01 15:52:02 +08:00
parent 397f1b09a1
commit 6804b35043

View File

@@ -15,7 +15,7 @@
</div>
<div class="tuco-line3">
<TucTile :val="`${props.data.rent_cnt}次`" title="助演角色支援" />
<TucTile :title="`获得星章-${getMedalNum()}`" :val="props.data.get_medal_round_list" />
<TucTile :title="`获得星章-${props.data.medal_num}`" :val="props.data.get_medal_round_list" />
<TucTile :val="`${props.data.avatar_bonus_num}次`" title="场外声援" />
</div>
</div>
@@ -62,14 +62,6 @@ function getTime(): string {
const min = (props.fights.total_use_time - sec) / 60;
return `${min}${sec}`;
}
function getMedalNum(): string {
if (props.data.difficulty_id < 5) return props.data.medal_num.toString();
if (props.data.tarot_finished_cnt > 0) {
return `${props.data.medal_num + props.data.tarot_finished_cnt}(${props.data.medal_num}+${props.data.tarot_finished_cnt})`;
}
return props.data.medal_num.toString();
}
</script>
<style lang="css" scoped>
.tuco-box {