diff --git a/pages/210/deviceControl/index.vue b/pages/210/deviceControl/index.vue
index c212ba5..c33f86e 100644
--- a/pages/210/deviceControl/index.vue
+++ b/pages/210/deviceControl/index.vue
@@ -16,14 +16,14 @@
-
+
{{deviceInfo.batteryPercentage}}%
电量
-
+
1小时
续航时间
@@ -55,41 +55,72 @@
+
+
+
+
-
+
-
+
灯光模式
{{ currentMainMode }}
-
-
-
-
- 激光模式
-
-
-
-
+
-
+
开机画面
上传
+
+
+
+
+ 自动报警
+
+
+
+
+
+
+
+ 手动报警
+
+
+
+
+
+
+
+ 报警声音
+ 上传
+
+
+
+
+
+
+
+ 报警时长
+ 2分30秒
+
+
+
+
-
+
人员信息登记
@@ -118,7 +149,7 @@
-
+
发送信息
@@ -129,19 +160,19 @@
-
+
产品信息
-
+
产品参数
-
+
操作说明
-
+
操作视频
@@ -622,12 +653,6 @@
});
}
})
- // const topic = `device/command/${this.deviceID}/message`;
- // this.mqttClient.publish(topic, this.messageToSend);
- // uni.showToast({
- // title: '消息已发送',
- // icon: 'success'
- // });
},
// 统一处理返回方法
handleDeviceData(res, isFromShared = false) {
@@ -646,14 +671,6 @@
uni.hideLoading()
}
},
- // 检查权限的方法
- hasPermission(permissionCode) {
- // 如果还在加载中,直接返回false
- if (this.pageLoading) return false
- // 如果不是分享设备,默认有全部权限
- if (!this.isSharedDevice) return true
- return this.activePermissions.includes(permissionCode)
- },
// 获取设备详情(普通详情)
async fetchDeviceDetail(id) {
try {
@@ -685,7 +702,7 @@
this.mqttClient.connect(() => {
console.log('MQTT 连接成功,开始订阅主题');
// 订阅来自设备的状态更新
- const statusTopic = `A/${this.itemInfo.nnnnnnnnnnnnnnnnnnn}`;
+ const statusTopic = `A/${this.itemInfo.id}`;
this.mqttClient.subscribe(statusTopic, (payload) => {
console.log(`收到来自 ${statusTopic} 的消息:`, payload);
// uni.showModal({
diff --git a/pages/6170/allShare/index.vue b/pages/6170/allShare/index.vue
index 4cdfb9d..024ce1b 100644
--- a/pages/6170/allShare/index.vue
+++ b/pages/6170/allShare/index.vue
@@ -41,7 +41,7 @@
ID:{{item.deviceImei}}
在线
- 电量:{{item.battery || '80'}}%
+ 电量:{{item.battery || '0'}}%
@@ -67,7 +67,7 @@