diff --git a/pages/210/historyRecords/index.vue b/pages/210/historyRecords/index.vue index b7c7a5b..b271e9c 100644 --- a/pages/210/historyRecords/index.vue +++ b/pages/210/historyRecords/index.vue @@ -48,7 +48,6 @@ white-space: nowrap; overflow: hidden; position: relative; - } .tab-container { @@ -56,14 +55,12 @@ cursor: pointer; margin-bottom: 40rpx; justify-content: space-between; - } .tab-item { font-size: 28rpx; padding: 0 30rpx; text-align: center; - } .active { diff --git a/pages/6170/allShare/index.vue b/pages/6170/allShare/index.vue index 91c9135..cadcdb2 100644 --- a/pages/6170/allShare/index.vue +++ b/pages/6170/allShare/index.vue @@ -17,7 +17,7 @@ {{ tabs[activeTab].name === '我的分享' ? `分享给“${group.sharedTo}”的设备` - : `来自“${group.sharedTo}”分享的设备` + : `来自“${group.othersharedTo}”分享的设备` }} {{editingGroup === groupIndex ? '完成' : '编辑'}} @@ -41,11 +41,9 @@ ID:{{item.deviceImei}} - 在线 + 在线 - 离线 + 离线 电量:{{item.battery || '0'}}% @@ -54,11 +52,6 @@ - - @@ -122,10 +115,12 @@ const groups = {}; this.deviceList.forEach(device => { // 这里假设device.sharedTo是分享目标的手机号 - const key = device.sharedTo || '未分享'; + const key = this.activeTab === 0 ? device.phonenumber : device.otherPhonenumber; + const displayName = this.activeTab === 0 ? device.phonenumber : device.otherPhonenumber; if (!groups[key]) { groups[key] = { - sharedTo: key, + sharedTo: displayName, // 显示用名称 + othersharedTo: displayName, // 显示用名称 devices: [] }; } @@ -218,7 +213,8 @@ const newDevices = res.rows.map(device => ({ ...device, showConfirm: false, - sharedTo: device.phonenumber || '未分享' + sharedTo: device.phonenumber, + othersharedTo: device.otherPhonenumber })); // 分页处理 if (this.page === 1) { diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index 6f5e6ff..bec848d 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -67,7 +67,7 @@ - + 设备强制报警中 - + + + @@ -285,7 +299,6 @@ lightModeSettings, //灯光模式设置 laserModeSettings, //激光模式设置 lightBrightnessSettings, //灯光亮度设置 - mapReverseGeocoding //地图逆解析 } from '@/api/6170/deviceControl.js' import { baseURL, @@ -379,6 +392,9 @@ this.lightModeB = false; this.lightModeC = false; }, + closeProgress() { + this.Progress.show = false; // 直接关闭进度条 + }, // *******定位****** gpsPosition(item) { // 添加调试日志 @@ -409,7 +425,6 @@ cardTouchMove(e) { if (!this.cardRect || e.touches.length === 0) return; - const deltaX = e.touches[0].clientX - this.touchStartX; const deltaY = e.touches[0].clientY - this.touchStartY; diff --git a/pages/6170/shareManagement/index.vue b/pages/6170/shareManagement/index.vue index 540b9e6..5466a96 100644 --- a/pages/6170/shareManagement/index.vue +++ b/pages/6170/shareManagement/index.vue @@ -86,7 +86,7 @@ }, getData(val) { let data = { - deviceid: val + deviceId: val } deviceShareList(data).then((res) => { if (res.code == 200) { diff --git a/pages/common/index/index.vue b/pages/common/index/index.vue index 1edd3cb..a898dee 100644 --- a/pages/common/index/index.vue +++ b/pages/common/index/index.vue @@ -31,7 +31,7 @@ + :style="{ border: item.communicationMode==0 && item.onlineStatus==0 ? '1px solid rgba(224, 52, 52, 1)' : 'none' }"> @@ -54,7 +54,7 @@ 报警中 + v-if="item.communicationMode==0 && item.onlineStatus==0">报警中 已连接 未连接 @@ -78,7 +78,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -112,9 +112,9 @@ - + - + @@ -123,9 +123,9 @@ - + - + @@ -304,13 +304,34 @@ scan() { this.showTooltip = !this.showTooltip; }, + closePopupTooltip() { + this.showTooltip = !this.showTooltip + this.showshare = !this.showshare + }, // 添加设备,扫一扫,蓝牙 handleMenuClick(item) { this.showTooltip = false; // 关闭弹窗 switch (item.action) { case 'scan': - uni.navigateTo({ - url: '/pages/common/scan/scan' + // uni.navigateTo({ + // url: '/pages/common/scan/scan' + // }); + // 扫一扫 + uni.scanCode({ + success: (res) => { + console.log('条码内容:' + res.result); + // 跳转并传递扫描结果 + uni.navigateTo({ + url: `/pages/common/qrcode/qrcode?deviceId=${encodeURIComponent(res.result)}` + }); + }, + fail: (err) => { + console.log('扫码失败', err); + uni.showToast({ + title: '扫码失败', + icon: 'none' + }); + } }); break; case 'bluetooth': @@ -519,7 +540,7 @@ return item; // 解析失败则返回原 item } const [deviceId, onlineStatus, battery] = messageData.state || []; - console.log('我收到消息了没',item.battery); + console.log('我收到消息了没', item.battery); return { ...item, battery: battery ?? item.battery, diff --git a/pages/common/login/index.vue b/pages/common/login/index.vue index 38380b5..3dd79b6 100644 --- a/pages/common/login/index.vue +++ b/pages/common/login/index.vue @@ -49,7 +49,6 @@ -