页面调整
This commit is contained in:
@@ -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
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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' }"
|
||||
/>
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user