From 92a1c026441d569eba2b7f640ada2b78f01b9054 Mon Sep 17 00:00:00 2001 From: weizong song Date: Fri, 24 Jul 2026 07:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=89=8D?= =?UTF-8?q?=E7=AB=AF10M=E9=99=90=E5=88=B6=E6=8F=90=E5=8D=87=E5=88=B050M?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/payment/CreatePayment.vue | 8 ++++---- src/views/payment/IndirectPayment.vue | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/payment/CreatePayment.vue b/src/views/payment/CreatePayment.vue index 00678d8..80efe8a 100644 --- a/src/views/payment/CreatePayment.vue +++ b/src/views/payment/CreatePayment.vue @@ -517,7 +517,7 @@ @@ -2410,14 +2410,14 @@ const uploadHeaders = computed(() => { // 文件上传前验证 const beforeUpload = (file) => { const isValidType = ['image/jpeg', 'image/png', 'image/jpg', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'].includes(file.type) - const isLt10M = file.size / 1024 / 1024 < 10 + const isLt50M = file.size / 1024 / 1024 < 50 if (!isValidType) { ElMessage.error('只能上传 JPG/PNG/PDF/DOC/DOCX/XLS/XLSX 格式的文件!') return false } - if (!isLt10M) { - ElMessage.error('文件大小不能超过 10MB!') + if (!isLt50M) { + ElMessage.error('文件大小不能超过 50MB!') return false } return true diff --git a/src/views/payment/IndirectPayment.vue b/src/views/payment/IndirectPayment.vue index 64c57fb..1204077 100644 --- a/src/views/payment/IndirectPayment.vue +++ b/src/views/payment/IndirectPayment.vue @@ -288,7 +288,7 @@ @@ -1062,7 +1062,7 @@ @@ -4070,14 +4070,14 @@ const beforeUpload = (file) => { const fileExtension = file.name.split('.').pop()?.toLowerCase() const isValidType = validTypes.includes(file.type) || validExtensions.includes(fileExtension) - const isLt10M = file.size / 1024 / 1024 < 10 + const isLt50M = file.size / 1024 / 1024 < 50 if (!isValidType) { ElMessage.error('只能上传 JPG/PNG/PDF/DOC/DOCX/XLS/XLSX/PPT/PPTX/ZIP/RAR/CEBX/MP4 格式的文件!') return false } - if (!isLt10M) { - ElMessage.error('文件大小不能超过 10MB!') + if (!isLt50M) { + ElMessage.error('文件大小不能超过 50MB!') return false } return true