From 88147f3783176ce753d2582810c595e8d423e6a8 Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Fri, 4 Sep 2026 11:39:18 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5956=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E8=BF=9B=E5=85=A5=E6=8B=9B?= =?UTF-8?q?=E5=95=86=E9=A1=B9=E7=9B=AE=E9=A1=B5=E9=9D=A2=EF=BC=8C=E8=BF=9E?= =?UTF-8?q?=E7=BB=AD=E7=82=B9=E5=87=BB=E5=A4=9A=E6=AC=A1=E6=8B=9B=E5=95=86?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=96=87=E4=BB=B6=EF=BC=8C=E9=98=85=E8=AF=BB?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=B7=A6=E6=BB=91=E8=BF=94=E5=9B=9E=E5=90=8E?= =?UTF-8?q?=E6=9C=89=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v4/views/attract/projectList.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/v4/views/attract/projectList.vue b/v4/views/attract/projectList.vue index ebcf627..208fe73 100644 --- a/v4/views/attract/projectList.vue +++ b/v4/views/attract/projectList.vue @@ -34,6 +34,7 @@ export default { pages: 0, // 总页数 list: [], os: '', + isClick: false, // 防止连续点击重复请求/跳转 pageKeyId: Object.freeze('investmentList') } }, @@ -41,6 +42,10 @@ export default { this.getOS() this.getData() }, + onShow() { + // 从文件阅读页返回时解锁,允许再次点击 + this.isClick = false + }, onReachBottom() { if (this.pages >= this.page) this.getData() }, @@ -67,6 +72,8 @@ export default { }) }, getDetail(id) { + if (this.isClick) return + this.isClick = true investmentInfo(id).then(({data}) => { const file = data.contents[0]; if (file.suffix === 'pdf' && this.os === 'android') { @@ -77,6 +84,8 @@ export default { url: '/pkg_common/views/pdf?path=' + encodeURI(path) + '&id=' + id }) } + }).catch(() => { + this.isClick = false }) }, viewPdf(url) { @@ -89,8 +98,10 @@ export default { fileType: 'pdf', success: result => { //成功 + this.isClick = false }, fail: err => { + this.isClick = false uni.showModal({ title: 'openDocument fail', content: JSON.stringify(err) @@ -99,6 +110,7 @@ export default { }) }, fail: err => { + this.isClick = false uni.showModal({ title: 'downloadFile fail', content: JSON.stringify(err)