update:房间新增vip特效

This commit is contained in:
2026-07-10 18:13:41 +08:00
parent 4b39107453
commit 1796d4aa40
5 changed files with 143 additions and 40 deletions
+12 -4
View File
@@ -43,6 +43,10 @@ const props = defineProps({
type: String,
default: "solo", // solo 单排,team 双排
},
missAsZero: {
type: Boolean,
default: false,
},
stop: {
type: Boolean,
default: false,
@@ -78,6 +82,12 @@ const instance = getCurrentInstance();
const ROUND_TIP_OFFSET_Y = -32;
const EXPERIENCE_TIP_OFFSET_Y = -68;
function getRoundText(shot) {
if (shot?.ringX) return "X环";
if (shot?.ring) return `${shot.ring}`;
return props.missAsZero ? "0环" : "未上靶";
}
function buildShotEffectKey(team, shot, index) {
return [
team,
@@ -433,8 +443,7 @@ onBeforeUnmount(() => {
v-if="latestOne"
class="round-tip fade-in-out"
:style="getRoundTipStyle(latestOne)"
>{{ latestOne.ringX ? "X" : latestOne.ring || "未上靶"
}}<text v-if="latestOne.ring"></text>
>{{ getRoundText(latestOne) }}
</view>
<view
v-if="
@@ -451,8 +460,7 @@ onBeforeUnmount(() => {
v-if="bluelatestOne"
class="round-tip fade-in-out"
:style="getRoundTipStyle(bluelatestOne)"
>{{ bluelatestOne.ringX ? "X" : bluelatestOne.ring || "未上靶"
}}<text v-if="bluelatestOne.ring">环</text></view
>{{ getRoundText(bluelatestOne) }}</view
>
<block v-for="(bow, index) in scores" :key="index">
<image