BUG修复
This commit is contained in:
@@ -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)"
|
||||||
|
|||||||
@@ -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="{
|
||||||
|
|||||||
@@ -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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user