From 40ce9519063ffe2c8f471be86f1684526f9f7915 Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Sat, 27 Jun 2026 11:05:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=87=BA=E7=89=88=E7=A4=BE=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=98=BE=E7=A4=BA=E5=BA=97=E9=93=BA=E2=86=92=E6=94=B9?= =?UTF-8?q?=E4=B8=BApress;=E8=BF=9E=E6=8B=8D=E5=8E=BB=E6=8E=89resizeAndAdd?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=BA=8C=E6=AC=A1=E5=BF=AB=E9=97=A8=E5=A3=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/camera_capture.nvue | 25 +------------------------ pages/upload/upload.vue | 2 +- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/pages/upload/camera_capture.nvue b/pages/upload/camera_capture.nvue index fb3e72a..db71d40 100644 --- a/pages/upload/camera_capture.nvue +++ b/pages/upload/camera_capture.nvue @@ -131,30 +131,7 @@ path = e.detail.path || '' } if (path) { - this.resizeAndAdd(path) - } - }, - // 等比例放大到 1080×1080 - resizeAndAdd(srcPath) { - var that = this - try { - uni.compressImage({ - src: srcPath, - width: 1080, - height: 1080, - quality: 95, - success: function(res) { - that.capturedList.push(res.tempFilePath) - that.$forceUpdate() - }, - fail: function() { - that.capturedList.push(srcPath) - that.$forceUpdate() - } - }) - } catch(e) { - this.capturedList.push(srcPath) - this.$forceUpdate() + this.capturedList.push(path) } }, flipCamera() { diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index c79e8b3..1fb34ec 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -3211,7 +3211,7 @@ export default { const totalPrice = Number((cleanPrice + shippingFee).toFixed(2)) // 提取作者和出版社 if (item.author) authorSet.add(item.author.trim()) - if (item.shopName) publisherSet.add(item.shopName.trim()) + if (item.press) publisherSet.add(item.press.trim()) return { image: item.imgBigUrl || '', totalPrice: totalPrice,