Explorar o código

bugfix:修复滑块问题

leo hai 1 ano
pai
achega
ce1b57afe1

+ 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');