修复一个Uniapp蓝牙的坑,App首页蓝牙状态功能添加

This commit is contained in:
liub
2025-12-02 11:32:56 +08:00
parent 5fec8eff30
commit cd6d529523
4 changed files with 188 additions and 78 deletions

View File

@ -48,7 +48,7 @@
</view>
<view class="lblTitle">
<text>搜索设备</text>
<text>发现设备:{{deviceCnt}}</text>
<view @click="refreshBleList()">刷新</view>
</view>
<view class="lblTitle">
@ -163,7 +163,12 @@
}
},
computed: {
deviceCnt:function(){
let arr=this.EquipMents.filter(item=>{
return item.name.toLowerCase().indexOf(this.search.toLowerCase())>-1;
});
return arr.length;
}
},
onHide: function() {
this.Status.isPageHidden = true;