瀏覽代碼

bugfix:修复滑块问题

leo 1 年之前
父節點
當前提交
e5042f6769

+ 0 - 3
components/verifition/Verify/VerifySlide.vue

@@ -239,11 +239,9 @@ export default {
       });
 
       window.addEventListener('touchmove', function (e) {
-        e.stopPropagation();
         _this.move(e);
       });
       window.addEventListener('mousemove', function (e) {
-        e.stopPropagation();
         _this.move(e);
       });
 
@@ -258,7 +256,6 @@ export default {
 
     // 鼠标按下
     start: function (e) {
-      e.stopPropagation();
       e = e || window.event;
       let x = null;
       if (!e.touches) {

+ 10 - 3
pages/claimCloudPhone/components/bargainingAssistance.vue

@@ -404,6 +404,13 @@ export default {
     lottie,
   },
   mounted() {
+    document.addEventListener(
+      'touchmove',
+      function (event) {
+        event.preventDefault();
+      },
+      { passive: false },
+    );
     if (sessionStorage.getItem('isAgreementBool')) {
       this.loginVisible = true;
       this.laoginData.phone = sessionStorage.getItem('invitedPhone');
@@ -1437,12 +1444,12 @@ export default {
       width: 284px;
       z-index: -1;
     }
-    .exit-glory{
+    .exit-glory {
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%) scale(1.5);
-      z-index: -2
+      z-index: -2;
     }
     .exit-content {
       position: absolute;
@@ -1681,7 +1688,7 @@ export default {
   margin-bottom: 24px !important;
 }
 
-.mask{
+.mask {
   z-index: 4000;
 }
 </style>