From fd3a046ab3958641cbc1553abecfb9f275f3763f Mon Sep 17 00:00:00 2001 From: liub Date: Fri, 26 Sep 2025 15:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A8=E7=94=BB=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E5=9C=A8=E6=9F=90=E4=BA=9B=E6=9C=BA=E5=9E=8B=E4=B8=8A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/common/addBLE/addEquip.vue | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/manifest.json b/manifest.json index acb46c2..9c4cb37 100644 --- a/manifest.json +++ b/manifest.json @@ -62,7 +62,7 @@ "privacyDescription" : { "NSLocationWhenInUseUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常", "NSLocationAlwaysUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常", - "NSLocationAlwaysAndWhenInUseUsageDescription" : "App需要您的同意,才能始终访问位置", + "NSLocationAlwaysAndWhenInUseUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常", "NSBluetoothPeripheralUsageDescription" : "App需要您的同意访问蓝牙访问权限,用于设备通信与反向控制", "NSBluetoothAlwaysUsageDescription" : "App需要您的同意访问蓝牙访问权限,用于设备通信与反向控制", "NSPhotoLibraryUsageDescription" : "App需要您的同意访问相册,用于上传头像,设备开机画面", diff --git a/pages/common/addBLE/addEquip.vue b/pages/common/addBLE/addEquip.vue index 81554ce..e3ebd90 100644 --- a/pages/common/addBLE/addEquip.vue +++ b/pages/common/addBLE/addEquip.vue @@ -163,7 +163,7 @@ } }); //已连接过但没绑定过的设备 - let noDev=ble.data.LinkedList.filter(v=>{ + let noDev = ble.data.LinkedList.filter(v => { return !(v.device && v.device.id); }).map(v => { return { @@ -173,10 +173,10 @@ "localName": v.name, } }); - delArr=delArr.concat(noDev); - + delArr = delArr.concat(noDev); + console.log("可能搜不到的设备=", delArr); - this.EquipMents = delArr; + this.EquipMents = delArr; @@ -289,7 +289,7 @@ ble.subScribe(deviceId, false); //取消订阅消息 ble.DropDevice(deviceId); //从缓存中删除该设备 ble.disconnectDevice(deviceId); //断开与该设备的连接 - these.device.deviceMac=""; + these.device.deviceMac = ""; let index = this.PairEquip.findIndex(function(v) { return v.deviceId == deviceId; }); @@ -539,7 +539,10 @@ position: absolute; border-radius: 50%; background-color: #bbe60033; - animation: expand 3s infinite ease-out; + animation: expand 4s infinite ease-out; + display: inline-block; + transform: translate(-50%, -50%); + } .circle:nth-child(2) { @@ -555,14 +558,19 @@ width: 0; height: 0; opacity: 0.8; - transform: translate(-50%, -50%); + + } + + 50% { + opacity: 0.5; + /* 增加中间过渡 */ } 100% { width: 18.75rem; height: 18.75rem; - opacity: 0; - transform: translate(-50%, -50%); + opacity: 0.2; + } }