Administrator 4 年之前
父节点
当前提交
4363a4a9e6

+ 10 - 13
src/main/resources/static/js/product/instruement.js

@@ -96,19 +96,16 @@
                         ,vis:5
                     });
                 } else {
-                    var swiper = new Swiper('#recommendBox', {
-                                slidesPerView: 2,
-                                slidesPerColumn: 2,
-                                spaceBetween: 0,
-                                slidesPerGroup: 2,
-                                autoplay: {
-                                    delay: 3000,
-                                    disableOnInteraction: false
-                                },
-                                pagination: {
-                                    el: '.swiper-pagination'
-                                }
-                            });
+                     var swiper = new Swiper('#recommendBox', {
+                        loop : true,
+                        autoplay: {
+                            delay: 3000,
+                            disableOnInteraction: false
+                        },
+                         pagination: {
+                            el: '.swiper-pagination'
+                          }
+                    });
 
                 }
             },500);

+ 1 - 1
src/main/resources/templates/product/instrument.html

@@ -508,7 +508,7 @@
                                              </div>
                                         </a>
                                     </div>
-                                   <div class="swiper-pagination mfc"><span v-if="isPC" v-for="i in page.floorImageList.length/5"></span></div>
+                                   <div class="swiper-pagination mfc"> <span v-if="isPC" v-for="i in page.floorImageList.length/5"></span></div>
                                 </div>
                              </div>
                         </template>