文字样式修改

This commit is contained in:
kron
2025-08-20 13:53:14 +08:00
parent 12dbe2d05b
commit 22a9fe56c0
5 changed files with 9 additions and 8 deletions

View File

@@ -22,8 +22,8 @@ watch(
() => tips.value,
(newVal) => {
let key = "";
if (newVal.includes("红队")) key = "请红方射";
if (newVal.includes("蓝队")) key = "请蓝方射";
if (newVal.includes("红队")) key = "请红方射";
if (newVal.includes("蓝队")) key = "请蓝方射";
if (key && sound.value) {
if (currentRoundEnded.value) {
currentRoundEnded.value = false;
@@ -56,7 +56,6 @@ async function onReceiveMessage(messages = []) {
currentSound.value = msg.target.ring
? `${msg.target.ring}`
: "未上靶";
console.log(currentSound.value);
audioManager.play(currentSound.value);
}
} else if (msg.constructor === MESSAGETYPES.AllReady) {

View File

@@ -51,8 +51,8 @@ watch(
() => props.tips,
(newVal) => {
let key = "";
if (newVal.includes("红队")) key = "请红方射";
if (newVal.includes("蓝队")) key = "请蓝方射";
if (newVal.includes("红队")) key = "请红方射";
if (newVal.includes("蓝队")) key = "请蓝方射";
if (key && sound.value) {
if (currentRoundEnded.value) {
currentRound.value += 1;

View File

@@ -63,7 +63,7 @@ onUnmounted(() => {
>
<view :style="{ display: 'flex', flexDirection: 'column' }">
<text :style="{ color: '#fed847' }">请预先射几箭测试</text>
<text>请确保射距离有5米</text>
<text>请确保射距离有5米</text>
</view>
</view>
</Guide>
@@ -83,7 +83,7 @@ onUnmounted(() => {
<text v-else>请调整站位</text>
</block>
<block v-else>
<text>大人请射箭</text>
<text>请射箭测试站距</text>
</block>
</view>
<!-- <view class="debug-text">{{ debugInfo }}</view> -->