detail.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <div id="detail">
  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. <liveDetail></liveDetail>
  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 { mapState, createNamespacedHelpers } from 'vuex';
  20. import NavBar from '@/layout/common/topInfo.vue';
  21. import footInfo from '@/layout/common/footInfo.vue';
  22. import liveDetail from './parts/liveDetail.vue';
  23. export default {
  24. name: 'detail',
  25. props: {},
  26. components: {
  27. NavBar,
  28. // footInfo,
  29. liveDetail, //直播详情
  30. },
  31. data: function() {
  32. return {
  33. // 头部标题
  34. title: '',
  35. // meta为true
  36. isleftarrow: '',
  37. // 返回
  38. navShow: true,
  39. };
  40. },
  41. created() {
  42. console.log(this.user);
  43. },
  44. methods: {},
  45. computed: {
  46. ...mapState(['user']),
  47. },
  48. mounted() {
  49. this.title = this.$route.meta.title;
  50. this.isleftarrow = this.$route.meta.isleftarrow;
  51. },
  52. };
  53. </script>
  54. <style lang="less" scoped>
  55. .style {
  56. width: 100%;
  57. min-height: 667px;
  58. position: relative;
  59. background-color: #f9fafc;
  60. }
  61. .top {
  62. height: 46px;
  63. overflow: hidden;
  64. position: relative;
  65. z-index: 999;
  66. }
  67. .main {
  68. min-height: 570px;
  69. }
  70. .foot {
  71. position: absolute;
  72. bottom: 0;
  73. }
  74. </style>