修复动画效果在某些机型上显示问题

This commit is contained in:
liub
2025-09-26 15:50:12 +08:00
parent 195b9df67c
commit fd3a046ab3
2 changed files with 18 additions and 10 deletions

View File

@ -62,7 +62,7 @@
"privacyDescription" : { "privacyDescription" : {
"NSLocationWhenInUseUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常", "NSLocationWhenInUseUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常",
"NSLocationAlwaysUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常", "NSLocationAlwaysUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "App需要您的同意,才能始终访问位置", "NSLocationAlwaysAndWhenInUseUsageDescription" : "App需要您的同意,访问位置,用于判定装备位置是否异常",
"NSBluetoothPeripheralUsageDescription" : "App需要您的同意访问蓝牙访问权限用于设备通信与反向控制", "NSBluetoothPeripheralUsageDescription" : "App需要您的同意访问蓝牙访问权限用于设备通信与反向控制",
"NSBluetoothAlwaysUsageDescription" : "App需要您的同意访问蓝牙访问权限用于设备通信与反向控制", "NSBluetoothAlwaysUsageDescription" : "App需要您的同意访问蓝牙访问权限用于设备通信与反向控制",
"NSPhotoLibraryUsageDescription" : "App需要您的同意访问相册,用于上传头像,设备开机画面", "NSPhotoLibraryUsageDescription" : "App需要您的同意访问相册,用于上传头像,设备开机画面",

View File

@ -163,7 +163,7 @@
} }
}); });
//已连接过但没绑定过的设备 //已连接过但没绑定过的设备
let noDev=ble.data.LinkedList.filter(v=>{ let noDev = ble.data.LinkedList.filter(v => {
return !(v.device && v.device.id); return !(v.device && v.device.id);
}).map(v => { }).map(v => {
return { return {
@ -173,7 +173,7 @@
"localName": v.name, "localName": v.name,
} }
}); });
delArr=delArr.concat(noDev); delArr = delArr.concat(noDev);
console.log("可能搜不到的设备=", delArr); console.log("可能搜不到的设备=", delArr);
this.EquipMents = delArr; this.EquipMents = delArr;
@ -289,7 +289,7 @@
ble.subScribe(deviceId, false); //取消订阅消息 ble.subScribe(deviceId, false); //取消订阅消息
ble.DropDevice(deviceId); //从缓存中删除该设备 ble.DropDevice(deviceId); //从缓存中删除该设备
ble.disconnectDevice(deviceId); //断开与该设备的连接 ble.disconnectDevice(deviceId); //断开与该设备的连接
these.device.deviceMac=""; these.device.deviceMac = "";
let index = this.PairEquip.findIndex(function(v) { let index = this.PairEquip.findIndex(function(v) {
return v.deviceId == deviceId; return v.deviceId == deviceId;
}); });
@ -539,7 +539,10 @@
position: absolute; position: absolute;
border-radius: 50%; border-radius: 50%;
background-color: #bbe60033; 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) { .circle:nth-child(2) {
@ -555,14 +558,19 @@
width: 0; width: 0;
height: 0; height: 0;
opacity: 0.8; opacity: 0.8;
transform: translate(-50%, -50%);
}
50% {
opacity: 0.5;
/* 增加中间过渡 */
} }
100% { 100% {
width: 18.75rem; width: 18.75rem;
height: 18.75rem; height: 18.75rem;
opacity: 0; opacity: 0.2;
transform: translate(-50%, -50%);
} }
} }