diff --git a/src/pages.json b/src/pages.json
index 3e38092..9041c1b 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -270,6 +270,18 @@
}
}
]
+ },
+ {
+ "root": "pages/pay",
+ "pages": [
+ {
+ "path": "scanPay",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableScroll": true
+ }
+ }
+ ]
}
],
"globalStyle": {
diff --git a/src/pages/pay/scanPay.vue b/src/pages/pay/scanPay.vue
new file mode 100644
index 0000000..e39db6c
--- /dev/null
+++ b/src/pages/pay/scanPay.vue
@@ -0,0 +1,111 @@
+
+
+
+ 支付
+
+
+ ¥
+ {{ displayAmount }}
+
+
+ 支付
+
+
+
+
+ {{ key }}
+
+
+
+
+ .
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue
index d339069..f0787f2 100644
--- a/src/pages/tabbar/my.vue
+++ b/src/pages/tabbar/my.vue
@@ -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,