|
|
@@ -137,7 +137,7 @@ import i18 from '@/utils/i18.js'
|
|
|
},
|
|
|
inputPwd(){
|
|
|
if(!this.pwd ){
|
|
|
- this.$modal.showToast(this.$t('buletooth.nopwd'));
|
|
|
+ this.$modal.showToast(this.$t('buletooth.errpwd'));
|
|
|
}else{
|
|
|
if(this.rightPwd && this.rightPwd === this.pwd){
|
|
|
this.loginSuccess();
|
|
|
@@ -173,7 +173,7 @@ import i18 from '@/utils/i18.js'
|
|
|
ecUI.hideLoading()
|
|
|
getPwd();
|
|
|
self.buleid = id;
|
|
|
- },5000)
|
|
|
+ },2000)
|
|
|
// uni.setStorageSync('blueid', id);
|
|
|
// ecBLE.stopBluetoothDevicesDiscovery();
|
|
|
//
|
|
|
@@ -271,6 +271,9 @@ import i18 from '@/utils/i18.js'
|
|
|
ecBLE.onBluetoothDeviceFound(res => {
|
|
|
// if(res.id==="EC:22:05:13:78:49")
|
|
|
// console.log(`id:${res.id},name:${res.name},rssi:${res.rssi}`)
|
|
|
+ if(!res.name.startsWith('BT_')){
|
|
|
+ return;
|
|
|
+ }
|
|
|
for (const item of deviceListData) {
|
|
|
if (item.id === res.id) {
|
|
|
item.name = res.name
|