From 338283090b2eb7dff9c70178e34b8f37c83eb9ed Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Sun, 8 Nov 2026 01:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=86=B5=E7=85=A7=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=EF=BC=9A=E5=B0=8F=E7=A8=8B=E5=BA=8F=E9=80=89=E5=9B=BE?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=8E=8B=E7=BC=A9=E6=A8=A1=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=20iOS=20HEIC=20=E8=BD=AC=20JPEG=20=E5=90=8E?= =?UTF-8?q?=E4=BD=93=E7=A7=AF=E8=B6=85=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JC-Salon-WeChat/pages/appointment-form/index.js | 2 +- JC-Salon-WeChat/pages/backfill-order/index.js | 2 +- JC-Salon-WeChat/utils/upload.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/JC-Salon-WeChat/pages/appointment-form/index.js b/JC-Salon-WeChat/pages/appointment-form/index.js index c3323ba4..3fa51657 100644 --- a/JC-Salon-WeChat/pages/appointment-form/index.js +++ b/JC-Salon-WeChat/pages/appointment-form/index.js @@ -165,7 +165,7 @@ function chooseManualProductImagePaths(count) { count: normalizedCount, mediaType: ['image'], sourceType: ['album', 'camera'], - sizeType: ['original'], + sizeType: ['compressed'], success(result) { resolve((result.tempFiles || []).map(file => file && file.tempFilePath).filter(Boolean).slice(0, normalizedCount)) }, diff --git a/JC-Salon-WeChat/pages/backfill-order/index.js b/JC-Salon-WeChat/pages/backfill-order/index.js index 7072b658..a0432a64 100644 --- a/JC-Salon-WeChat/pages/backfill-order/index.js +++ b/JC-Salon-WeChat/pages/backfill-order/index.js @@ -27,7 +27,7 @@ function imagePatch(images) { } function chooseImages(count) { - return new Promise((resolve, reject) => wx.chooseMedia({ count: Math.min(9, Math.max(1, count)), mediaType: ['image'], sourceType: ['album', 'camera'], sizeType: ['original'], success: result => resolve((result.tempFiles || []).map(file => file.tempFilePath).filter(Boolean)), fail: error => String(error && error.errMsg || '').includes('cancel') ? resolve([]) : reject(new Error(`选择图片失败:${error && error.errMsg || '未知错误'}`)) })) + return new Promise((resolve, reject) => wx.chooseMedia({ count: Math.min(9, Math.max(1, count)), mediaType: ['image'], sourceType: ['album', 'camera'], sizeType: ['compressed'], success: result => resolve((result.tempFiles || []).map(file => file.tempFilePath).filter(Boolean)), fail: error => String(error && error.errMsg || '').includes('cancel') ? resolve([]) : reject(new Error(`选择图片失败:${error && error.errMsg || '未知错误'}`)) })) } Page({ diff --git a/JC-Salon-WeChat/utils/upload.js b/JC-Salon-WeChat/utils/upload.js index a757e40a..721093a2 100644 --- a/JC-Salon-WeChat/utils/upload.js +++ b/JC-Salon-WeChat/utils/upload.js @@ -86,7 +86,7 @@ function chooseImageFilePath() { count: 1, mediaType: ['image'], sourceType: ['album', 'camera'], - sizeType: ['original'], + sizeType: ['compressed'], success(result) { const filePath = result.tempFiles && result.tempFiles[0] ? result.tempFiles[0].tempFilePath : '' resolve(filePath)