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/view/config/menu/factoryTestView.js | 77 ++++++++++++++++++++++++++++++++++++++
1 files changed, 77 insertions(+), 0 deletions(-)
diff --git a/vf205_access/src/view/config/menu/factoryTestView.js b/vf205_access/src/view/config/menu/factoryTestView.js
new file mode 100644
index 0000000..661dc87
--- /dev/null
+++ b/vf205_access/src/view/config/menu/factoryTestView.js
@@ -0,0 +1,77 @@
+import dxui from "../../../../dxmodules/dxUi.js";
+import viewUtils from "../../viewUtils.js";
+import topView from "../../topView.js";
+import configView from "../configView.js";
+import i18n from "../../i18n.js";
+import screen from "../../../screen.js";
+const factoryTestView = {};
+factoryTestView.init = function () {
+ /**************************************************鍒涘缓灞忓箷*****************************************************/
+ const screenMain = dxui.View.build("factoryTestView", dxui.Utils.LAYER.MAIN);
+ factoryTestView.screenMain = screenMain;
+ screenMain.scroll(false);
+ screenMain.bgColor(0xffffff);
+ screenMain.on(dxui.Utils.ENUM.LV_EVENT_SCREEN_LOADED, () => {
+ topView.changeTheme(true);
+ });
+
+ const titleBox = viewUtils.title(
+ screenMain,
+ configView.screenMain,
+ "factoryTestViewTitle",
+ "factoryTestView.title"
+ );
+ titleBox.align(dxui.Utils.ALIGN.TOP_MID, 0, 70);
+
+ const factoryTestBox = dxui.View.build("factoryTestBox", screenMain);
+ viewUtils._clearStyle(factoryTestBox);
+ factoryTestBox.setSize(
+ screen.screenSize.width,
+ screen.screenSize.height - 140
+ );
+ factoryTestBox.align(dxui.Utils.ALIGN.TOP_MID, 0, 140);
+ factoryTestBox.bgColor(0xf7f7f7);
+ factoryTestBox.flexFlow(dxui.Utils.FLEX_FLOW.ROW_WRAP);
+ factoryTestBox.flexAlign(
+ dxui.Utils.FLEX_ALIGN.CENTER,
+ dxui.Utils.FLEX_ALIGN.START,
+ dxui.Utils.FLEX_ALIGN.START
+ );
+ factoryTestBox.obj.lvObjSetStylePadGap(
+ 10,
+ dxui.Utils.ENUM._LV_STYLE_STATE_CMP_SAME
+ );
+ factoryTestBox.padTop(10);
+ factoryTestBox.padBottom(10);
+
+ const calibrationBox = dxui.View.build("calibrationBox", factoryTestBox);
+ viewUtils._clearStyle(calibrationBox);
+ // calibrationBox.align(dxui.Utils.ALIGN.TOP_MID, 0, 150);
+ calibrationBox.setSize(560, 76);
+ // calibrationBox.bgColor(0xf7f7f7);
+ calibrationBox.bgColor(0xffffff);
+ calibrationBox.radius(10);
+ calibrationBox.on(dxui.Utils.ENUM.LV_EVENT_PRESSED, () => {
+ calibrationBox.bgColor(0xeaeaea);
+ });
+ calibrationBox.on(dxui.Utils.ENUM.LV_EVENT_RELEASED, () => {
+ calibrationBox.bgColor(0xffffff);
+ });
+
+ const titleLbl = dxui.Label.build("calibrationBox" + "Label", calibrationBox);
+ titleLbl.dataI18n = "factoryTestView.calibration";
+ titleLbl.align(dxui.Utils.ALIGN.LEFT_MID, 20, 0);
+ titleLbl.textFont(viewUtils.font(26));
+
+ const image = dxui.Image.build(calibrationBox.id + "Image", calibrationBox);
+ image.align(dxui.Utils.ALIGN.RIGHT_MID, -15, 0);
+ image.source("/app/code/resource/image/right.png");
+
+ calibrationBox.on(dxui.Utils.EVENT.CLICK, () => {
+ // dxui.loadMain(item.view.screenMain);
+ console.log(123);
+
+ });
+};
+
+export default factoryTestView;
--
Gitblit v1.9.3