Ver Fonte

轮播图自动轮播

panhui há 5 anos atrás
pai
commit
ab12b47417

+ 5 - 1
src/main/pc/src/views/Brand.vue

@@ -112,7 +112,11 @@ export default {
         return {
             banners: [],
             bannerOPtions: {
-                autoplay: true,
+                autoplay: {
+                    delay: 3000,
+                    stopOnLastSlide: false,
+                    disableOnInteraction: false
+                },
                 speed: 600,
                 parallax: true,
                 // loop: true,

+ 5 - 1
src/main/pc/src/views/Product.vue

@@ -128,7 +128,11 @@ export default {
         return {
             banners: [],
             bannerOPtions: {
-                autoplay: true,
+                autoplay: {
+                    delay: 3000,
+                    stopOnLastSlide: false,
+                    disableOnInteraction: false
+                },
                 speed: 600,
                 parallax: true,
                 pagination: {

+ 5 - 1
src/main/pc/src/views/news/NewsMain.vue

@@ -37,7 +37,11 @@ export default {
         return {
             banners: [],
             bannerOPtions: {
-                autoplay: true,
+                autoplay: {
+                    delay: 3000,
+                    stopOnLastSlide: false,
+                    disableOnInteraction: false
+                },
                 speed: 600,
                 pagination: {
                     el: '.swiper-pagination',