1
This commit is contained in:
1 parent
849254fcee
commit
8dc692796c
1 file changed
+7
-6
@@ -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",
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user