<template>
|
<div class="detailsHead">
|
<div class="droneName">小蓝工业园</div>
|
<div class="infoListBox">
|
<div v-for="item in infoList">
|
<div class="infoValue">{{ item.value }}</div>
|
<div class="infoTitle">{{ item.title }}</div>
|
</div>
|
</div>
|
<div class="controlBtn">
|
<el-icon class="refresh"><Refresh /></el-icon>
|
<div class="switchBtn" @click="switchBtn">
|
<div :class="{ open: open }">NO</div>
|
<div :class="{ open: !open }">OFF</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script setup>
|
import { Refresh } from '@element-plus/icons-vue'
|
|
const open = ref(true)
|
const switchBtn = () => {
|
open.value = !open.value
|
}
|
const infoList = [
|
{ title: '实时真高', value: '0' },
|
{ title: '绝对高度', value: '0' },
|
{ title: '水平速度', value: '0' },
|
{ title: '垂直速度', value: '0' },
|
{ title: '经度', value: '0' },
|
{ title: '纬度', value: '0' },
|
{ title: '4G信号', value: '0' },
|
{ title: 'SDR信号', value: '0' },
|
{ title: 'GPS搜星数', value: '0' },
|
{ title: 'RTK搜星数', value: '0' },
|
{ title: '距离机场', value: '0' },
|
{ title: '飞行时长', value: '0' },
|
{ title: '电池电量', value: '0' },
|
]
|
</script>
|
|
<style scoped lang="scss">
|
.detailsHead {
|
position: absolute;
|
top: 0;
|
z-index: 5;
|
width: 100%;
|
height: 68px;
|
background: rgb(0,0,0,.4); /* 半透明背景 */
|
backdrop-filter: blur(5px);
|
padding: 0 31px;
|
display: flex;
|
align-items: center;
|
|
.droneName {
|
width: 132px;
|
height: 42px;
|
background: rgba(74, 72, 72, 0.54);
|
box-shadow: 0px 4px 72px 0px rgba(0, 0, 0, 0.25);
|
border-radius: 8px 8px 8px 8px;
|
border: 1px solid rgba(255, 255, 255, 0.99);
|
font-family: Segoe UI, Segoe UI;
|
font-weight: normal;
|
font-size: 18px;
|
color: #ededed;
|
text-align: center;
|
line-height: 42px;
|
}
|
|
.infoListBox {
|
width: 0;
|
flex: 1;
|
display: flex;
|
align-items: center;
|
justify-content: space-around;
|
font-family: Segoe UI, Segoe UI;
|
font-weight: 400;
|
|
.infoValue {
|
font-size: 20px;
|
color: #ffffff;
|
line-height: 15px;
|
margin-bottom: 10px;
|
}
|
|
.infoTitle {
|
font-size: 12px;
|
color: #d2e8fa;
|
line-height: 15px;
|
}
|
}
|
|
.controlBtn {
|
width: 130px;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
|
.refresh{
|
color: white;
|
font-size: 30px;
|
cursor: pointer;
|
}
|
|
.switchBtn {
|
width: 70px;
|
height: 30px;
|
box-shadow: 2px 4px 20px 0px rgba(0, 13, 26, 0.23);
|
border-radius: 4px 4px 4px 4px;
|
border: 1px solid #ffffff;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
font-family: Segoe UI, Segoe UI;
|
font-weight: bold;
|
font-size: 14px;
|
line-height: 30px;
|
text-align: center;
|
color: #ffffff;
|
cursor: pointer;
|
|
> div {
|
width: 50%;
|
}
|
|
.open {
|
background: #ffffff;
|
color: #242424;
|
}
|
}
|
}
|
}
|
</style>
|