<template>
	<view class="device-detail">
		<app-top-push-notice />
		<!-- 自定义导航栏 -->
		<view class="tabback">
            <view class="rtjt" @click="btnback">←</view>
            <view class="name">{{ $i18n.t('ethernetSettings') }}</view>
			<view style="width: 36rpx;"></view>
		</view>
        <view class="mckaiguan">
        	<view class="lt">
        		{{ $i18n.t('connectViaEthernet') }}
        	</view>
        	<view class="rt">
        		<switch checked="true" color="#000000"/>
        	</view>
        </view>
		<view class="dlyanchi">
			<view class="lt">
				<view class="">
					{{ $i18n.t('connectionType') }}
				</view>
				<view class="" style="margin-top: 12rpx;color: #3D3D3D;">
				   {{ $i18n.t('dhcp') }} 
				</view>
			</view>
			<view class="rt">
				<image src="https://api.ccttiot.com/smartmeter/img/static/uBGHYzuIqjyZXGHiTT8q" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				xqobj:{}
			}
		},
		onLoad(option) {
			this.id = option.id
			this.getxq()
		},
		methods: {
			// 进行设备详情请求
			getxq(){
				this.$http.get(`/bst/device/detail?id=${this.id}`).then(res => {
					if(res.code == 200){
						this.xqobj = res.data
					}
				})
			},
            // 点击返回上一级
			btnback(){
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped lang="less">
	.mckaiguan{
		width: 750rpx;
		height: 116rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin-top: 32rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 32rpx;
		box-sizing: border-box;
		.lt{
			font-size: 30rpx;
			color: #3D3D3D;
		}
	}
	.dlyanchi{
		width: 750rpx;
		height: 164rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 32rpx;
		box-sizing: border-box;
		margin-top: 32rpx;
		.lt{
			view{
				font-size: 26rpx;
				color: #7F7F7F;
			}
		}
		.rt{
			image{
				width: 56rpx;
				height: 56rpx;
			}
		}
	}
	.tabback {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		height: 160rpx;
		padding: 0 20rpx;
		padding-top: 80rpx;
		box-sizing: border-box;
		position: fixed;
		top: 0;
		left: 0;
        z-index: 999 !important;
		background-color: #fff;
		.rtjt {
			font-size: 36rpx;
		}
	}
	.device-detail {
		padding-top: 150rpx;
		background-color: #F3F5F6;
		height: 100vh;
	}
</style>