Ver código fonte

调整控制

wangxy 2 anos atrás
pai
commit
db33647b26
1 arquivos alterados com 19 adições e 1 exclusões
  1. 19 1
      components/course/course-baojia.vue

+ 19 - 1
components/course/course-baojia.vue

@@ -44,6 +44,8 @@
 </template>
 
 <script>
+import Swiper, {Autoplay} from 'swiper';
+Swiper.use([Autoplay]);
 export default {
   name: "course-baojia",
   props: {
@@ -60,6 +62,9 @@ export default {
       default: [],
     }
   },
+  components: {
+    mySwiper: Swiper
+  },
   computed: {
     curTag() {
       const tag = {
@@ -89,7 +94,20 @@ export default {
       btnTextDisabled: false,
       btnText: '获取验证码',
       countdown: 60, // 60秒倒计时
-      swiperOption: {},
+      swiperOption: {
+        autoplay: {
+          delay: 2000,
+        },
+        height: 28,
+        direction: 'vertical',
+        paginationClickable: true,
+        speed: 800,
+        loop: true,
+        observer: true,
+        observeParents: true,
+        autoplayDisableOnInteraction: false,
+        allowTouchMove: false,
+      },
       appKey: 'FFFF0N00000000007EC0',
     }
   },