fix:出版社下拉显示店铺→改为press;连拍去掉resizeAndAdd避免二次快门声
This commit is contained in:
parent
1b7e26c2cb
commit
40ce951906
@ -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() {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user