|
|
|
@ -21,22 +21,11 @@
|
|
|
|
|
<div class="contain-grid">
|
|
|
|
|
<div v-for="item in gridItems" :key="item.id" class="grid-item">
|
|
|
|
|
<div class="grid-item-content">{{ item.content }}</div>
|
|
|
|
|
<div class="grid-item-footer">{{ item.footer }}</div>
|
|
|
|
|
<div class="grid-item-footer">{{ item.footer }} <span class="unit-name">{{ item.unit }}</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</view-title>
|
|
|
|
|
<!-- 底部 -->
|
|
|
|
|
<div class="contain-foot">
|
|
|
|
|
<div class="itemone">
|
|
|
|
|
<div><span>经度:</span>: <span>31</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="itemone">
|
|
|
|
|
<div><span>纬度:</span> <span>31</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="itemtwo">
|
|
|
|
|
<div><span>经度</span>: <span>31</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
@ -48,14 +37,14 @@ import { ModelCollada } from "vue-3d-model";
|
|
|
|
|
|
|
|
|
|
// 定义数据
|
|
|
|
|
const gridItems = [
|
|
|
|
|
{ id: 1, content: '-20', footer: '经度(°)' },
|
|
|
|
|
{ id: 2, content: '20', footer: '纬度(°)' },
|
|
|
|
|
{ id: 3, content: '20', footer: '高度(m)' },
|
|
|
|
|
{ id: 4, content: '20', footer: '偏航角(°)' },
|
|
|
|
|
{ id: 5, content: '20', footer: '水平速度(°)' },
|
|
|
|
|
{ id: 6, content: '20', footer: '垂直速度(m/s)' },
|
|
|
|
|
{ id: 7, content: '20', footer: '电量(%)' },
|
|
|
|
|
{ id: 8, content: '20', footer: '电池温度(°c)' },
|
|
|
|
|
{ id: 1, content: '-20', footer: '经度',unit:'(°)' },
|
|
|
|
|
{ id: 2, content: '20', footer: '纬度' ,unit:'(°)'},
|
|
|
|
|
{ id: 3, content: '20', footer: '高度' ,unit:'(m)'},
|
|
|
|
|
{ id: 4, content: '20', footer: '偏航角' ,unit:'(°)'},
|
|
|
|
|
{ id: 5, content: '20', footer: '俯仰角',unit:'(°)' },
|
|
|
|
|
{ id: 6, content: '20', footer: '滚转角',unit:'(°)' },
|
|
|
|
|
{ id: 7, content: '20', footer: '速度',unit:'km/h' },
|
|
|
|
|
{ id: 8, content: '20', footer: '电池电量',unit:''},
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
@ -96,7 +85,7 @@ const lights = [
|
|
|
|
|
];
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
<style lang="scss" scoped >
|
|
|
|
|
.panel-left {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
@ -115,8 +104,21 @@ const lights = [
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
/* background-color: #fff; */
|
|
|
|
|
border:1px solid #ccc;
|
|
|
|
|
background: url('../../../assets/images/state-bg.png');
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
.grid-item-content{
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
.grid-item-footer{
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
}
|
|
|
|
|
.unit-name{
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: #A2CBEA;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.contain-foot{
|
|
|
|
|
padding: .3rem 1rem;
|
|
|
|
|