This commit is contained in:
weiwei committed 2025-03-20 11:49:21 +08:00
1 parent 5db6615167
commit 6f16fe7e89
1 file changed
+10 -2
+10 -2
View File
@@ -32,7 +32,7 @@ const toDetail = async (v: any) => {
}
}
// 扫扫扫
// 测试扫扫
const doScanCode = async () => {
try {
const res = await dd.scan({ type: "all" })
@@ -56,7 +56,8 @@ const doScanCode = async () => {
})
}
dd.ready(function () {
// 测试扫扫
dd.ready(async function () {
dd.confirm({
message: "2022年亚运会在哪里举办",
title: "提问",
@@ -68,6 +69,13 @@ dd.ready(function () {
.catch((err) => {
console.error(err)
})
const res = await dd.scan({ type: "all" })
console.log(res)
uni.showToast({
title: JSON.stringify(res),
icon: "none",
})
})
</script>