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',