[AI Generated]: feat(*): 新增WiFi获取15秒超时静默重连、优化连接loading可控、修复setConfigSuccessful函数结构

This commit is contained in:
17792275749
2026-04-13 14:30:32 +08:00
parent f8957b0852
commit f63ebe0f36
5 changed files with 26 additions and 20 deletions
+4 -9
View File
@@ -108,13 +108,8 @@ Page({
connectedDevice(e) {
app.resetReconnectCount();
wx.showLoading({
title: "正在尝试连接...",
mask: true
});
this.setData({
progressNext: false
})
wx.showLoading({ title: "正在尝试连接...", mask: true });
this.setData({ progressNext: false });
let device = e.detail.device;
// 先断开旧连接再重新连接
ppScale.plugin.Blue.disconnect((disres) => {
@@ -170,14 +165,14 @@ Page({
setTimeout(() => {
const comp = this.selectComponent('#configureDevice3');
if (comp) comp.initWifi();
}, 1000);
}, 300);
}
// 进入步骤3(OTA升级)时,等待组件渲染完成后由父页面显式触发升级
if (newIndex === 3) {
setTimeout(() => {
const comp = this.selectComponent('#configureDevice4');
if (comp) comp.startOtaUpgrade();
}, 1000);
}, 300);
}
},