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; /* 平滑滚动(部分浏览器支持) */ }