第一版

This commit is contained in:
17792275749
2025-03-25 20:52:15 +08:00
commit 04d373b84e
88 changed files with 4539 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
const app = getApp();
Page({
data: {
wifiList: []
},
onLoad() {
this.initWifi();
},
initWifi() {
wx.showLoading({
title: "正在获取Wi-Fi列表...",
mask: true
});
app.globalData.ppScale.activeProtocol.dataFindSurroundDevice((res) => {
wx.hideLoading();
console.log("wifiList", res);
this.setData({
wifiList: res
})
})
},
openSetWifiPassword(e) {
let item = JSON.stringify(e.currentTarget.dataset.item);
wx.navigateTo({
url: "/pages/setWifiPassword/setWifiPassword?item=" + item
})
}
})