From 6670b0c59a28b6e0d5e1c489d1af4017a502129b Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Wed, 1 Jul 2026 14:19:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=87=BA=E7=89=88=E7=A4=BE=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E6=8C=89=E4=BD=9C=E8=80=85=E8=BF=87=E6=BB=A4,?= =?UTF-8?q?=E5=8F=AA=E4=BF=9D=E7=95=99=E4=B9=A6=E5=90=8D=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E7=9A=84=E5=AE=8C=E6=95=B4=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/upload.vue | 20 -------------------- utils/kongfz.js | 16 +++++----------- 2 files changed, 5 insertions(+), 31 deletions(-) diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index e7a63de..ed0cc41 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -3445,26 +3445,6 @@ export default { selectNoIsbnAuthor(item) { this.noIsbnAuthor = item this.noIsbnAuthorDropdownVisible = false - // 选择作者后重新获取出版社(按作者过滤) - this.fetchNoIsbnPressesByAuthor(item) - }, - - // 选择作者后按作者过滤重新获取出版社 - async fetchNoIsbnPressesByAuthor(author) { - var bookName = (this.noIsbnBookName || '').trim() - if (!bookName || !author) return - try { - var pressList = await searchPresses(bookName, { - phpsessid: this.kongfzToken || '', - author: author - }) - if (pressList.length > 0) { - this.noIsbnPublisherOptions = pressList.map(function(item) { return item.showName }) - this.noIsbnPublisherDropdownVisible = true - } - } catch (e) { - console.error('按作者获取出版社失败:', e) - } }, // 无ISBN - 选择出版社 diff --git a/utils/kongfz.js b/utils/kongfz.js index 1c7bf76..950d711 100644 --- a/utils/kongfz.js +++ b/utils/kongfz.js @@ -309,13 +309,13 @@ export function searchCategories(keyword, options = {}) { } /** - * 获取孔网出版社列表(根据书名,可选按作者过滤) + * 获取孔网出版社列表(根据书名) * @param {string} keyword 书名 - * @param {object} options { phpsessid, userArea, author } + * @param {object} options { phpsessid, userArea } * @returns {Promise>} 出版社列表 */ export function searchPresses(keyword, options = {}) { - const { phpsessid = '', userArea = '1006000000', author = '' } = options + const { phpsessid = '', userArea = '1006000000' } = options return new Promise((resolve) => { if (!keyword || !keyword.trim()) { resolve([]) @@ -336,14 +336,8 @@ export function searchPresses(keyword, options = {}) { tplParams: '{}', sortType: 0, abGroup: 'B', - filterType: 'press' - } - if (author) { - reqData.author = author - reqData.actionPath = 'author' - reqData.notSelectSearchMode = 'false' - } else { - reqData.notSelectSearchMode = 'true' + filterType: 'press', + notSelectSearchMode: 'true' } uni.request({ url: 'https://search.kongfz.com/pc-gw/search-web/client/pc/product/keyword/more/press/facet',