123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <div id="dw-layout" :style="{height: pageH}" class="dw-layout-body" >
- <el-container style="padding: 0px;">
- <el-header height="80" style="padding: 0px;" >
- <dw-header-login></dw-header-login>
- </el-header>
- <el-container style="z-index: 1;">
- <el-container>
- <el-main style="padding: 20px 0px;" >
- <router-view></router-view>
- </el-main>
- <el-footer height="80" class="dw-footer-container"><dw-footer></dw-footer></el-footer>
- </el-container>
- </el-container>
- </el-container>
- </div>
- </template>
- <script>
- import DwHeader from '@/components/layouts/DwHeader.vue'
- import DwHeaderLogin from '@/components/layouts/DwHeaderLogin.vue'
- import DwNavMenu from '@/components/layouts/DwNavMenu.vue'
- import DwFooter from '@/components/layouts/DwFooter.vue'
- export default {
- name: 'Layout',
- components: {
- 'dw-nav-menu': DwNavMenu,
- 'dw-header': DwHeader,
- 'dw-header-login': DwHeaderLogin,
- 'dw-footer': DwFooter
- },
- data () {
- return {
- currentHeader: 'dw-header',
- pageH: '600px'
- }
- },
- mounted () {
- this.loginStatus()
- this.pageH = `${window.innerHeight}px`
- },
- methods: {
- loginStatus () {
- const fullPath = this.$route.fullPath
- if (fullPath.indexOf('login') >= 0) {
- this.currentHeader = 'dw-header-login'
- } else {
- this.currentHeader = 'dw-header'
- }
- }
- }
- }
- </script>
- <style scoped>
- body{
- background-color: #F1F1F1;
- /*#ffb25c*/
- }
- .dw-footer-container{
- position: fixed;
- bottom: 0px;
- width: 100%;
- text-align: center;
- background: #F1F1F1;
- padding-top: 20px;
- }
- .dw-layout-body{
- background-image: url("/static/diaowen/images/style-model/login_bg/1.jpg");
- -moz-background-size: auto 100%;
- background-size: auto 100%;
- background-repeat: no-repeat;
- }
- </style>
|