contInfo.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <div id="contInfo">
  3. <el-row>
  4. <el-col :span="24" class="contInfo">
  5. <el-col :span="24" class="top" :style="`border-color:${bordColor}`">
  6. <el-col :span="18" class="topTitle">
  7. <span :style="`border-color:${bordBottomColor};color:${color}`">{{ contInfos.parent }}</span>
  8. </el-col>
  9. <el-col :span="6" class="topBread">
  10. <el-breadcrumb separator-class="el-icon-arrow-right">
  11. <el-breadcrumb-item>当前位置:</el-breadcrumb-item>
  12. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  13. <el-breadcrumb-item>信息详细</el-breadcrumb-item>
  14. </el-breadcrumb>
  15. </el-col>
  16. </el-col>
  17. <el-col :span="24" class="info">
  18. <el-col :span="24" class="title">
  19. <span>{{ contInfos.title }}</span>
  20. </el-col>
  21. <el-col :span="24" class="fenTime">
  22. <el-col :span="4" class="date">信息来源:{{ contInfos.origin }} </el-col>
  23. <el-col :span="15" class="date">
  24. 发布时间:{{ contInfos.meta && contInfos.meta.createdAt ? new Date(contInfos.meta.createdAt).toLocaleDateString() : '' || '' }}
  25. </el-col>
  26. <el-col :span="5" class="fenxiang">
  27. <share></share>
  28. </el-col>
  29. </el-col>
  30. <el-col :span="24" class="images" v-if="contInfos.pic">
  31. <el-image style="width:800px;height:370px;" :src="contInfos.pic"></el-image>
  32. </el-col>
  33. <el-col :span="24" class="content">
  34. <p v-html="contInfos.content"></p>
  35. </el-col>
  36. </el-col>
  37. </el-col>
  38. </el-row>
  39. </div>
  40. </template>
  41. <script>
  42. import share from '@/layout/share.vue';
  43. export default {
  44. name: 'contInfo',
  45. props: {
  46. contInfos: null,
  47. bordColor: null,
  48. bordBottomColor: null,
  49. color: null,
  50. },
  51. components: {
  52. share,
  53. },
  54. data: () => ({
  55. title: '就业动态',
  56. }),
  57. created() {},
  58. computed: {},
  59. methods: {},
  60. };
  61. </script>
  62. <style lang="less" scoped>
  63. p {
  64. padding: 0;
  65. margin: 0;
  66. }
  67. .contInfo {
  68. min-height: 820px;
  69. margin: 40px 0 40px 0;
  70. border: 1px solid #e6e6e6;
  71. background-color: #ffffff;
  72. }
  73. .top {
  74. height: 40px;
  75. background-color: #f5f5f8;
  76. margin: 2px 2px 0 2px;
  77. border-bottom: 1px solid;
  78. width: 1264px;
  79. }
  80. .top .topTitle span {
  81. display: inline-block;
  82. height: 38px;
  83. line-height: 38px;
  84. text-align: center;
  85. font-size: 18px;
  86. border-bottom: 2px solid;
  87. }
  88. .top .topBread {
  89. padding: 12px 0;
  90. }
  91. .info .title {
  92. height: 70px;
  93. line-height: 70px;
  94. text-align: center;
  95. }
  96. .info .title span {
  97. font-size: 18px;
  98. color: #444444;
  99. }
  100. .info .fenTime {
  101. height: 38px;
  102. line-height: 38px;
  103. background-color: #eeeeee;
  104. margin: 0 0 15px 0;
  105. }
  106. .info .fenTime .fenxiang {
  107. height: 30px;
  108. line-height: 30px;
  109. padding: 0 20px;
  110. }
  111. .date {
  112. padding: 0 20px;
  113. }
  114. .images {
  115. text-align: center;
  116. }
  117. .content {
  118. padding: 10px 30px;
  119. }
  120. .content p {
  121. font-size: 16px;
  122. text-indent: 2rem;
  123. color: #333;
  124. line-height: 35px;
  125. }
  126. </style>