支付页面
This commit is contained in:
1 parent
bd2d78570b
commit
d2cb43d063
3 files changed
+127
-15
No files matched your search
+4
-15
@@ -181,21 +181,10 @@ const doScanCode = async () => {
|
||||
const res: any = await dd.scan({ type: "all" })
|
||||
console.log(res)
|
||||
|
||||
switch (res.code) {
|
||||
case -1:
|
||||
break
|
||||
case 0:
|
||||
uni.showToast({
|
||||
title: JSON.stringify(res),
|
||||
icon: "none",
|
||||
})
|
||||
break
|
||||
default:
|
||||
uni.showToast({
|
||||
title: "扫码失败",
|
||||
icon: "none",
|
||||
})
|
||||
}
|
||||
uni.showToast({
|
||||
title: res,
|
||||
icon: "none",
|
||||
})
|
||||
} catch (error: any) {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
|
||||
Reference in new issue
Block a user