From 6ba4df49c15ce9e9b3b08d4bead8fb25f85f50a2 Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Wed, 1 Apr 2026 15:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/100J/HBY100-J.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pages/100J/HBY100-J.vue b/pages/100J/HBY100-J.vue index a28483f..c21712f 100644 --- a/pages/100J/HBY100-J.vue +++ b/pages/100J/HBY100-J.vue @@ -64,7 +64,7 @@ {{ deviceInfo && deviceInfo.longitude ? Number(deviceInfo.longitude).toFixed(4) : '' }} {{ deviceInfo && deviceInfo.latitude ? Number(deviceInfo.latitude).toFixed(4) : '' }} - + @@ -1097,6 +1097,7 @@ }); }); } else if (prevVoiceType === '7' && val !== '7' && val !== '-1') { + console.log('走到这里了没有'); // 从「播放语音」切到其它内置音色:先关播报;报警未开启时不走 forceAlarm,仅 UI 预选音色 const data = { deviceId: this.deviceInfo.deviceId, @@ -1105,14 +1106,16 @@ voiceStrobeAlarm: this.deviceInfo.voiceStrobeAlarm }; deviceVoiceBroadcast(data).then((res) => { + this.formData.sta_VoiceType = val if (res.code == 200) { uni.showToast({ - title: res.msg || '已切换', + title: res.msg, icon: 'none' }); + } else { uni.showToast({ - title: res.msg || '操作失败', + title: res.msg, icon: 'none' }); } @@ -1132,11 +1135,17 @@ const isClose = item === 0; // 与「已解除不再重复关报警」对称:已在报警中不再弹窗重复下发「开启」,未报警时不再重复「解除」 if (!isClose && this.deviceInfo.voiceStrobeAlarm === 1) { - uni.showToast({ title: '当前已在报警中', icon: 'none' }); + uni.showToast({ + title: '当前已在报警中', + icon: 'none' + }); return; } if (isClose && this.deviceInfo.voiceStrobeAlarm !== 1) { - uni.showToast({ title: '当前未在报警中', icon: 'none' }); + uni.showToast({ + title: '当前未在报警中', + icon: 'none' + }); return; } if (!this.Status) this.Status = {};