From 6bc78f76ad52fc0148a52f8b9520b2d01de0da65 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Thu, 11 Sep 2025 17:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E9=A1=B5=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8F=8C=E5=87=BB=E4=B8=8D=E6=94=BE=E5=A4=A7=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E6=BB=9A=E5=8A=A8=E6=9D=A1=E4=B8=9D=E6=BB=91=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/rvDriverAuthentication/auditList.vue | 12 ++++++++++++ src/views/rvDriverAuthentication/bankInfo.vue | 12 ++++++++++++ src/views/rvDriverAuthentication/carAudit.vue | 13 +++++++++++++ src/views/rvDriverAuthentication/carInfoAudit.vue | 14 +++++++++++++- src/views/rvDriverAuthentication/personAudit.vue | 14 +++++++++++++- 5 files changed, 63 insertions(+), 2 deletions(-) diff --git a/src/views/rvDriverAuthentication/auditList.vue b/src/views/rvDriverAuthentication/auditList.vue index 85f0d729..057796fa 100644 --- a/src/views/rvDriverAuthentication/auditList.vue +++ b/src/views/rvDriverAuthentication/auditList.vue @@ -74,6 +74,16 @@ // }, async mounted() { // await this.$onLaunched; + // 禁止双击放大 + let lastTouchEnd = 0; + document.addEventListener('touchend', (event) => { + const now = Date.now(); + if (now - lastTouchEnd <= 300) { + event.preventDefault(); // 阻止双击放大 + } + lastTouchEnd = now; + }, { passive: false }); + await this.refresh() }, methods: { @@ -130,6 +140,8 @@ padding-bottom: 80px; height: 100%; overflow-y: auto; + -webkit-overflow-scrolling: touch; /* 启用iOS惯性滚动 */ + scroll-behavior: smooth; /* 平滑滚动(部分浏览器支持) */ } .audit_list { padding: 20px 30px; diff --git a/src/views/rvDriverAuthentication/bankInfo.vue b/src/views/rvDriverAuthentication/bankInfo.vue index 58ac9a3f..7dd66918 100644 --- a/src/views/rvDriverAuthentication/bankInfo.vue +++ b/src/views/rvDriverAuthentication/bankInfo.vue @@ -67,6 +67,16 @@ } }, async mounted() { + // 禁止双击放大 + let lastTouchEnd = 0; + document.addEventListener('touchend', (event) => { + const now = Date.now(); + if (now - lastTouchEnd <= 300) { + event.preventDefault(); // 阻止双击放大 + } + lastTouchEnd = now; + }, { passive: false }); + // if(options?.show) { this.show = true // } @@ -140,6 +150,8 @@ .content{ height: 100%; overflow-y: auto; + -webkit-overflow-scrolling: touch; /* 启用iOS惯性滚动 */ + scroll-behavior: smooth; /* 平滑滚动(部分浏览器支持) */ } .navBar{ margin-bottom: 46px; diff --git a/src/views/rvDriverAuthentication/carAudit.vue b/src/views/rvDriverAuthentication/carAudit.vue index 0cc7f980..a8e8bf9d 100644 --- a/src/views/rvDriverAuthentication/carAudit.vue +++ b/src/views/rvDriverAuthentication/carAudit.vue @@ -101,6 +101,16 @@ } }, async mounted() { + // 禁止双击放大 + let lastTouchEnd = 0; + document.addEventListener('touchend', (event) => { + const now = Date.now(); + if (now - lastTouchEnd <= 300) { + event.preventDefault(); // 阻止双击放大 + } + lastTouchEnd = now; + }, { passive: false }); + // if(options?.show) { this.show = true // } @@ -198,8 +208,11 @@ background: #F4F5F7; } .content{ + height: 100%; overflow-y: auto; + -webkit-overflow-scrolling: touch; /* 启用iOS惯性滚动 */ + scroll-behavior: smooth; /* 平滑滚动(部分浏览器支持) */ } .navBar{ margin-bottom: 46px; diff --git a/src/views/rvDriverAuthentication/carInfoAudit.vue b/src/views/rvDriverAuthentication/carInfoAudit.vue index 40ce7146..88d0d785 100644 --- a/src/views/rvDriverAuthentication/carInfoAudit.vue +++ b/src/views/rvDriverAuthentication/carInfoAudit.vue @@ -195,6 +195,16 @@ } }, async mounted() { + // 禁止双击放大 + let lastTouchEnd = 0; + document.addEventListener('touchend', (event) => { + const now = Date.now(); + if (now - lastTouchEnd <= 300) { + event.preventDefault(); // 阻止双击放大 + } + lastTouchEnd = now; + }, { passive: false }); + // if(options?.show) { this.show = true // } @@ -384,9 +394,11 @@ margin-bottom: 46px; } .content { - /*padding-bottom: 86px;*/ + padding-bottom: 86px; height: 100%; overflow-y: auto; + -webkit-overflow-scrolling: touch; /* 启用iOS惯性滚动 */ + scroll-behavior: smooth; /* 平滑滚动(部分浏览器支持) */ } .carInfo .title { width: 100% !important; diff --git a/src/views/rvDriverAuthentication/personAudit.vue b/src/views/rvDriverAuthentication/personAudit.vue index 65c77462..2e15ad1b 100644 --- a/src/views/rvDriverAuthentication/personAudit.vue +++ b/src/views/rvDriverAuthentication/personAudit.vue @@ -92,7 +92,17 @@ } }, async mounted() { - this.show = true + // 禁止双击放大 + let lastTouchEnd = 0; + document.addEventListener('touchend', (event) => { + const now = Date.now(); + if (now - lastTouchEnd <= 300) { + event.preventDefault(); // 阻止双击放大 + } + lastTouchEnd = now; + }, { passive: false }); + + this.show = true if( this.show ) { await this.getDetail() } @@ -255,5 +265,7 @@ padding-bottom: 86px; height: 90%; overflow-y: auto; + -webkit-overflow-scrolling: touch; /* 启用iOS惯性滚动 */ + scroll-behavior: smooth; /* 平滑滚动(部分浏览器支持) */ }