@@ -24,6 +18,12 @@
">
查询
+
+
@@ -119,7 +119,10 @@ const handleSearch = () => {
}
})
if (res.data.length === 1) {
- handleCheck(res.data[0])
+ let item ={
+ item:res.data[0]
+ }
+ handleCheck(item)
}
}
}).catch(error => {
@@ -153,7 +156,7 @@ const handleCheck = (item) => {
// 处理扫描成功事件
const handleScanSuccess = (result) => {
- keyWord.value = result?.data?.split('?qrcode=')[1]
+ keyWord.value = result?.data?.split('?qrcode=')[1] || result?.data
if (keyWord.value === '') {
uni.showToast({ title: '扫码识别失败', icon: 'none' })
} else {
@@ -193,7 +196,7 @@ const handleSubmit = () => {
}
-