<template>
	<view class="device-detail">
		<!-- 自定义导航栏 -->
		<view class="tabback">
            <view class="rtjt" @click="btnback">←</view>
            <view class="name">蜂窝网络设置</view>
			<view style="width: 36rpx;"></view>
		</view>
		<view class="" style="width: 100%;font-size: 26rpx;color: #727272;padding-left: 32rpx;margin-top: 62rpx;">
			调制解调器设置
		</view>
        <view class="mckaiguan" style="margin-top: 32rpx;border: 0;">
        	<view class="lt">
        		蜂窝数据
        	</view>
        	<view class="rt">
        		<switch checked="true" color="#000000"/>
        	</view>
        </view>
		<view class="mckaiguan">
			<view class="lt">
				漫游
			</view>
			<view class="rt">
				<switch checked="true" color="#000000"/>
			</view>
		</view>
		<view class="mckaiguan">
			<view class="lt">
				忽略网络注册错误
			</view>
			<view class="rt">
				<switch checked="true" color="#000000"/>
			</view>
		</view>
		<view class="mckaiguan">
			<view class="lt">
				禁止与运营商的通信检查
			</view>
			<view class="rt">
				<switch checked="true" color="#000000"/>
			</view>
		</view>
		<view class="" style="width: 100%;font-size: 26rpx;color: #727272;padding-left: 32rpx;margin-top: 68rpx;">
			SIM卡
		</view>
		<view class="dlyanchi" @click="btnsim(1)">
			<view class="lt">
				<view class="">
					SIM1
				</view>
				<view class="" style="margin-top: 12rpx;color: #3D3D3D;">
				  未知号码
				</view>
			</view>
			<view class="rt">
				<image src="https://api.ccttiot.com/smartmeter/img/static/uBGHYzuIqjyZXGHiTT8q" mode=""></image>
			</view>
		</view>
		<view class="dlyanchi" @click="btnsim(1)" style="margin-top: 0;border-top: 1px solid #d8d8d8;">
			<view class="lt">
				<view class="">
					SIM2
				</view>
				<view class="" style="margin-top: 12rpx;color: #3D3D3D;">
				  未知号码
				</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()
			},
			// 点击sim跳转
			btnsim(){
				uni.navigateTo({
					url:'/pages/hubjihe/hubsim'
				})
			}
		}
	}
</script>

<style scoped lang="less">
	.mckaiguan{
		width: 750rpx;
		height: 116rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 32rpx;
		box-sizing: border-box;
		border-top: 1px solid #d8d8d8;
		.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>