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

42 lines
870 B

  1. <template>
  2. <div id="bookshelf">
  3. <HeaderTop />
  4. <!-- <div class="top-bg" /> -->
  5. <div class="bookshelf-header" style="height:120px">
  6. <router-link to="/">
  7. <span class="icon iconfont icon-l">&#xe631;</span>
  8. </router-link>
  9. <h2>热门图书</h2>
  10. </div>
  11. <BookList :bookdata="bookData" />
  12. <!-- <div class="book-main">
  13. </div> -->
  14. </div>
  15. </template>
  16. <script>
  17. import HeaderTop from '@/views/module/headerTop.vue'
  18. import BookList from '@/views/module/bookList.vue'
  19. import data1 from './data1.json'
  20. export default {
  21. name: 'HotBook',
  22. components: {
  23. HeaderTop,
  24. BookList
  25. },
  26. data() {
  27. return {
  28. bookData: null
  29. }
  30. },
  31. created() {
  32. this.bookData = data1.bookList
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. @import "~@/assets/styles/index.scss";
  38. </style>