소스 검색

bugfix:修复滑块问题

leo 1 년 전
부모
커밋
ce1b57afe1
2개의 변경된 파일8개의 추가작업 그리고 10개의 파일을 삭제
  1. 8 3
      components/verifition/Verify/VerifySlide.vue
  2. 0 7
      pages/claimCloudPhone/components/bargainingAssistance.vue

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

@@ -238,9 +238,14 @@ export default {
         _this.end();
       });
 
-      window.addEventListener('touchmove', function (e) {
-        _this.move(e);
-      });
+      window.addEventListener(
+        'touchmove',
+        function (e) {
+          e.preventDefault();
+          _this.move(e);
+        },
+        { passive: false }
+      );
       window.addEventListener('mousemove', function (e) {
         _this.move(e);
       });

+ 0 - 7
pages/claimCloudPhone/components/bargainingAssistance.vue

@@ -404,13 +404,6 @@ 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');