content.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <div id="mainRight">
  3. <el-row>
  4. <el-col :span="24" class="mainRight">
  5. <el-col :span="24" class="top">
  6. <el-breadcrumb separator-class="el-icon-arrow-right">
  7. <el-breadcrumb-item :to="{ path: '/' }"><i class="el-icon-s-home"></i>网站首页</el-breadcrumb-item>
  8. <el-breadcrumb-item>导航一</el-breadcrumb-item>
  9. <el-breadcrumb-item>数据详情</el-breadcrumb-item>
  10. </el-breadcrumb>
  11. </el-col>
  12. <el-col :span="24" class="info">
  13. <el-col :span="24">
  14. <el-col :span="24" class="title">
  15. {{contentList.title}}
  16. </el-col>
  17. <el-col :span="24" class="time">
  18. 发布时间:{{contentList.publish_time}}
  19. </el-col>
  20. </el-col>
  21. <el-col :span="24" class="image">
  22. <el-image :src="contentList.pic" v-if="contentList.pic"></el-image>
  23. <el-col :span="24" v-else></el-col>
  24. </el-col>
  25. <el-col :span="24" class="content" v-html="contentList.content">
  26. </el-col>
  27. </el-col>
  28. </el-col>
  29. </el-row>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. name: 'mainRight',
  35. props: {
  36. contentList: null,
  37. },
  38. components: {},
  39. data: () => ({}),
  40. created() { },
  41. computed: {},
  42. methods: {},
  43. };
  44. </script>
  45. <style lang="less" scoped>
  46. .mainRight {
  47. min-height: 500px;
  48. background-color: rgba(255, 255, 255, 0.8);
  49. }
  50. .top {
  51. margin: 10px 15px;
  52. }
  53. /deep/.el-breadcrumb {
  54. font-size: 17px;
  55. }
  56. .fenxiang {
  57. height: 18px;
  58. margin: 10px 0;
  59. }
  60. .info .title {
  61. text-align: center;
  62. font-size: 29px;
  63. color: red;
  64. padding: 15px 0;
  65. }
  66. .info .time {
  67. text-align: center;
  68. color: #999;
  69. padding: 0 0 15px 0;
  70. font-size: 20px;
  71. }
  72. .info .image {
  73. text-align: center;
  74. }
  75. .info .content {
  76. font-size: 21px;
  77. color: #333;
  78. text-indent: 2rem;
  79. line-height: 40px;
  80. }
  81. </style>