NoticeDetails.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div class="details-container">
  3. <div class="notice-header">
  4. <p class="title">
  5. <span class="content-title">关于开展2019年高新区智慧课堂第二次研讨活动的通知</span></p>
  6. <p class="sub">2019-04-11&nbsp;&nbsp;&nbsp;月月研讨&nbsp;&nbsp;&nbsp;点击量:96</p>
  7. </div>
  8. <div class="content" v-html="noticeContent">
  9. </div>
  10. <Button type="primary" @click="backList">返回列表</Button>
  11. </div>
  12. </template>
  13. <script>
  14. import noticeDetails from '@/static/noticeDetails.json'
  15. export default {
  16. components: {
  17. },
  18. data() {
  19. return {
  20. reviewAcList: [],
  21. attachmentsList: [],
  22. noticeContent: {}
  23. }
  24. },
  25. created() {
  26. this.$Spin.show();
  27. this.noticeContent = noticeDetails.data.content;
  28. },
  29. methods: {
  30. backList() {
  31. this.$router.go(-1);
  32. }
  33. },
  34. mounted() {
  35. setTimeout(() => {
  36. this.$Spin.hide();
  37. }, 500);
  38. }
  39. }
  40. </script>
  41. <style scoped>
  42. html, body, #app {
  43. height: 100% !important;
  44. user-select: none;
  45. }
  46. .main-content {
  47. background: rgb(248,248,248) !important;
  48. }
  49. .center-row {
  50. display:flex;
  51. flex-direction:row;
  52. }
  53. .center-col {
  54. display:flex;
  55. flex-direction:column;
  56. }
  57. .details-container {
  58. position:relative;
  59. width: 1200px;
  60. margin: 100px auto;
  61. padding:36px 30px 30px;
  62. background:#fff;
  63. display: flex;
  64. flex-direction: column;
  65. }
  66. .notice-header {
  67. text-align:center;
  68. }
  69. .notice-header .content-title {
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. white-space: nowrap;
  73. width: 600px;
  74. display: inline-block;
  75. font-size: 20px;
  76. color: #222;
  77. }
  78. .notice-header .sub {
  79. font-size: 14px;
  80. color: #999;
  81. padding-top: 12px;
  82. padding-bottom: 10px;
  83. margin-bottom: 24px;
  84. border-bottom: 1px solid #f6f6f6;
  85. }
  86. .details-container .ivu-btn {
  87. width:150px;
  88. margin:10px auto;
  89. }
  90. </style>