This commit is contained in:
weiwei committed 2025-03-20 19:55:34 +08:00
1 parent 3576ec1206
commit 849254fcee
1 file changed
+3 -2
+3 -2
View File
@@ -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({