更换WIFI

This commit is contained in:
17792275749
2025-05-29 13:43:16 +08:00
parent 3caf082c24
commit 1eb129e3bd
41 changed files with 1314 additions and 50 deletions
@@ -0,0 +1,37 @@
const app = getApp();
Component({
data: {
wifiList: []
},
// 生命周期方法
lifetimes: {
attached() {
},
detached() {
}
},
// 组件的方法
methods: {
getWiFiList() {
app.globalData.ppScale.activeProtocol.dataFindSurroundDevice((res) => {
console.log("connectedDevice ===》dataFindSurroundDevice", res);
this.setData({
wifiList: res
})
})
},
selectDevice(e) {
this.triggerEvent('wifiEvent', {
status: true,
data: e.currentTarget.dataset.item
});
}
}
});