nebula/components/layouts/mobile/main.vue

56 lines
1008 B
Vue
Raw Normal View History

2020-06-19 17:10:44 +08:00
<template>
<el-container>
<el-header>
2020-07-03 11:04:25 +08:00
<header-view/>
2020-06-19 17:10:44 +08:00
</el-header>
<el-main>
2020-07-03 11:04:25 +08:00
<nuxt :nuxt-child-key="$route.name" />
2020-06-19 17:10:44 +08:00
</el-main>
2020-08-04 21:50:59 +08:00
<el-footer style="height: 6rem;">
2020-07-03 11:04:25 +08:00
<footer-view/>
2020-06-19 17:10:44 +08:00
</el-footer>
</el-container>
</template>
<script>
2020-07-03 11:04:25 +08:00
import { mapState } from 'vuex'
import HeaderView from "./header";
import FooterView from "./footer";
2020-06-19 17:10:44 +08:00
export default {
2020-07-03 11:04:25 +08:00
name: "MobileMain",
components: {
HeaderView,
FooterView
},
computed: {
...mapState('global', [])
}
2020-06-19 17:10:44 +08:00
}
</script>
<style scoped>
2020-07-03 11:04:25 +08:00
.el-header {
padding-bottom: 1rem;
background: #fff;
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
z-index: 80;
}
.el-main {
padding: 20px 0;
background-attachment: fixed;
2020-09-21 15:05:10 +08:00
min-height: 87.5vh;
2020-07-03 11:04:25 +08:00
overflow-x: hidden;
}
2020-06-19 17:10:44 +08:00
2020-07-03 11:04:25 +08:00
.el-footer {
2020-09-21 15:05:10 +08:00
position: relative;
2020-07-03 11:04:25 +08:00
width: 100%;
padding-top: 1rem;
background: #fff;
border-top: 1px solid rgba(0, 40, 100, 0.12);
z-index: 80;
}
2020-06-19 17:10:44 +08:00
</style>