fix:品相切换时不弹窗不刷新分类,只搜在售商品

This commit is contained in:
ShenQiLun 2026-07-02 16:46:05 +08:00
parent 95b99e2453
commit 5941e78d71

View File

@ -1258,9 +1258,9 @@ export default {
watch: {
noIsbnSelectedCondition() {
// ISBN
// ISBN
if (this.noIsbnBookName && this.isLoggedIn) {
this.searchNoIsbn()
this.searchNoIsbn(true)
}
},
selectedCondition() {
@ -3035,7 +3035,7 @@ export default {
},
// ISBN - 使ISBNkongfz
searchNoIsbn() {
searchNoIsbn(skipPopup) {
if (!this.isLoggedIn) {
uni.showToast({ title: '请先登录孔网账号', icon: 'none' })
return
@ -3044,19 +3044,23 @@ export default {
uni.showToast({ title: '请输入书名', icon: 'none' })
return
}
//
this.fetchNoIsbnBookData()
//
if (!skipPopup) {
this.fetchNoIsbnBookData()
}
// PSI
this.searchNoIsbnBook(function(hasData) {
if (!hasData) {
//
this.searchNoIsbnKongfz()
}
}.bind(this))
}.bind(this), skipPopup)
},
// ISBN - PSIgetNoIsbnBook
searchNoIsbnBook(callback) {
// @param {Function} callback
// @param {boolean} skipPopup
searchNoIsbnBook(callback, skipPopup) {
var ts = String(Math.floor(Date.now() / 1000))
var token = uni.getStorageSync('token') || ''
var params = {
@ -3094,7 +3098,7 @@ export default {
console.log('【getNoIsbnBook】响应:', res.statusCode, res.data)
if (res.statusCode === 200 && res.data && res.data.code === 200) {
var list = (res.data.data && res.data.data.list) || []
if (list.length > 0) {
if (list.length > 0 && !skipPopup) {
// 使
that.noIsbnBookList = list
that.noIsbnBookPopupVisible = true