index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-col :span="24" class="top">
  6. <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
  7. </el-col>
  8. <el-col :span="24" class="main">
  9. 主体
  10. </el-col>
  11. <el-col :span="24" class="foot">
  12. <footInfo></footInfo>
  13. </el-col>
  14. </el-col>
  15. </el-row>
  16. </div>
  17. </template>
  18. <script>
  19. import NavBar from '@/layout/common/topInfo.vue';
  20. import footInfo from '@/layout/common/footInfo.vue';
  21. export default {
  22. name: 'index',
  23. props: {},
  24. components: {
  25. NavBar,
  26. footInfo,
  27. },
  28. data: () => ({
  29. // 头部标题
  30. title: '',
  31. // meta为true
  32. isleftarrow: '',
  33. // 返回
  34. navShow: true,
  35. }),
  36. created() {},
  37. computed: {},
  38. methods: {},
  39. mounted() {
  40. this.title = this.$route.meta.title;
  41. this.isleftarrow = this.$route.meta.isleftarrow;
  42. },
  43. };
  44. </script>
  45. <style lang="less" scoped>
  46. .style {
  47. width: 100%;
  48. min-height: 667px;
  49. position: relative;
  50. background-color: #f9fafc;
  51. }
  52. .top {
  53. height: 46px;
  54. overflow: hidden;
  55. }
  56. .main {
  57. min-height: 570px;
  58. }
  59. .foot {
  60. position: absolute;
  61. bottom: 0;
  62. }
  63. </style>