<template>
	<view >
		
	</view>
</template>

<script>
export default {
	data() {
		return {
			
		}
	},
	onLoad() {
		uni.startWifi({ //初始化wifi
			success: function(res) {
				console.log(res.errMsg + "11654");
				wx.getWifiList({ //成功后，就可以获取列表了
					success: function(res) {
						console.log(res);
						//列表获取成功后，要到事件里提取
						wx.onGetWifiList(function(res) {
							console.log("获取wifi列表");
							console.log(res.wifiList); //在这里提取列表数据
							that.wifiList = res.wifiList
						})
					}
				});
			},
			fail: function(err){
				console.log(err);
			}
		});
	},
	methods: {
		
	}
};
</script>

<style lang="scss" >
	
</style>
