蓝牙设备添加断开重连提示
This commit is contained in:
@ -505,7 +505,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1196,7 +1196,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -979,7 +979,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1087,7 +1087,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -603,7 +603,11 @@ import request, { baseURL } from '@/utils/request.js';
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -585,7 +585,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -566,7 +566,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -617,7 +617,11 @@ import request, { baseURL } from '@/utils/request.js';
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -514,7 +514,11 @@ import request, { baseURL } from '@/utils/request.js';
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -634,7 +634,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if(res.device){
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
}else{
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
hideLoading(these, 1000);
|
hideLoading(these, 1000);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -9,8 +9,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view slot="right">
|
<view slot="right">
|
||||||
<view class="navbarRight center">
|
<view class="navbarRight center">
|
||||||
<view class="imgContent" :class="{'visibilityHidden':Status.apiType!=item.apiType}" @click.stop="handleRightClick(item,index)"
|
<view class="imgContent" :class="{'visibilityHidden':Status.apiType!=item.apiType}"
|
||||||
v-for="item,index in Status.navbar.icons">
|
@click.stop="handleRightClick(item,index)" v-for="item,index in Status.navbar.icons">
|
||||||
<image class="img" :src="item.src" mode="aspectFit"></image>
|
<image class="img" :src="item.src" mode="aspectFit"></image>
|
||||||
<view class="baber" v-if="item.math">{{item.math>9?'9+':item.math}}</view>
|
<view class="baber" v-if="item.math">{{item.math>9?'9+':item.math}}</view>
|
||||||
</view>
|
</view>
|
||||||
@ -502,7 +502,12 @@ these.Status.apiType = data.apiType;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res.deviceId == these.formData.deviceId) {
|
if (res.deviceId == these.formData.deviceId) {
|
||||||
|
if (res.device) {
|
||||||
|
these.formData.bleStatu = 'connecting';
|
||||||
|
} else {
|
||||||
this.formData.bleStatu = false;
|
this.formData.bleStatu = false;
|
||||||
|
}
|
||||||
|
|
||||||
// 断开连接时先将充电状态复位,避免保持旧值
|
// 断开连接时先将充电状态复位,避免保持旧值
|
||||||
this.formData.statu = '未充电';
|
this.formData.statu = '未充电';
|
||||||
this.setBleFormData();
|
this.setBleFormData();
|
||||||
|
|||||||
Reference in New Issue
Block a user