fix:出版社下拉显示店铺→改为press;连拍去掉resizeAndAdd避免二次快门声

This commit is contained in:
ShenQiLun 2026-06-27 11:05:34 +08:00
parent 1b7e26c2cb
commit 40ce951906
2 changed files with 2 additions and 25 deletions

View File

@ -131,30 +131,7 @@
path = e.detail.path || '' path = e.detail.path || ''
} }
if (path) { if (path) {
this.resizeAndAdd(path) this.capturedList.push(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()
} }
}, },
flipCamera() { flipCamera() {

View File

@ -3211,7 +3211,7 @@ export default {
const totalPrice = Number((cleanPrice + shippingFee).toFixed(2)) const totalPrice = Number((cleanPrice + shippingFee).toFixed(2))
// //
if (item.author) authorSet.add(item.author.trim()) 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 { return {
image: item.imgBigUrl || '', image: item.imgBigUrl || '',
totalPrice: totalPrice, totalPrice: totalPrice,