1v1排位数据交互完善

This commit is contained in:
kron
2025-06-08 20:59:41 +08:00
parent 312906fec3
commit 80e0b07c0e
10 changed files with 232 additions and 84 deletions

View File

@@ -30,6 +30,10 @@ const props = defineProps({
type: Array,
default: () => [],
},
showE: {
type: Boolean,
default: true,
},
});
const showRoundTips = ref(false);
@@ -71,10 +75,14 @@ function calcRealY(num) {
<BowPower v-if="power > 0" :power="power" />
</view>
<view class="target">
<view v-if="scores.length && showRoundTips" class="e-value fade-in"
<view
v-if="scores.length && showRoundTips && showE"
class="e-value fade-in"
>经验 +1</view
>
<view v-if="scores.length && showRoundTips" class="round-tip fade-in"
<view
v-if="scores.length && showRoundTips && scores[scores.length - 1].ring"
class="round-tip fade-in"
>{{ scores[scores.length - 1].ring }}<text></text></view
>
<image
@@ -152,7 +160,6 @@ function calcRealY(num) {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.header > image:first-child {
width: 40px;