1
This commit is contained in:
1 parent
3576ec1206
commit
849254fcee
1 file changed
+3
-2
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user