12 Commits
Author SHA1 Message Date
zhangyi 959244c03a update:更新新版个人训练结束播报 2026-07-31 10:32:45 +08:00
zhangyi 3a51142bd3 Merge branch 'feat-audio2' into test 2026-07-31 10:28:40 +08:00
zhangyi 07dc8a250c update:个人训练结束修改语音 2026-07-31 10:21:30 +08:00
zhangyi 970a9874b4 Merge branch 'test' 2026-07-16 16:41:16 +08:00
zhangyi b8c5f3dd91 Merge branch 'test' 2026-07-15 15:23:57 +08:00
zhangyi 6d1a910051 Merge branch 'test' 2026-07-15 09:55:37 +08:00
zhangyi 095884d7fc Merge branch 'fix-vip' 2026-07-06 11:16:52 +08:00
zhangyi a7897af861 Merge branch 'fix-vip' 2026-07-06 09:38:15 +08:00
zhangyi fd7c4b4bbf update:优化图片 2026-07-03 17:50:55 +08:00
zhangyi efb186d242 Merge branch 'test' 2026-07-03 17:49:40 +08:00
zhangyi 4ce2e6a7c4 Merge branch 'fix-bug' 2026-06-15 09:31:27 +08:00
zhangyi 52c5b9504a update:更新靶纸 2026-06-11 18:13:46 +08:00
5 changed files with 11 additions and 2 deletions
+3
View File
@@ -89,6 +89,8 @@ export const audioFils = {
"https://static.shelingxingqiu.com/attachment/2025-11-13/de7kzzllq0futwynso.mp3", "https://static.shelingxingqiu.com/attachment/2025-11-13/de7kzzllq0futwynso.mp3",
练习开始: 练习开始:
"https://static.shelingxingqiu.com/attachment/2025-11-14/de88w0lmmt43nnfmoi.mp3", "https://static.shelingxingqiu.com/attachment/2025-11-14/de88w0lmmt43nnfmoi.mp3",
练习结束:
"https://static.shelingxingqiu.com/shootmini/static/audio/%E7%BB%83%E4%B9%A0%E7%BB%93%E6%9D%9F.mp3",
射箭声音: 射箭声音:
"https://static.shelingxingqiu.com/shootaudio/v4/v4/%E7%AE%AD%E9%A3%9E%E8%A1%8C.mp3", "https://static.shelingxingqiu.com/shootaudio/v4/v4/%E7%AE%AD%E9%A3%9E%E8%A1%8C.mp3",
命中: 命中:
@@ -102,6 +104,7 @@ const AUDIO_WARM_PRIORITY_KEYS = [
"点击按钮", "点击按钮",
"比赛开始", "比赛开始",
"练习开始", "练习开始",
"练习结束",
"请开始射击", "请开始射击",
"轮到你了", "轮到你了",
"比赛结束", "比赛结束",
+5 -1
View File
@@ -46,6 +46,10 @@ const props = defineProps({
type: Function, type: Function,
default: () => {}, default: () => {},
}, },
endAudioKey: {
type: String,
default: "比赛结束",
},
}); });
const barColor = ref("#fed847"); const barColor = ref("#fed847");
@@ -144,7 +148,7 @@ async function onReceiveMessage(msg) {
halfTime.value = false; halfTime.value = false;
audioManager.play(audioKey); audioManager.play(audioKey);
} else if (msg.type === MESSAGETYPESV2.BattleEnd) { } else if (msg.type === MESSAGETYPESV2.BattleEnd) {
audioManager.play("比赛结束", false); audioManager.play(props.endAudioKey, false);
} else if (msg.type === MESSAGETYPESV2.ShootResult) { } else if (msg.type === MESSAGETYPESV2.ShootResult) {
let arrow = {}; let arrow = {};
if (msg.details && Array.isArray(msg.details)) { if (msg.details && Array.isArray(msg.details)) {
+1
View File
@@ -450,6 +450,7 @@ onBeforeUnmount(() => {
}`" }`"
:start="start" :start="start"
:onStop="onOver" :onStop="onOver"
end-audio-key="练习结束"
/> />
<view class="user-row"> <view class="user-row">
<Avatar :src="user.avatar" :size="35" /> <Avatar :src="user.avatar" :size="35" />
+1
View File
@@ -459,6 +459,7 @@ onBeforeUnmount(() => {
:start="start" :start="start"
:total="3600" :total="3600"
:onStop="onOver" :onStop="onOver"
end-audio-key="练习结束"
/> />
<view class="user-row"> <view class="user-row">
<Avatar :src="user.avatar" :size="35" /> <Avatar :src="user.avatar" :size="35" />
@@ -205,7 +205,7 @@ async function onReceiveMessage(msg) {
halfTime.value = false; halfTime.value = false;
audioManager.play("比赛开始"); audioManager.play("比赛开始");
} else if (msg.type === MESSAGETYPESV2.BattleEnd) { } else if (msg.type === MESSAGETYPESV2.BattleEnd) {
audioManager.play("比赛结束", false); audioManager.play("练习结束", false);
} else if (msg.type === MESSAGETYPESV2.ShootResult) { } else if (msg.type === MESSAGETYPESV2.ShootResult) {
// 精准训练由页面统一等待语音和飞箭结束,其他训练保持原播放链路。 // 精准训练由页面统一等待语音和飞箭结束,其他训练保持原播放链路。
if (props.externalShootResultAudio) return; if (props.externalShootResultAudio) return;