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> <text></text>
</view> </view>
<ScorePanel <ScorePanel
:completeEffect="false"
:rowCount="arrows.length === 12 ? 6 : 9" :rowCount="arrows.length === 12 ? 6 : 9"
:total="arrows.length" :total="arrows.length"
:scores="arrows.map((a) => a.ring)" :scores="arrows.map((a) => a.ring)"

View File

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

View File

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