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;
|
|
|
|
min-height: 280px;
|
2020-08-04 21:50:59 +08:00
|
|
|
margin-bottom: 6rem;
|
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 {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
padding-top: 1rem;
|
|
|
|
padding-bottom: 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>
|