蓝牙设备添加断开重连提示

This commit is contained in:
liub
2026-02-13 16:58:11 +08:00
parent 1aa11a7a38
commit db8f14525b
11 changed files with 131 additions and 86 deletions

View File

@ -505,7 +505,11 @@
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -1196,7 +1196,11 @@
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -979,7 +979,11 @@
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -1087,7 +1087,11 @@
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -603,7 +603,11 @@ import request, { baseURL } from '@/utils/request.js';
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -585,7 +585,11 @@
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -566,7 +566,11 @@
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -617,7 +617,11 @@ import request, { baseURL } from '@/utils/request.js';
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -514,7 +514,11 @@ import request, { baseURL } from '@/utils/request.js';
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -634,7 +634,11 @@
return;
}
if (res.deviceId == these.formData.deviceId) {
if(res.device){
these.formData.bleStatu = 'connecting';
}else{
this.formData.bleStatu = false;
}
setTimeout(() => {
hideLoading(these, 1000);
});

View File

@ -9,8 +9,8 @@
</view>
<view slot="right">
<view class="navbarRight center">
<view class="imgContent" :class="{'visibilityHidden':Status.apiType!=item.apiType}" @click.stop="handleRightClick(item,index)"
v-for="item,index in Status.navbar.icons">
<view class="imgContent" :class="{'visibilityHidden':Status.apiType!=item.apiType}"
@click.stop="handleRightClick(item,index)" v-for="item,index in Status.navbar.icons">
<image class="img" :src="item.src" mode="aspectFit"></image>
<view class="baber" v-if="item.math">{{item.math>9?'9+':item.math}}</view>
</view>
@ -502,7 +502,12 @@ these.Status.apiType = data.apiType;
return;
}
if (res.deviceId == these.formData.deviceId) {
if (res.device) {
these.formData.bleStatu = 'connecting';
} else {
this.formData.bleStatu = false;
}
// 断开连接时先将充电状态复位,避免保持旧值
this.formData.statu = '未充电';
this.setBleFormData();