shaogen1995 2 年之前
父节点
当前提交
8b68f9337e
共有 3 个文件被更改,包括 4 次插入9 次删除
  1. 2 9
      SWKK/src/components/Hot.vue
  2. 1 0
      vue/src/views/Goods/components/Img.vue
  3. 1 0
      vue/src/views/Goods/components/Three.vue

+ 2 - 9
SWKK/src/components/Hot.vue

@@ -175,6 +175,7 @@ export default {
             },
             pagination: {
               el: ".swiper-pagination",
+              type: "fraction",
             },
             on: {
               slideChange: () => {
@@ -198,15 +199,7 @@ export default {
                     }, 200);
                   });
                 }
-                if (val === "audio") {
-                  let dom = document.querySelectorAll(
-                    ".Hot .swiper-pagination-bullet"
-                  );
-                  dom.forEach((v, i) => {
-                    if (v.className.includes("swiper-pagination-bullet-active"))
-                      this.audioIndex = i;
-                  });
-                }
+                if (val === "audio") this.audioIndex = this.Swiper.activeIndex;
               },
             },
           });

+ 1 - 0
vue/src/views/Goods/components/Img.vue

@@ -94,6 +94,7 @@ export default {
         },
         pagination: {
           el: ".swiper-pagination",
+          type: "fraction",
         },
       });
     }

+ 1 - 0
vue/src/views/Goods/components/Three.vue

@@ -305,6 +305,7 @@ export default {
     backdrop-filter: blur(4px);
     .model {
       opacity: 0;
+      pointer-events: none;
       border-bottom: 6px solid #cea763;
       border-top: 6px solid #cea763;
       position: absolute;