1 Commits

Author SHA1 Message Date
kron
75c7df0e9c fix bug 2026-01-15 15:51:16 +08:00
2 changed files with 8 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ const onOver = async () => {
async function onReceiveMessage(messages = []) {
messages.forEach((msg) => {
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID && start.value) {
if (scores.value.length < total) {
scores.value.push(msg.target);
currentRound.value += 1;
@@ -109,7 +109,11 @@ onBeforeUnmount(() => {
</script>
<template>
<Container :bgType="1" title="个人单组练习" :showBottom="!start && !scores.length">
<Container
:bgType="1"
title="个人单组练习"
:showBottom="!start && !scores.length"
>
<view>
<TestDistance v-if="!practiseId" />
<block v-if="practiseId">

View File

@@ -46,7 +46,7 @@ const onOver = async () => {
async function onReceiveMessage(messages = []) {
messages.forEach((msg) => {
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID && start.value) {
if (scores.value.length < total) {
scores.value.push(msg.target);
if (practiseId && scores.value.length === total / 2) {
@@ -109,7 +109,7 @@ onBeforeUnmount(() => {
<ShootProgress
:tips="`请连续射${total}支箭`"
:start="start"
:total="360"
:total="0"
:onStop="onOver"
/>
<view class="user-row">