From b53dee2c4dbcae3a747798873034f6dab068d085 Mon Sep 17 00:00:00 2001 From: xce Date: Mon, 26 Jan 2026 16:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/control/index.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pages/control/index.vue b/pages/control/index.vue index 719559c..b8b18af 100644 --- a/pages/control/index.vue +++ b/pages/control/index.vue @@ -382,7 +382,27 @@ export default { } }) }, + testFunction() { + uni.showModal({ + title: '操作提示:', + content: '确定' + (status === 1 ? "运行" : "暂停") + '【' + this.selectedText + '】设备?', + cancelText: '取消', + confirmText: '确定', + success: (res) => { + if (res.confirm) { + // 组装消息 + this.message = JSON.stringify({[type]: status}) + // 控制设备 + this.publishMessage(); + // 设备回执 + this.deviceType = type; + //todo + // this.testAuto(type); + } + } + }) + }, makeSpecialData(msgData, tag) { const div10 = (v) => (v == null ? null : Math.round((Number(v)/10)*10)/10);