BookPage.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="book-container">
  3. <div class="swiper-content">
  4. <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
  5. <van-swipe-item>
  6. <img
  7. src="https://images.weserv.nl/?url=https://img1.doubanio.com/img/files/file-1739868345-0.jpg"
  8. />
  9. </van-swipe-item>
  10. <van-swipe-item>
  11. <img
  12. src="https://images.weserv.nl/?url=https://img1.doubanio.com/img/files/file-1739869022-0.jpg"
  13. />
  14. </van-swipe-item>
  15. </van-swipe>
  16. </div>
  17. <div class="nav-content">
  18. <van-grid :border="false" :clickable="true">
  19. <van-grid-item icon="fire" text="豆瓣经典" />
  20. <van-grid-item icon="shop-collect" text="家居生活" />
  21. <van-grid-item icon="photograph" text="外出旅行" />
  22. <van-grid-item icon="gift-card" text="文具小物" />
  23. </van-grid>
  24. </div>
  25. <div class="new-product"></div>
  26. <div class="type-product"></div>
  27. </div>
  28. </template>
  29. <style scoped>
  30. .my-swipe .van-swipe-item img {
  31. width: 100%;
  32. }
  33. .nav-content {
  34. border-bottom: .2rem solid #f9f9f9;
  35. }
  36. </style>
  37. <script>
  38. export default {
  39. mounted() {
  40. this.$emit("changePage", "1002");
  41. },
  42. };
  43. </script>