From e9154239e40ed2ac8ee25a862bef8378f43f0ca0 Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Mon, 13 Oct 2025 18:01:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=A4=E4=B8=AA=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=EF=BC=8C=E5=88=9D=E5=A7=8B=E5=8C=96=E7=95=8C=E9=9D=A2?=
=?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=8E=A7=E5=88=B6=E7=95=8C=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/device/device.js | 18 ++++++++++++++++++
page_user/deviceControl/deviceControl.vue | 13 +++++++++++++
pages.json | 7 +++++++
3 files changed, 38 insertions(+)
create mode 100644 page_user/deviceControl/deviceControl.vue
diff --git a/api/device/device.js b/api/device/device.js
index e7ff406..59006f0 100644
--- a/api/device/device.js
+++ b/api/device/device.js
@@ -20,3 +20,21 @@ export function bstDevice(data) {
},
});
}
+
+export function sendCommand(data) {
+ return request({
+ url: "/app/memorial/sendCommand",
+ method: "POST",
+ data: data,
+ });
+}
+
+export function getDeviceData(mac) {
+ return request({
+ url: "/app/memorial/getDeviceData",
+ method: "GET",
+ params: {
+ mac: mac,
+ },
+ });
+}
diff --git a/page_user/deviceControl/deviceControl.vue b/page_user/deviceControl/deviceControl.vue
new file mode 100644
index 0000000..bb787c0
--- /dev/null
+++ b/page_user/deviceControl/deviceControl.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index 1f817ad..b5afb2e 100644
--- a/pages.json
+++ b/pages.json
@@ -282,6 +282,13 @@
"style": {
"navigationBarTitleText": ""
}
+ },
+ {
+ "path" : "deviceControl/deviceControl",
+ "style" :
+ {
+ "navigationBarTitleText" : ""
+ }
}
]
}