post.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <div>
  3. <h1 class="tc m20" style="font-size: 2rem; color: #000000;">
  4. {{postInfo.title}}
  5. </h1>
  6. <div v-if="postInfo.postType=='交流互动'">
  7. <div class="rsx-bg rsx-bg-pc mt20">
  8. <p class="ldxx-tit">
  9. <img src="../../../static/images/ask-icon.png" alt="">
  10. <span class="barrier-free-text">来信详情</span>
  11. </p>
  12. <table class="xxdet_table xxdet_table1">
  13. <tbody>
  14. <tr>
  15. <td class="info-t b-free-read-leaf">信件标题:</td>
  16. <td colspan="3" ms-text="info.title">{{postInfo.title}}</td>
  17. </tr>
  18. <tr>
  19. <td class="info-t b-free-read-leaf">姓  名:</td>
  20. <td>{{postInfo.author}}</td>
  21. <td class="info-t b-free-read-leaf">受理单位:</td>
  22. <td class="b-free-read-leaf">福建鸿锵教育科技有限公司</td>
  23. </tr>
  24. <tr>
  25. <td class="info-t b-free-read-leaf">信件类型:</td>
  26. <td ms-text="info.chnlName">低压电工作业</td>
  27. <td class="info-t b-free-read-leaf" tabindex="0" barrier-free-leaf-idx="54">来信时间:</td>
  28. <td ms-text="info.postTime">{{postInfo.createTime}}</td>
  29. </tr>
  30. <tr>
  31. <td class="info-t b-free-read-leaf">信件内容:</td>
  32. <td colspan="3" ms-text="info.content">
  33. <span v-html="postInfo.subTitle"></span>
  34. </td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. <div class="rsx-bg rsx-bg-pc mt20">
  40. <p class="ldxx-tit">
  41. <img src="../../../static/images/reply-icon.png" alt="" barrier-free-idx="123">
  42. <span class="barrier-free-text">回复详情</span>
  43. </p>
  44. <p v-if="!postInfo.content" class="tc mt30 fs32 red-r"> 等待回复中 </p>
  45. <table v-else class="xxdet_table xxdet_table1">
  46. <tbody>
  47. <tr>
  48. <td class="info-t b-free-read-leaf">回复单位:</td>
  49. <td class="b-free-read-leaf">福建省住房和城乡建设厅</td>
  50. <td class="info-t b-free-read-leaf">回复时间:</td>
  51. <td>{{postInfo.replyTime}}</td>
  52. </tr>
  53. <tr barrier-free-idx="131">
  54. <td class="info-t b-free-read-leaf" barrier-free-idx="132" tabindex="0" barrier-free-leaf-idx="59">回复内容:</td>
  55. <td colspan="3">
  56. <span v-html="postInfo.content"></span>
  57. </td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. </div>
  62. </div>
  63. <div v-else>
  64. <h2 class="tc mt20" style="font-size: 30px;">
  65. 发布时间:{{postInfo.publishTime}}
  66. <span class="ml30 ng-binding">来源:{{postInfo.author}}</span>
  67. <span class="ml30 ng-binding">阅读数:{{postInfo.viewCount}}</span>
  68. </h2>
  69. <span v-html="postInfo.content" class="mt30 tl" style="margin-top: 1rem; margin-left: 1rem; white-space: pre-line;line-height: 2rem;"></span>
  70. </div>
  71. </div>
  72. </template>
  73. <script>
  74. export default {
  75. props: ['postInfo']
  76. }
  77. </script>
  78. <style>
  79. .post-item .el-form-item__label{
  80. color: #000000;
  81. }
  82. .ldxx-tit {
  83. padding-bottom: 14px;
  84. font-size: 20px;
  85. font-weight: bold;
  86. border-bottom: 3px #1658a0 solid;
  87. }
  88. .ldxx-tit img {
  89. margin-right: 14px;
  90. }
  91. .xl-main .myzj_xl_tit {
  92. margin-bottom: 10px;
  93. }
  94. .xxdet_table tbody tr td {
  95. border-bottom: 1px #e8e8e8 solid;
  96. padding: 18px 6px 18px 10px;
  97. border-left: 1px #e8e8e8 solid;
  98. line-height: 30px;
  99. }
  100. .xxdet_table tbody tr td.info-t {
  101. width: 12%;
  102. background: #f8f8f8;
  103. text-align: right;
  104. }
  105. </style>