老版本最终版

This commit is contained in:
17792275749
2026-05-11 09:45:03 +08:00
parent 925977acef
commit 497b6d9a56
5 changed files with 26 additions and 2 deletions
@@ -36,13 +36,21 @@ Component({
const timer = setTimeout(() => {
wx.hideLoading();
this.setData({ wifiStatus: 'failed' });
// 延长时间 失败调用退出wifi配网
activeProtocol.dataExitWifiConfig((res) => {
console.log("dataExitWifiConfig", res)
})
}, 15000);
// 延时两秒后再调用接口
setTimeout(() => {
activeProtocol.dataFindSurroundDevice((res) => {
console.log("wifi列表", res)
clearTimeout(timer);
wx.hideLoading();
if (!Array.isArray(res)) {
if (res.length === 0) {
activeProtocol.dataExitWifiConfig((res) => {
console.log("dataExitWifiConfig", res)
})
this.setData({ wifiStatus: 'failed' });
return;
}