老版本最终版

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
+1 -1
View File
@@ -33,7 +33,7 @@
"style": "v2", "style": "v2",
"plugins": { "plugins": {
"ppScale-plugin": { "ppScale-plugin": {
"version": "0.0.23", "version": "0.0.24",
"provider": "wx0826af4e4908f524" "provider": "wx0826af4e4908f524"
} }
}, },
@@ -36,13 +36,21 @@ Component({
const timer = setTimeout(() => { const timer = setTimeout(() => {
wx.hideLoading(); wx.hideLoading();
this.setData({ wifiStatus: 'failed' }); this.setData({ wifiStatus: 'failed' });
// 延长时间 失败调用退出wifi配网
activeProtocol.dataExitWifiConfig((res) => {
console.log("dataExitWifiConfig", res)
})
}, 15000); }, 15000);
// 延时两秒后再调用接口 // 延时两秒后再调用接口
setTimeout(() => { setTimeout(() => {
activeProtocol.dataFindSurroundDevice((res) => { activeProtocol.dataFindSurroundDevice((res) => {
console.log("wifi列表", res)
clearTimeout(timer); clearTimeout(timer);
wx.hideLoading(); wx.hideLoading();
if (!Array.isArray(res)) { if (res.length === 0) {
activeProtocol.dataExitWifiConfig((res) => {
console.log("dataExitWifiConfig", res)
})
this.setData({ wifiStatus: 'failed' }); this.setData({ wifiStatus: 'failed' });
return; return;
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 408 KiB

+8
View File
@@ -59,5 +59,13 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: "/pages/help/help" url: "/pages/help/help"
}) })
},
onShareAppMessage() {
return {
title: '智能蓝牙秤',
path: '/pages/home/home',
imageUrl: '/images/share/share.jpg',
}
} }
}) })
+8
View File
@@ -78,5 +78,13 @@ Page({
} }
} }
}) })
},
onShareAppMessage() {
return {
title: '智能蓝牙秤',
path: '/pages/home/home',
imageUrl: '/images/share/share.jpg',
}
} }
}) })