You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
7 years ago
|
<template>
|
||
7 years ago
|
<page-layout :desc="desc" :title="title" :linkList="linkList">
|
||
|
<div slot="extra" class="extraImg">
|
||
|
<img :src="extraImage"/>
|
||
|
</div>
|
||
7 years ago
|
<transition name="page-toggle">
|
||
|
<router-view ref="page"/>
|
||
|
</transition>
|
||
7 years ago
|
</page-layout>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
7 years ago
|
import PageHeader from '../components/page/PageHeader'
|
||
7 years ago
|
import PageLayout from './PageLayout'
|
||
|
export default {
|
||
|
name: 'PageView',
|
||
|
components: {PageLayout, PageHeader},
|
||
|
data () {
|
||
|
return {
|
||
|
title: '',
|
||
7 years ago
|
desc: '',
|
||
|
linkList: [],
|
||
|
extraImage: ''
|
||
7 years ago
|
}
|
||
|
},
|
||
7 years ago
|
mounted () {
|
||
7 years ago
|
this.getPageHeaderInfo()
|
||
|
},
|
||
7 years ago
|
updated () {
|
||
7 years ago
|
this.getPageHeaderInfo()
|
||
|
},
|
||
|
methods: {
|
||
|
getPageHeaderInfo () {
|
||
|
this.title = this.$route.name
|
||
7 years ago
|
const page = this.$refs.page
|
||
7 years ago
|
if (page) {
|
||
|
this.desc = page.desc
|
||
|
this.linkList = page.linkList
|
||
|
this.extraImage = page.extraImage
|
||
|
}
|
||
7 years ago
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
7 years ago
|
<style lang="less" scoped>
|
||
|
.extraImg{
|
||
|
margin-top: -60px;
|
||
|
text-align: center;
|
||
|
width: 195px;
|
||
|
img{
|
||
|
width: 100%;
|
||
|
}
|
||
|
}
|
||
7 years ago
|
</style>
|