更换wifi添加loading

This commit is contained in:
17792275749
2025-05-29 14:43:32 +08:00
parent 2db6e46593
commit 472eeaad3e
3 changed files with 50 additions and 28 deletions
+15 -4
View File
@@ -55,7 +55,8 @@ Page({
app.globalData.ppScale.device.name = this.data.device.name;
app.globalData.ppScale.device.connection = this.data.device;
this.selectComponent('#replaceNetwork1Component').getWiFiList();
wx.hideLoading();
});
});
});
@@ -229,9 +230,15 @@ Page({
recentData: [],
}, (res) => {
if(res == 0) {
this.triggerEvent('deviceEvent', {
status: true
});
wx.showToast({
title: "用户信息更新成功。",
icon: "none"
})
setTimeout(() => {
wx.navigateBack({
delta: 1
})
}, 1500)
} else {
console.log("dataSyncUserInfo", res)
wx.showToast({
@@ -410,6 +417,10 @@ Page({
// 点击设备重连
connectedDevice() {
wx.showLoading({
title: "正在重新连接设备...",
mask: true
});
let device = this.data.device;
if(device) {
app.globalData.ppScale.plugin.Blue.createBLEConnection(device);