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,