fix:出版社不再按作者过滤,只保留书名相关的完整列表

This commit is contained in:
ShenQiLun 2026-07-01 14:19:38 +08:00
parent c834090eb8
commit 6670b0c59a
2 changed files with 5 additions and 31 deletions

View File

@ -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 -

View File

@ -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<Array<{showName:string}>>} 出版社列表
*/
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',