Merge branch 'feat-vip' into test

This commit is contained in:
2026-06-18 16:24:47 +08:00
70 changed files with 3253 additions and 410 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { ref, onMounted, onBeforeUnmount, watch, nextTick } from "vue";
import { ref, onMounted, onBeforeUnmount, watch, nextTick, computed } from "vue";
import { onLoad, onShow, onHide } from "@dcloudio/uni-app";
import Container from "@/components/Container.vue";
import BowTarget from "@/components/BowTarget.vue";
@@ -88,6 +88,10 @@ function startHalfRestCountdown(seconds = HALF_REST_SECONDS) {
halfRestRemain.value -= 1;
}, 1000);
}
const currentPlayer = computed(() =>
players.value.find((player) => String(player?.id) === String(user.value.id))
);
const isCurrentUserSvip = computed(() => currentPlayer.value?.sVip === true);
/**
* 监听设备在线状态,大乱斗比赛进行中设备离线时弹窗提示用户
@@ -304,6 +308,7 @@ onShow(async () => {
"
:totalRound="12"
:scores="playersScores.map((r) => r[user.id]).flat()"
:isSvip="isCurrentUserSvip"
:stop="halfRest"
/>
<view :style="{ paddingBottom: '20px' }">