mainCard.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <swiper class="word-view-swiper-box" :indicator-dots="false" :autoplay="false" :circular="false">
  3. <swiper-item>
  4. <view class="swiper-item uni-bg-red">
  5. <learnContent :active-word="activeWord" :pageData="pageData" :active-words="activeWords"></learnContent>
  6. </view>
  7. </swiper-item>
  8. <swiper-item>
  9. <view class="swiper-item uni-bg-red">
  10. <pinPageVue :active-word="activeWord" :active-words="activeWords"></pinPageVue>
  11. </view>
  12. </swiper-item>
  13. <swiper-item>
  14. <view class="swiper-item uni-bg-blue">
  15. <readContent :active-word="activeWord" :pageData="pageData" :active-words="activeWords"></readContent>
  16. </view>
  17. </swiper-item>
  18. <swiper-item>
  19. <view class="swiper-item uni-bg-blue">
  20. <selectPageVue :active-word="activeWord" :active-words="activeWords"></selectPageVue>
  21. </view>
  22. </swiper-item>
  23. <swiper-item>
  24. <view class="swiper-item uni-bg-blue">
  25. <beiPageVue :active-word="activeWord" :active-words="activeWords"></beiPageVue>
  26. </view>
  27. </swiper-item>
  28. </swiper>
  29. </template>
  30. <script setup>
  31. import pinPageVue from './pinPage.vue';
  32. import selectPageVue from './selectPage.vue';
  33. import beiPageVue from './beiPage.vue';
  34. import learnContent from './learnContent.vue';
  35. import readContent from './readContent.vue';
  36. const props = defineProps({
  37. activeWord: {
  38. type: Object,
  39. },
  40. pageData: {
  41. type: Object,
  42. },
  43. activeWords: {
  44. type: Array
  45. },
  46. })
  47. </script>
  48. <style lang="scss" scoped>
  49. </style>