From e491cdb48129752324c4e3764f99bd9203c56dec Mon Sep 17 00:00:00 2001
From: lgq <1015864684@qq.com>
Date: 星期二, 31 三月 2026 09:48:44 +0800
Subject: [PATCH] 1.新增VF205门禁机代码

---
 vf205_access/src/ui.js |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/vf205_access/src/ui.js b/vf205_access/src/ui.js
new file mode 100644
index 0000000..71ba065
--- /dev/null
+++ b/vf205_access/src/ui.js
@@ -0,0 +1,32 @@
+import ui from "../dxmodules/dxUi.js";
+import std from "../dxmodules/dxStd.js"
+
+// ui涓婁笅鏂�
+let context = {}
+
+// ui鍒濆鍖�
+ui.init({ orientation: 0 }, context);
+
+const screenMain = ui.View.build('mainView', ui.Utils.LAYER.MAIN)
+
+const bottomSnBtn = ui.Button.build('bottomSnBtn', screenMain)
+bottomSnBtn.bgColor(0xff0000)
+bottomSnBtn.bgOpa(20)
+bottomSnBtn.setSize(200, 100)
+bottomSnBtn.setPos(100, 700)
+
+
+bottomSnBtn.on(ui.Utils.EVENT.CLICK, () => {
+    print("passwordView")
+})
+
+// 鍔犺浇灞忓箷
+ui.loadMain(screenMain)
+
+// 鍒锋柊ui
+let timer = std.setInterval(() => {
+    if (ui.handler() < 0) {
+        std.clearInterval(timer)
+    }
+}, 1)
+

--
Gitblit v1.9.3