From d75bff5b9c6519b5b5f59af6db017c626c09a709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A6=85=E9=A5=BC?= <2815246336@qq.com> Date: Thu, 4 Sep 2025 20:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=9B=BE=E7=89=87=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work/inspection/scanSign/index.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pages/work/inspection/scanSign/index.vue b/pages/work/inspection/scanSign/index.vue index 9659913..26e934a 100644 --- a/pages/work/inspection/scanSign/index.vue +++ b/pages/work/inspection/scanSign/index.vue @@ -26,7 +26,7 @@ - 最多选择3张图片,支持自动压缩 + 最多选择3张图片 @@ -114,8 +114,8 @@ uni.chooseImage({ count: 3 - this.img.length, // 最多选择剩余可选数量 - sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 - sourceType: ['camera', 'album'], // 可以指定来源是相册还是相机,默认二者都有 + sizeType: ['compressed'], // 使用压缩图 + sourceType: ['camera'], // 只能拍照 success: (res) => { // 处理选择的图片 res.tempFilePaths.forEach((filePath, index) => { @@ -171,8 +171,7 @@ // 添加水印 let processedFile = await addWatermarkToImage(file, watermarkText); - // 自动压缩图片(所有图片都进行压缩优化) - processedFile = await this.compressImage(processedFile); + // 不进行额外压缩,使用系统自带压缩 // 上传处理后的文件 const fileUrl = await this.uploadFile(processedFile); @@ -256,8 +255,7 @@ // 添加水印 let processedFile = await addWatermarkToImage(file.file, watermarkText); - // 使用新的压缩方法 - processedFile = await this.compressImage(processedFile); + // 不进行额外压缩,使用系统自带压缩 // 上传处理后的文件 const fileUrl = await this.uploadFile(processedFile);