页面调整

This commit is contained in:
kron
2025-07-11 12:03:55 +08:00
parent c2e9573100
commit 81c064ba8b
7 changed files with 82 additions and 25 deletions

View File

@@ -150,8 +150,8 @@ const simulShoot2 = async () => {
v-if="blueScores.length && showRoundTips && showLatestArrow"
class="round-tip fade-in-out"
:style="{
left: calcRealX(scores[scores.length - 1].x, 70),
top: calcRealY(scores[scores.length - 1].y, 100),
left: calcRealX(blueScores[blueScores.length - 1].x, 70),
top: calcRealY(blueScores[blueScores.length - 1].y, 100),
}"
>{{ blueScores[blueScores.length - 1].ring }}<text></text></view
>

View File

@@ -12,10 +12,6 @@ defineProps({
type: Array,
default: () => [],
},
done: {
type: Boolean,
default: false,
},
});
const rowCount = new Array(6).fill(0);
</script>
@@ -23,11 +19,11 @@ const rowCount = new Array(6).fill(0);
<template>
<view class="container">
<image
:style="{ opacity: done ? 1 : 0 }"
:style="{ opacity: scores.length === 12 ? 1 : 0 }"
src="../static/checked-green.png"
mode="widthFix"
/>
<image :src="avatar" mode="widthFix" />
<image :src="avatar || '../static/user-icon.png'" mode="widthFix" />
<text>{{ name }}</text>
<view>
<view>

View File

@@ -52,7 +52,7 @@ const rowCount = new Array(6).fill(0);
/>
<view v-if="rank > 3" class="rank-view">{{ rank }}</view>
<image
:src="avatar"
:src="avatar || '../static/user-icon.png'"
mode="widthFix"
:style="{ borderColor: topThreeColors[rank - 1] || '#fff' }"
/>

View File

@@ -57,16 +57,16 @@ onUnmounted(() => {
<text>{{ round }}轮射击结束</text>
<block v-if="!isFinal">
<view class="point-view1">
<text>本轮</text>
<text>本轮</text>
<text>{{
(roundData.redArrows || []).reduce(
(roundData.blueArrows || []).reduce(
(last, next) => last + next.ring,
0
)
}}</text>
<text></text>
<text></text>
<text>{{
(roundData.blueArrows || []).reduce(
(roundData.redArrows || []).reduce(
(last, next) => last + next.ring,
0
)