contextcm.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div id="policyrightcont">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="top">
  6. <el-col :span="12" class="txt">
  7. <span> {{ policyInfo.name }}</span>
  8. </el-col>
  9. <el-col :span="12" class="btn">
  10. <el-button type="primary" size="mini" @click="back()">返回</el-button>
  11. </el-col>
  12. </el-col>
  13. <el-col :span="24" class="infoMess">
  14. <el-col :span="24" class="title">
  15. {{ policyInfo.name }}
  16. </el-col>
  17. <el-col :span="24" class="infoDate">
  18. <p>
  19. <span>发布人:{{ policyInfo.user_name }}</span>
  20. <span>信息类型 {{ policyInfo.infotype }}</span>
  21. <span>发布时间: {{ policyInfo.meta && policyInfo.meta.createdAt ? new Date(policyInfo.meta.createdAt).toLocaleDateString() : '' || '' }}</span>
  22. </p>
  23. </el-col>
  24. <el-col v-if="policyInfo.picture" class="image">
  25. <el-image style="width:50%" :src="policyInfo.picture"></el-image>
  26. </el-col>
  27. <el-col :span="24" class="content">
  28. <p v-html="policyInfo.content"></p>
  29. </el-col>
  30. </el-col>
  31. </el-col>
  32. </el-row>
  33. </div>
  34. </template>
  35. <script>
  36. export default {
  37. name: 'policyrightcont',
  38. props: {
  39. columnTitle: null,
  40. policyInfo: null,
  41. },
  42. components: {},
  43. data: () => ({}),
  44. created() {},
  45. computed: {},
  46. methods: {
  47. back() {
  48. history.back(-1);
  49. },
  50. },
  51. };
  52. </script>
  53. <style lang="less" scoped>
  54. p {
  55. padding: 0;
  56. margin: 0;
  57. }
  58. .info {
  59. min-height: 800px;
  60. background-color: #fff;
  61. }
  62. .top {
  63. height: 60px;
  64. line-height: 60px;
  65. border-bottom: 1px solid #215299;
  66. }
  67. .top .txt span {
  68. display: inline-block;
  69. padding: 0 30px;
  70. background-color: #215299;
  71. color: #fff;
  72. }
  73. .top .btn {
  74. text-align: right;
  75. padding: 0 10px;
  76. }
  77. .infoMess {
  78. padding: 0 20px;
  79. }
  80. .infoMess .title {
  81. line-height: 30px;
  82. text-align: center;
  83. font-size: 16px;
  84. font-weight: bold;
  85. color: #000000;
  86. margin: 0 0 20px 0;
  87. }
  88. .infoDate {
  89. height: 36px;
  90. line-height: 36px;
  91. }
  92. .infoDate p {
  93. background: #eeeeee;
  94. margin: 0 105px;
  95. }
  96. .infoDate p span {
  97. font-size: 14px;
  98. color: #000;
  99. padding: 0 0 0 80px;
  100. }
  101. .infoMess .image {
  102. text-align: center;
  103. margin: 20px 0 0 0;
  104. }
  105. .content {
  106. padding: 0px 0 20px 0;
  107. }
  108. </style>