优化蓝牙扫描动画看起来更平滑,安卓修改隐私和协议的链接

This commit is contained in:
liub
2026-02-09 16:07:03 +08:00
parent 8f211750b0
commit 63214ded3b
2 changed files with 31 additions and 31 deletions

View File

@ -2,7 +2,7 @@
"version" : "1", "version" : "1",
"prompt" : "template", "prompt" : "template",
"title" : "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://dmsapp.skf.com.cn/HummerService/Resource/Template/1765175615670.html\">《服务协议》</a>和<a href=\"https://dmsapp.skf.com.cn/HummerService/Resource/Template/1765176086420.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://cnxhyc.com/jquan/2026/02/09/80806c4209c74bd0a223415683ec300d.html\">《服务协议》</a>和<a href=\"https://cnxhyc.com/jquan/2026/02/09/4a4d05227c1242d1a505b98586704c39.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意", "buttonRefuse" : "暂不同意",
"hrefLoader" : "system", "hrefLoader" : "system",

View File

@ -481,7 +481,10 @@
} }
plus.android.requestPermissions( plus.android.requestPermissions(
['android.permission.BLUETOOTH','android.permission.BLUETOOTH_ADMIN','android.permission.ACCESS_FINE_LOCATION','android.permission.ACCESS_COARSE_LOCATION'], ['android.permission.BLUETOOTH', 'android.permission.BLUETOOTH_ADMIN',
'android.permission.ACCESS_FINE_LOCATION',
'android.permission.ACCESS_COARSE_LOCATION'
],
(result) => { (result) => {
if (result.granted && result.granted.length > 0) { if (result.granted && result.granted.length > 0) {
console.log('定位权限已授予'); console.log('定位权限已授予');
@ -533,11 +536,13 @@
return; return;
} }
} }
showLoading(these,{text:'正在刷新'}) showLoading(these, {
text: '正在刷新'
})
let time = null; let time = null;
let startSearch = () => { let startSearch = () => {
if(time!==null){ if (time !== null) {
clearTimeout(time); clearTimeout(time);
} }
@ -546,7 +551,7 @@
these.PairEquip = []; these.PairEquip = [];
ble.StartSearch().then(result => { ble.StartSearch().then(result => {
console.log("开始搜索成功",result); console.log("开始搜索成功", result);
}).catch(err => { }).catch(err => {
console.error("开始搜索失败:", err); console.error("开始搜索失败:", err);
@ -559,7 +564,7 @@
}); });
} }
}).finally(()=>{ }).finally(() => {
hideLoading(these); hideLoading(these);
}); });
}, 200); }, 200);
@ -905,11 +910,11 @@
position: absolute; position: absolute;
border-radius: 50%; border-radius: 50%;
background-color: #bbe60033; background-color: #bbe60033;
animation: expand 4s infinite ease-out;
display: inline-block; display: inline-block;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
border: 1rpx solid #bbe6003d; border: 1rpx solid #bbe6003d;
animation: expand 5s infinite ease-in-out; animation: expand 4s infinite ease-in-out;
} }
.circle:nth-child(2) { .circle:nth-child(2) {
@ -922,23 +927,18 @@
@keyframes expand { @keyframes expand {
0% { 0% {
width: 0; width: 0;
height: 0; height: 0;
opacity: 0.8; opacity: 0.9;
} }
80% {
width: 18.75rem;
height: 18.75rem;
opacity: 0.2;
}
100% {
width: 0.5rem; 100% {
height: 0.5rem; width: 18rem;
opacity: 0.5; height: 18rem;
} opacity: 0;
}
} }
.mainContent { .mainContent {