From 7d03ed6e7bbbef1dba52c0f07752de7c697317d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Sat, 11 Sep 2021 15:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=BE=93=E5=85=A5=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E9=A1=B5=E9=9D=A2UI=EF=BC=8C=E7=AD=89=E5=BE=85?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=94=AF=E4=BB=98=E9=A1=B5=E9=9D=A2=E5=BE=85?= =?UTF-8?q?=E5=AE=8C=E6=88=90=EF=BC=8C=E7=A9=BA=E6=95=B0=E6=8D=AE=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/lf-nocontent/lf-nocontent.vue | 55 +++++++---- pages.json | 14 +++ pages/business/center/center.vue | 14 ++- pages/business/payment/money.vue | 121 +++++++++++++++++++++++ pages/business/payment/wait.vue | 26 +++++ 5 files changed, 210 insertions(+), 20 deletions(-) create mode 100644 pages/business/payment/money.vue create mode 100644 pages/business/payment/wait.vue diff --git a/components/lf-nocontent/lf-nocontent.vue b/components/lf-nocontent/lf-nocontent.vue index 5129fa3..f80beb3 100644 --- a/components/lf-nocontent/lf-nocontent.vue +++ b/components/lf-nocontent/lf-nocontent.vue @@ -1,31 +1,50 @@ - diff --git a/pages.json b/pages.json index cbb30cd..14879ca 100644 --- a/pages.json +++ b/pages.json @@ -993,6 +993,20 @@ "navigationBarTitleText": "提现" , "navigationStyle":"custom" } + }, + { + "path": "pages/business/payment/money", + "style": { + "navigationBarTitleText": "输入金额" , + "navigationStyle":"custom" + } + }, + { + "path": "pages/business/payment/wait", + "style": { + "navigationBarTitleText": "等待用户支付" , + "navigationStyle":"custom" + } } ], "globalStyle": { diff --git a/pages/business/center/center.vue b/pages/business/center/center.vue index ba5cbbd..e00be0f 100644 --- a/pages/business/center/center.vue +++ b/pages/business/center/center.vue @@ -14,7 +14,7 @@ 余额 - + 扫一扫 @@ -109,7 +109,17 @@ }, methods: { - + // 扫一扫 + onScanCode(){ + uni.scanCode({ + complete: res => { + console.log(res); + // 二维码内的内容 + let result = res.result; + this.$url('/pages/business/payment/money'); + } + }) + } } } diff --git a/pages/business/payment/money.vue b/pages/business/payment/money.vue new file mode 100644 index 0000000..fef19e1 --- /dev/null +++ b/pages/business/payment/money.vue @@ -0,0 +1,121 @@ + + + + + + diff --git a/pages/business/payment/wait.vue b/pages/business/payment/wait.vue new file mode 100644 index 0000000..5fc349f --- /dev/null +++ b/pages/business/payment/wait.vue @@ -0,0 +1,26 @@ + + + + +