mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
🚸 修正月谕圣牌下的星章计算逻辑
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<div class="tuco-line3">
|
||||
<TucTile :val="`${props.data.rent_cnt}次`" title="助演角色支援" />
|
||||
<TucTile :title="`获得星章-${props.data.medal_num}`" :val="props.data.get_medal_round_list" />
|
||||
<TucTile :title="`获得星章-${getMedalNum()}`" :val="props.data.get_medal_round_list" />
|
||||
<TucTile :val="`${props.data.avatar_bonus_num}次`" title="场外声援" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -62,6 +62,14 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user