From b0ad119d1135bd09405e0edbfa5e6d7df50f4654 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Wed, 2 Mar 2022 16:26:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=8E=A7=E6=96=B0=E5=A2=9E=E5=AF=B9?= =?UTF-8?q?=E7=84=A6=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/tools/nas/NasManager.java | 4 ++++ web/html/body/nas/cctv.html | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yutou/tools/nas/NasManager.java b/src/main/java/com/yutou/tools/nas/NasManager.java index e07d23d..093ace4 100644 --- a/src/main/java/com/yutou/tools/nas/NasManager.java +++ b/src/main/java/com/yutou/tools/nas/NasManager.java @@ -338,6 +338,10 @@ public class NasManager { json.put("msg","已播放警告音频"); HttpTools.get("http://"+UpdateIp.nas_ip+":8000/door/audio_url.do?url=http%3A%2F%2F192.168.31.88%3A803%2Fwarning.mp3"); break; + case "af": + json.put("msg","已重新对焦"); + HttpTools.get("http://"+UpdateIp.nas_ip+":8000/door/af.do"); + break; } return json; } diff --git a/web/html/body/nas/cctv.html b/web/html/body/nas/cctv.html index 97a4cf1..f3520e3 100644 --- a/web/html/body/nas/cctv.html +++ b/web/html/body/nas/cctv.html @@ -42,6 +42,9 @@ + @@ -89,6 +92,9 @@ $('#warning').mouseup(function () { config('warning') }) + $('#af').mouseup(function () { + config('af') + }) function config(status) { $.post("/door/set.do", {status: status}, function (json) { @@ -144,18 +150,18 @@ width: 100%; height: 300px; margin-top: 10px; - margin-left: 15%; + margin-left: 1%; float: left; } .myVideo { width: 70%; - float: left; + float: right; } .myButtons { width: 30%; - float: right; + float: left; } .button {