From d9c0d1d4e4f643439503dad376a70cba2812dcd5 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Tue, 16 Sep 2025 10:00:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D-=E5=85=B3=E9=97=AD=E6=8D=90?= =?UTF-8?q?=E6=AC=BE=E6=A8=A1=E6=80=81=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/future/future.vue | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/pages/future/future.vue b/pages/future/future.vue index 3f31f45..8e91fd4 100644 --- a/pages/future/future.vue +++ b/pages/future/future.vue @@ -92,7 +92,11 @@ 为寺庙建设捐出 - + @@ -165,7 +169,7 @@ export default { donationList: [1, 5, 10], selectedIndex: 0, customAmount: "", - payAmount: "", + payAmount: "100", formedId: null, // 添加 formedId 到 data 中 projectDetails: { @@ -341,7 +345,21 @@ export default { payAmount: this.payAmount, formedId: this.formedId, }); - this.openPaymentUrl(res.data.payParams.payUrl); + if (res.code === 200) { + this.openPaymentUrl(res.data.payParams.payUrl); + } else if (res.code === 10001) { + uni.showModal({ + title: "去实名", + content: "需要实名", + showCancel: true, + confirmText: "yes", + cancelText: "no", + success: function () { + uni.navigateTo({ url: "/pages/realName/realName" }); + }, + }); + console.log("10001", res.msg); + } }, // 封装打开支付链接的方法