From 6f16fe7e8935b9af2e3ec72aff014db414adf3ee Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 20 Mar 2025 11:49:21 +0800 Subject: [PATCH] 1 --- src/pages/tabbar/home.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages/tabbar/home.vue b/src/pages/tabbar/home.vue index 145db09..e1463db 100644 --- a/src/pages/tabbar/home.vue +++ b/src/pages/tabbar/home.vue @@ -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", + }) })