feat:添加底部
This commit is contained in:
parent
50bc05ccff
commit
90e5ea4a6e
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
@ -2,10 +2,23 @@
|
|||||||
<section class="_contaioner">
|
<section class="_contaioner">
|
||||||
<custom-scroll-title class="header_titles" />
|
<custom-scroll-title class="header_titles" />
|
||||||
<section class="_content">
|
<section class="_content">
|
||||||
<router-view />
|
<router-view :style="{ transform: `scale(${scale})` }" />
|
||||||
</section>
|
</section>
|
||||||
|
<section class="_footer"></section>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import { ref, onMounted } from 'vue';
|
||||||
|
|
||||||
|
// onMounted(handleNewScale);
|
||||||
|
const scale = ref(1);
|
||||||
|
// function handleNewScale() {
|
||||||
|
// window.onresize = () => {
|
||||||
|
// scale.value = (window.innerWidth / 1920) * 1;
|
||||||
|
// console.log('scale', scale.value);
|
||||||
|
// };
|
||||||
|
// }
|
||||||
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
._contaioner {
|
._contaioner {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -13,11 +26,24 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
background: url('../assets/images/basic/containerBG.png') no-repeat center;
|
background: url('../assets/images/basic/containerBG.png') no-repeat center;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
overflow: hidden;
|
||||||
.header_titles {
|
.header_titles {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
._content {
|
._content {
|
||||||
height: calc(100vh - 60px);
|
height: calc(100vh - 60px);
|
||||||
|
overflow-y: auto;
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
._footer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 60px;
|
||||||
|
background: url('../assets/images/basic/footerBG.png');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -20,7 +20,7 @@ export const constantRoutes = [
|
|||||||
path: '/',
|
path: '/',
|
||||||
name: 'layout',
|
name: 'layout',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
// redirect: '/home',
|
redirect: '/home',
|
||||||
meta: { title: '首页', icon: 'House' },
|
meta: { title: '首页', icon: 'House' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user