This commit is contained in:
weiwei committed 2025-03-20 20:04:48 +08:00
1 parent 849254fcee
commit 8dc692796c
1 file changed
+7 -6
+7 -6
View File
@@ -180,14 +180,15 @@ const doScanCode = async () => {
try {
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)
usePayStore().setPayData(res.text)
router.jump("/pages/pay/scanPay")
} catch (error: any) {
uni.showToast({
title: error,
icon: "none",
})
if (error) {
uni.showToast({
title: error,
icon: "none",
})
}
}
}