<template>
	<view class="detail">
		<view class="de-t1">{{wifiDetail.ssid?wifiDetail.ssid:"未知"}}</view>
		
		<!-- 设备状态 -->
		<view class="de-label">
			wifi基本信息 
		</view>
		
		<view class="de-lic" style="margin-bottom: 60rpx;">
			<view class="de-lic-li line">
				<view class="de-lic-1">网络名称</view>
				<view class="de-lic-2">{{wifiDetail.ssid?wifiDetail.ssid:"未知"}}</view>
			</view>
			<view class="de-lic-li line">
				<view class="de-lic-1">信号强度</view>
				<view class="de-lic-2">{{wifiDetail.rssi+"dbm"}}</view>
			</view>
			<view class="de-lic-li line">
				<view class="de-lic-1">互联网访问</view>
				<view class="de-lic-2">{{wifiDetail.connect==1?'是':'否'}}</view>
			</view>
			<view class="de-lic-li line">
				<view class="de-lic-1">ip地址</view>
				<view class="de-lic-2">{{wifiDetail.ip}}</view>
			</view>
			<view class="de-lic-li line">
				<view class="de-lic-1">本机MAC</view>
				<view class="de-lic-2">{{wifiDetail.mac}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wifiDetail : "",//{"on":1,"ssid":"","connect":0,"rssi":-128,"ip":"","mac":"08f80d201958"}
			}
		},
		onLoad() {
			this.wifiDetail = uni.getStorageSync("wifiDetail")
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.detail {
		background-color: #F1F2F4;
		min-height: 100vh;
		width: 100%;
		box-sizing: border-box;
		padding: 40rpx 28rpx 0;
		
		.de-t1 {
			background: #FFFFFF;
			border-radius: 12rpx;
			padding: 24rpx 28rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 28rpx;
			color: #333333;
			box-sizing: border-box;
		}
		
		.de-label {
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 40rpx;
			font-weight: 400;
			font-size: 24rpx;
			color: #666666;
			text {
				font-weight: 400;
				font-size: 28rpx;
				color: #2671E2;
				margin-left: auto;
				transform: translateY(2rpx);
			}
		}
		
		.de-lic {
			box-sizing: border-box;
			padding: 0 28rpx;
			background: #FFFFFF;
			border-radius: 12rpx;
			margin-top: 20rpx;
			.de-lic-li {
				height: 84rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				.de-lic-1 {
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
				}
				.de-lic-2 {
					font-weight: 400;
					font-size: 26rpx;
					color: #666;
					margin-left: auto;
				}
				image {
					width: 28rpx;
					height: 28rpx;
					margin-left: 8rpx;
				}
			}
			
			.line {
				border-bottom: 1rpx dashed #f5f5f5;
			}
		}
	}
</style>
