搜索/扫码必须同时满足:已登录孔网+已选品相
This commit is contained in:
parent
7a9722e09d
commit
05507b612c
@ -918,9 +918,12 @@ export default {
|
|||||||
|
|
||||||
// ISBN搜索 - 查询图书中心 + 孔网市场
|
// ISBN搜索 - 查询图书中心 + 孔网市场
|
||||||
searchISBN() {
|
searchISBN() {
|
||||||
// 未选品相且未登录孔网则禁止搜索
|
// 必须已登录孔网且选择了品相
|
||||||
if (!this.selectedCondition && !this.isLoggedIn) {
|
if (!this.isLoggedIn || !this.selectedCondition) {
|
||||||
uni.showToast({ title: '请选择品相或登录孔网账号', icon: 'none' })
|
const msg = []
|
||||||
|
if (!this.isLoggedIn) msg.push('登录孔网账号')
|
||||||
|
if (!this.selectedCondition) msg.push('选择品相')
|
||||||
|
uni.showToast({ title: '请先' + msg.join('和'), icon: 'none' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let keyword = ''
|
let keyword = ''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user