扫码识别在打开摄像头前先检查登录和品相

This commit is contained in:
97694732@qq.com 2026-06-03 17:24:32 +08:00
parent 05507b612c
commit 273803fa92

View File

@ -904,6 +904,14 @@ export default {
// ISBN
scanISBN() {
//
if (!this.isLoggedIn || !this.selectedCondition) {
const msg = []
if (!this.isLoggedIn) msg.push('登录孔网账号')
if (!this.selectedCondition) msg.push('选择品相')
uni.showToast({ title: '请先' + msg.join('和'), icon: 'none' })
return
}
uni.scanCode({
onlyFromCamera: false,
success: (res) => {