CommentSwiper.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div ref="mySwiper" v-swiper:mySwiper="swiperOption" class="swiper-container relative overflow-hidden w-full h-auto pt-24px pb-44px">
  3. <div class="swiper-pagination absolute text-center z-2">
  4. <span class="swiper-pagination-bullet swiper-pagination-bullet-active"></span>
  5. </div>
  6. <div class="swiper-wrapper flex relative w-268px h-full z-1">
  7. <div class="swiper-slide container relative w-268px h-auto">
  8. <HomeBlock>
  9. <img src="/images/home/mature_technology.png" alt="成熟的研发技术">
  10. <template slot="title">成熟的研发技术</template>
  11. <template slot="desc">拥有多年的技术积累,建立了完善的产品研发和迭代机制,为产品竞争力提供坚实保障。</template>
  12. </HomeBlock>
  13. </div>
  14. <div class="swiper-slide container relative w-268px h-auto">
  15. <HomeBlock>
  16. <img src="/images/home/full_pdf_transform.png" alt="全面的PDF和格式转换功能">
  17. <template slot="title">全面的PDF和格式转换功能</template>
  18. <template slot="desc">支持全面的PDF和转换功能,满足多样化需求,简单易用,企业替换、迁移无培训成本。</template>
  19. </HomeBlock>
  20. </div>
  21. <div class="swiper-slide container relative w-268px h-auto">
  22. <HomeBlock>
  23. <img src="/images/home/service_aftermarket.png" alt="优质的服务和售后保障体系">
  24. <template slot="title">优质的服务和售后保障体系</template>
  25. <template slot="desc">提供7*24小时的专业服务保障及技术支持,多种方式快速响应用户反馈, 解答疑问。</template>
  26. </HomeBlock>
  27. </div>
  28. <div class="swiper-slide container relative w-full h-auto">
  29. <HomeBlock>
  30. <img src="/images/home/intellectual_property.png" alt="自主知识产权">
  31. <template slot="title">自主知识产权</template>
  32. <template slot="desc">技术独立自主,符合国际标准, 帮助企业对接国际业务的同时,无需考虑版权风险。</template>
  33. </HomeBlock>
  34. </div>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. import { directive } from 'vue-awesome-swiper'
  40. import Dot from '~/assets/images/home/comment_dot.svg?inline'
  41. export default {
  42. directives: {
  43. swiper: directive
  44. },
  45. components: {
  46. Dot
  47. },
  48. props: ['comment'],
  49. data () {
  50. return {
  51. swiperOption: {
  52. slidesPerView: 'auto',
  53. centeredSlides: true,
  54. pagination: {
  55. el: '.swiper-pagination',
  56. clickable: true
  57. }
  58. }
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .swiper-container {
  65. .swiper-wrapper {
  66. -webkit-transition-property: -webkit-transform;
  67. transition-property: -webkit-transform;
  68. -o-transition-property: transform;
  69. transition-property: transform;
  70. transition-property: transform, -webkit-transform;
  71. -webkit-box-sizing: content-box;
  72. box-sizing: content-box;
  73. }
  74. .swiper-container-android .swiper-slide,
  75. .swiper-wrapper {
  76. -webkit-transform: translate3d(0px, 0, 0);
  77. transform: translate3d(0px, 0, 0);
  78. }
  79. .swiper-slide {
  80. -webkit-flex-shrink: 0;
  81. -ms-flex-negative: 0;
  82. flex-shrink: 0;
  83. -webkit-transition-property: -webkit-transform;
  84. transition-property: -webkit-transform;
  85. -o-transition-property: transform;
  86. transition-property: transform;
  87. transition-property: transform, -webkit-transform;
  88. margin-right: 16px;
  89. }
  90. }
  91. .swiper-container-horizontal > .swiper-pagination-bullets {
  92. bottom: 24px;
  93. left: 0;
  94. width: 100%;
  95. font-size: 0;
  96. ::v-deep .swiper-pagination-bullet {
  97. width: 8px;
  98. height: 4px;
  99. display: inline-block;
  100. margin: 0 2px;
  101. border-radius: 4px;
  102. background-color: #D8D8D8;;
  103. cursor: pointer;
  104. transition: width 0.3s;
  105. &.swiper-pagination-bullet-active {
  106. width: 27px;
  107. background: #1460F3;
  108. }
  109. }
  110. }
  111. .comment-item {
  112. display: flex;
  113. flex-direction: column;
  114. justify-content: space-between;
  115. width: 100%;
  116. height: 100%;
  117. max-width: 420px;
  118. margin: 0 auto;
  119. padding: 20px 20px 30px;
  120. background-color: #FFFFFF;
  121. box-shadow: 0px 0px 31px rgba(0, 0, 0, 0.104048);
  122. border-radius: 10px;
  123. }
  124. @media screen and (max-width: 929px) {
  125. .container {
  126. max-width: 575px;
  127. padding: 0;
  128. }
  129. }
  130. @media screen and (max-width: 575px) {
  131. .container {
  132. max-width: 320px;
  133. padding: 0;
  134. }
  135. }
  136. </style>