BUG修复

This commit is contained in:
kron
2025-06-25 22:02:10 +08:00
parent 9090f06730
commit 0ea2d65e67
3 changed files with 7 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ const props = defineProps({
<text></text>
</view>
<ScorePanel
:completeEffect="false"
:rowCount="arrows.length === 12 ? 6 : 9"
:total="arrows.length"
:scores="arrows.map((a) => a.ring)"

View File

@@ -17,6 +17,10 @@ const props = defineProps({
type: Number,
default: 25,
},
completeEffect: {
type: Boolean,
default: true,
},
});
const items = ref(new Array(props.total).fill(9));
const width = ref(92);
@@ -47,7 +51,7 @@ onUnmounted(() => {
<template>
<view class="container">
<image
v-if="total > 0 && scores.length === total"
v-if="total > 0 && scores.length === total && completeEffect"
:src="bgImages[bgIndex]"
class="complete-light"
:style="{

View File

@@ -42,6 +42,7 @@ onLoad(async (options) => {
<text></text>
</view>
<ScorePanel
:completeEffect="false"
:rowCount="arrows.length === 12 ? 6 : 9"
:total="arrows.length"
:scores="arrows.map((a) => a.ring)"