细节完善

This commit is contained in:
kron
2026-02-10 14:48:07 +08:00
parent b0bf1880e4
commit 88f1ef5d95
8 changed files with 31 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ const getRing = (arrow) => {
};
const arrows = computed(() => {
const data = new Array(props.total).fill({});
const data = new Array(props.total).fill({ ring: 0 });
(props.result.details || []).forEach((arrow, index) => {
data[index] = arrow;
});
@@ -78,8 +78,8 @@ const validArrows = computed(() => arrows.value.filter((a) => !!a.ring).length);
<image :src="tipSrc" mode="widthFix" />
<image src="../static/finish-frame.png" mode="widthFix" />
<text
>完成<text class="gold-text">{{ validArrows.length }}</text
>获得<text class="gold-text">{{ validArrows.length }}</text
>完成<text class="gold-text">{{ validArrows }}</text
>获得<text class="gold-text">{{ validArrows }}</text
>点经验</text
>
</view>
@@ -165,7 +165,7 @@ const validArrows = computed(() => arrows.value.filter((a) => !!a.ring).length);
</ScreenHint>
<BowData
:total="arrows.length"
:arrows="arrows"
:arrows="result.details"
:show="showBowData"
:onClose="() => (showBowData = false)"
/>