You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
3.1 KiB

  1. <template>
  2. <!-- 图书馆简介 -->
  3. <div class="content-main introduction-main">
  4. <div class="nav-menu">
  5. <ul>
  6. <li :class="{ 'is-active': selectMenuIndex === 0 }" @click="selectMenuChange(0)">关于图书馆</li>
  7. <li :class="{ 'is-active': selectMenuIndex === 1 }" @click="selectMenuChange(1)">领导信息</li>
  8. </ul>
  9. </div>
  10. <div class="introduction-info" v-html="rawHtml">
  11. <!-- <div class="info-title">东西湖区图书馆服务简介</div>
  12. <div class="info-img">
  13. <img class="book-img" :src="item.img">
  14. </div>
  15. <div class="info-content">1978年区政府立项筹建新馆投资38万元1990年元月位于吴家山吴祁街19号的新馆大楼建成开放面积1,800平方米职工7人年拨经费30,000藏书36,000万册年订购报刊200余种2000年图书馆扩建馆舍面积增至2,075平方米事业经费25万元职工10人藏书13万册报刊305种已形成以收藏当代作家的著作手稿传略照片等文献资料为主的特色馆藏1993年秋该馆在湖北省武汉市作家协会的支持下联合创办国内第一所当代作家文献收藏中心1994年夏开设当代作家代表作签</div> -->
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import { libraryIntro } from '@/api/inquiryMachine'
  21. export default {
  22. name: 'LibraryIntroduction',
  23. data() {
  24. return {
  25. selectMenuIndex: 0,
  26. rawHtml: ''
  27. }
  28. },
  29. created() {
  30. this.getIntroductionInfo()
  31. },
  32. methods: {
  33. selectMenuChange(index) {
  34. this.selectMenuIndex = index
  35. this.getIntroductionInfo()
  36. },
  37. getIntroductionInfo() {
  38. let introType
  39. if (this.selectMenuIndex === 0) {
  40. introType = 1
  41. } else {
  42. introType = 2
  43. }
  44. libraryIntro({ introType: introType, libcode: this.libcode }).then(res => {
  45. console.log(res)
  46. this.rawHtml = res
  47. })
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. @import "~@/assets/styles/index.scss";
  54. .introduction-main {
  55. padding: 30px 40px;
  56. .nav-menu {
  57. background: #ffffff;
  58. width: 300px;
  59. ul {
  60. margin-top: 30px;
  61. li {
  62. height: 90px;
  63. font-size: 30px;
  64. font-family: Source Han Sans CN-Regular, Source Han Sans CN;
  65. font-weight: 400;
  66. line-height: 90px;
  67. text-align: center;
  68. margin-bottom: 20px;
  69. &:hover {
  70. background: #e4e4e4;
  71. }
  72. &.is-active {
  73. background: linear-gradient(
  74. 318deg,
  75. #38b8d9 0%,
  76. #5394f1 45%,
  77. #a0a9ef 100%
  78. );
  79. color: #ffffff;
  80. }
  81. }
  82. }
  83. }
  84. .introduction-info {
  85. margin-left: 30px;
  86. background: #ffffff;
  87. width: 1510px;
  88. .info-title {
  89. height: 100px;
  90. text-align: center;
  91. font-size: 38px;
  92. font-family: Source Han Sans CN-Regular, Source Han Sans CN;
  93. font-weight: 400;
  94. color: #333333;
  95. line-height: 100px;
  96. }
  97. .info-img {
  98. background: url("~@/assets/images/top.png") no-repeat center -5px;
  99. }
  100. }
  101. }
  102. </style>