修复:筛选弹窗出版社字段/扫码参数/按钮对齐等

This commit is contained in:
97694732@qq.com 2026-06-04 15:40:20 +08:00
parent eacbdcd012
commit ec3fbc8bf0

View File

@ -1009,7 +1009,7 @@ export default {
let list = [...this.productList] let list = [...this.productList]
// zhizhu // zhizhu
if (this.filterPress) { if (this.filterPress) {
list = list.filter(item => item.shopName === this.filterPress) list = list.filter(item => item.press === this.filterPress)
} }
if (this.filterAuthor) { if (this.filterAuthor) {
list = list.filter(item => item.author === this.filterAuthor) list = list.filter(item => item.author === this.filterAuthor)
@ -1054,7 +1054,7 @@ export default {
filterPublishers() { filterPublishers() {
const set = new Set() const set = new Set()
this.productList.slice(0, 12).forEach(item => { 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) return Array.from(set)
}, },
@ -1148,7 +1148,8 @@ export default {
return return
} }
uni.scanCode({ uni.scanCode({
onlyFromCamera: false, onlyFromCamera: true,
scanType: ['barcode'],
success: (res) => { success: (res) => {
this.isbn = (res.result || '').trim() this.isbn = (res.result || '').trim()
this.searchISBN() this.searchISBN()
@ -1244,6 +1245,7 @@ export default {
shopName: item.shopName || '', shopName: item.shopName || '',
bookName: item.title || '', bookName: item.title || '',
author: item.author || '', author: item.author || '',
press: item.press || '',
pubDate: item.pubDateText || '', pubDate: item.pubDateText || '',
bookId: item.id || '' bookId: item.id || ''
} }
@ -1825,6 +1827,7 @@ export default {
shopName: item.shopName || '', shopName: item.shopName || '',
bookName: item.title || '', bookName: item.title || '',
author: item.author || '', author: item.author || '',
press: item.press || '',
pubDate: item.pubDateText || '', pubDate: item.pubDateText || '',
bookId: item.id || '' bookId: item.id || ''
} }
@ -1895,6 +1898,7 @@ export default {
shopName: item.shopName || '', shopName: item.shopName || '',
bookName: item.title || '', bookName: item.title || '',
author: item.author || '', author: item.author || '',
press: item.press || '',
pubDate: item.pubDateText || '', pubDate: item.pubDateText || '',
bookId: item.id || '' bookId: item.id || ''
} }
@ -2381,6 +2385,7 @@ picker {
/* ========== 行内字段 ========== */ /* ========== 行内字段 ========== */
.inline-fields { .inline-fields {
display: flex; display: flex;
align-items: center;
gap: 16rpx; gap: 16rpx;
} }
@ -2433,6 +2438,7 @@ picker {
/* ========== 版权页比价按钮 ========== */ /* ========== 版权页比价按钮 ========== */
.copyright-btn { .copyright-btn {
margin-left: auto;
padding: 8rpx 16rpx; padding: 8rpx 16rpx;
background-color: #409eff; background-color: #409eff;
border-radius: 6rpx; border-radius: 6rpx;