From 849254fcee5daa3f375a7345127528182c76ca01 Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 20 Mar 2025 19:55:34 +0800 Subject: [PATCH] 1 --- src/pages/tabbar/my.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue index 4dc9c71..ee79777 100644 --- a/src/pages/tabbar/my.vue +++ b/src/pages/tabbar/my.vue @@ -178,9 +178,10 @@ const doLogout = async () => { // 扫一扫 const doScanCode = async () => { try { - const res: any = await (window as any).dd.scan({ type: "all" }) + const res: any = await (window as any).dd.scan({ type: "all", sourceType: ["camera"], scanType: ["cameraScan"] }) console.log(res) - usePayStore().setPayData(res.text) + // usePayStore().setPayData(res.text) + usePayStore().setPayData(res) router.jump("/pages/pay/scanPay") } catch (error: any) { uni.showToast({