2018-03-21 08:42:44 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="page-index-body">
|
2018-03-21 20:13:56 +08:00
|
|
|
<div class="page-index-body__logo">
|
|
|
|
|
<slot></slot>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="page-index-body__title">{{title}}</p>
|
|
|
|
|
<p class="page-index-body__sub-title dd-mt-0">{{subTitle}}</p>
|
2018-03-21 08:42:44 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2018-03-21 20:13:56 +08:00
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
title: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: false,
|
|
|
|
|
default: 'Title'
|
|
|
|
|
},
|
|
|
|
|
subTitle: {
|
|
|
|
|
type: String,
|
|
|
|
|
required: false,
|
|
|
|
|
default: 'subTitle'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
2018-03-21 08:42:44 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import '~@/assets/style/public.scss';
|
|
|
|
|
.page-index-header {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
.page-index-header__title {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 12px 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.page-index-body {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0px;
|
|
|
|
|
bottom: 0px;
|
|
|
|
|
left: 0px;
|
|
|
|
|
right: 0px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.page-index-body__logo {
|
2018-03-21 20:13:56 +08:00
|
|
|
img {
|
|
|
|
|
width: 200px;
|
|
|
|
|
}
|
2018-03-21 08:42:44 +08:00
|
|
|
}
|
|
|
|
|
.page-index-body__title {
|
|
|
|
|
color: $color-text-main;
|
|
|
|
|
}
|
|
|
|
|
.page-index-body__sub-title {
|
|
|
|
|
color: $color-text-sub;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|