From 1732901bf9ce3127661dae08bec7b008d0dcab9b Mon Sep 17 00:00:00 2001 From: lld <15027638633@163.com> Date: Wed, 25 Feb 2026 13:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=A8=A1=E5=BC=8F=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/control/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pages/home/control/index.vue b/pages/home/control/index.vue index add4c79..660f697 100644 --- a/pages/home/control/index.vue +++ b/pages/home/control/index.vue @@ -480,7 +480,22 @@ export default { return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; }, confirmSwitch(e) { + const mode = e; + this.currentMode = !mode + var showTip = mode ? '自动模式':'手动模式'; + uni.showModal({ + title: '操作提示', + content: `确定将【${this.selectedText}】切换为${showTip}?`, + cancelText: '取消', + confirmText: '确定', + success: (res) => { + if (res.confirm) { + // todo 修改大棚模式 + this.currentMode = mode + } + } + }) } }, onHide() {