From ec3fbc8bf0463aa53e46b75d755eb3909776e3ae Mon Sep 17 00:00:00 2001 From: "97694732@qq.com" Date: Thu, 4 Jun 2026 15:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E7=AD=9B=E9=80=89=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=87=BA=E7=89=88=E7=A4=BE=E5=AD=97=E6=AE=B5/?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E5=8F=82=E6=95=B0/=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/upload.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index e203bf7..3abcfae 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -1009,7 +1009,7 @@ export default { let list = [...this.productList] // 筛选(精确匹配,同zhizhu) if (this.filterPress) { - list = list.filter(item => item.shopName === this.filterPress) + list = list.filter(item => item.press === this.filterPress) } if (this.filterAuthor) { list = list.filter(item => item.author === this.filterAuthor) @@ -1054,7 +1054,7 @@ export default { filterPublishers() { const set = new Set() this.productList.slice(0, 12).forEach(item => { - if (item.shopName) set.add(item.shopName) + if (item.press) set.add(item.press) }) return Array.from(set) }, @@ -1148,7 +1148,8 @@ export default { return } uni.scanCode({ - onlyFromCamera: false, + onlyFromCamera: true, + scanType: ['barcode'], success: (res) => { this.isbn = (res.result || '').trim() this.searchISBN() @@ -1244,6 +1245,7 @@ export default { shopName: item.shopName || '', bookName: item.title || '', author: item.author || '', + press: item.press || '', pubDate: item.pubDateText || '', bookId: item.id || '' } @@ -1825,6 +1827,7 @@ export default { shopName: item.shopName || '', bookName: item.title || '', author: item.author || '', + press: item.press || '', pubDate: item.pubDateText || '', bookId: item.id || '' } @@ -1895,6 +1898,7 @@ export default { shopName: item.shopName || '', bookName: item.title || '', author: item.author || '', + press: item.press || '', pubDate: item.pubDateText || '', bookId: item.id || '' } @@ -2381,6 +2385,7 @@ picker { /* ========== 行内字段 ========== */ .inline-fields { display: flex; + align-items: center; gap: 16rpx; } @@ -2433,6 +2438,7 @@ picker { /* ========== 版权页比价按钮 ========== */ .copyright-btn { + margin-left: auto; padding: 8rpx 16rpx; background-color: #409eff; border-radius: 6rpx;