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() {