parent
677a4e0182
commit
4d6b9a743c
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,4 @@
|
||||
@font-face {
|
||||
font-family: "YouSheBiaoTiHei";
|
||||
src: url("./font/YouSheBiaoTiHei.ttf");
|
||||
}
|
Binary file not shown.
@ -1,31 +1,104 @@
|
||||
<template>
|
||||
<div class="map-container" id="mapContainer">
|
||||
<slot></slot>
|
||||
<div class="map-container" id="mapContainer">
|
||||
<div class="top-main">
|
||||
<div class="map-title">
|
||||
<span> 云航低空研训基地飞行控制中心</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted } from 'vue';
|
||||
import autofit from 'autofit.js'
|
||||
onMounted(()=>{
|
||||
//启用适配
|
||||
autofit.init({
|
||||
el:"#mapContainer",
|
||||
dh: 1080,
|
||||
dw: 1920,
|
||||
resize:true,
|
||||
})
|
||||
})
|
||||
<div class="bottom-box"></div>
|
||||
<div class="left-bg">
|
||||
<slot name="left"></slot>
|
||||
</div>
|
||||
<div class="right-bg">
|
||||
<slot name="right"></slot>
|
||||
</div>
|
||||
<div class="map-main">
|
||||
<slot name="map"></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</script>
|
||||
<script setup>
|
||||
import { onMounted } from "vue";
|
||||
import autofit from "autofit.js";
|
||||
onMounted(() => {
|
||||
//启用适配
|
||||
autofit.init({
|
||||
el: "#mapContainer",
|
||||
dh: 1080,
|
||||
dw: 1920,
|
||||
resize: true,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.map-container{
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
<style lang="scss" scoped>
|
||||
.map-container {
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
.map-main {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
</style>
|
||||
.top-main {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
height: 120px;
|
||||
background: url("@/assets/images/top-box.png");
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.map-title {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: url("@/assets/images/map-title.png") no-repeat top center;
|
||||
background-size: 100% cover;
|
||||
text-align: center;
|
||||
span {
|
||||
display: inline-block;
|
||||
letter-spacing: 2px;
|
||||
font-size: 40px;
|
||||
color: #ffffff;
|
||||
font-family: "YouSheBiaoTiHei";
|
||||
text-shadow: 2px 6px 4px #0e426c;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom-box {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
z-index: 200;
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
background: url("@/assets/images/bottom-box.png");
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.left-bg {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 200;
|
||||
height: 100%;
|
||||
width: 500px;
|
||||
background: url("@/assets/images/left-bg.png");
|
||||
background-size: 100% 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 120px 47px 67px 47px;
|
||||
}
|
||||
.right-bg {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
height: 100%;
|
||||
width: 500px;
|
||||
background: url("@/assets/images/right-bg.png");
|
||||
background-size: 100% 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 120px 47px 67px 47px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in new issue