大数据展示系统-前端
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.

113 lines
2.9 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div id="bookshelf">
  3. <!-- <div class="top-bg" /> -->
  4. <HeaderTop />
  5. <div class="bookshelf-header">
  6. <h2>RFID智慧书架</h2>
  7. <span class="shelf-num">01</span>
  8. </div>
  9. <!-- 本架分类 -->
  10. <div class="book-category">
  11. <p>近代文学类</p>
  12. <p>古代文学类</p>
  13. </div>
  14. <!-- 智慧书架导航 -->
  15. <ul class="book-nav">
  16. <li>
  17. <img src="~@/assets/images/home/nav1.png">
  18. <p>图书检索</p>
  19. </li>
  20. <li @click="toHotBook">
  21. <img src="~@/assets/images/home/nav2.png">
  22. <p>热门图书</p>
  23. </li>
  24. <li @click="toAuthor">
  25. <img src="~@/assets/images/home/nav3.png">
  26. <p>作者推荐</p>
  27. </li>
  28. <li @click="toDigital">
  29. <img src="~@/assets/images/home/nav4.png">
  30. <p>数字资源</p>
  31. </li>
  32. <li>
  33. <img src="~@/assets/images/home/nav5.png">
  34. <p>场馆导航</p>
  35. </li>
  36. </ul>
  37. <!-- 本架图书 -->
  38. <div class="book-rack">
  39. <div class="list-top">
  40. <div class="list-top-title">
  41. <svg class="icon" aria-hidden="true">
  42. <use xlink:href="#icon-benjiatushu" />
  43. </svg>
  44. <p>本架图书</p>
  45. </div>
  46. <span class="more" @click="toCurrentRackMore">更多<i class="iconfont icon-zuo rotate" /></span>
  47. </div>
  48. <div class="rack-list">
  49. <BookListItem class="list-big" :list-data.sync="rackList" />
  50. <BookListItem class="list-middle" :list-data.sync="otherList" :is-other-book="true" />
  51. </div>
  52. </div>
  53. <!-- 新书推荐 -->
  54. <div class="book-rack new-recommend">
  55. <div class="list-top">
  56. <div class="list-top-title">
  57. <p>新书推荐</p>
  58. </div>
  59. <span class="more" @click="toNewBook">更多<i class="iconfont icon-zuo rotate" /></span>
  60. </div>
  61. <BookListItem class="list-small" :list-data="newList" :is-new-book="true" />
  62. </div>
  63. </div>
  64. </template>
  65. <script>
  66. import data from './data'
  67. import BookListItem from '@/views/module/bookListItem.vue'
  68. import HeaderTop from '@/views/module/headerTop.vue'
  69. export default {
  70. name: 'Home',
  71. components: {
  72. BookListItem,
  73. HeaderTop
  74. },
  75. data() {
  76. return {
  77. rackList: [], // 本架图书排行第一
  78. otherList: [], // 本架图书排行后两本
  79. newList: [] // 新书推荐
  80. }
  81. },
  82. created() {
  83. this.rackList = data.bookList.splice(0, 1)
  84. this.otherList = data.bookList.splice(-2)
  85. this.newList = data.newList
  86. },
  87. mounted() {
  88. },
  89. methods: {
  90. toCurrentRackMore() {
  91. this.$router.push('/CurrentRackBook')
  92. },
  93. toNewBook() {
  94. this.$router.push('/NewBook')
  95. },
  96. toHotBook() {
  97. this.$router.push('/HotBook')
  98. },
  99. toAuthor() {
  100. this.$router.push('/AuthorRecommend')
  101. },
  102. toDigital() {
  103. this.$router.push('/DigitalResource')
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="scss">
  109. @import "~@/assets/styles/index.scss";
  110. </style>