<template>
	<view class="device-detail">
		<!-- 自定义导航栏 -->
		<view class="tabback">
            <view class="rtjt" @click="btnback">←</view>
            <view class="name">{{ $i18n.t('simSettings') }}</view>
			<view style="width: 36rpx;"></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">
	.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>