From 4d77e53fc14aa6454782e9852cbf16135ffc5e11 Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Fri, 2 Aug 2024 01:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/checkout/cashier/index.vue | 13 ++-- pages/gamll/index.vue | 120 ++++++++++++++++++++++++++--- pages/member/index.vue | 125 ++++++++++++++++++++++++++++--- pages/member/index1.vue | 113 +++++++++++++++++++++++++--- pages/wallet/recharge/index.vue | 92 +++++++++++++++++++---- 5 files changed, 409 insertions(+), 54 deletions(-) diff --git a/pages/checkout/cashier/index.vue b/pages/checkout/cashier/index.vue index 44b2383..8cbe367 100644 --- a/pages/checkout/cashier/index.vue +++ b/pages/checkout/cashier/index.vue @@ -140,7 +140,9 @@ // 获取收银台信息 this.getCashierInfo(); uni.$on('appShow', this.solveShowMsg); - uni.onAppShow() + }, + onUnload() { + uni.$off('appShow', this.solveShowMsg); }, methods: { @@ -245,6 +247,7 @@ if (app.disabled) return app.disabled = true if (app.curPaymentItem.method === 'huifu') { + app.disabled = false if (!app.miniPayRequest || Object.keys(app.miniPayRequest).length === 0) { app.$toast(`暂无${app.PayMethodEnum[app.curPaymentItem.method].name}支付信息`); return @@ -256,13 +259,7 @@ })); uni.openEmbeddedMiniProgram({ appId: app.miniPayRequest.miniuser, - path: `${app.miniPayRequest.minipath}?appPayRequest=${appPayRequest}`, - success(res) { - console.log('success', res) - }, - fail(e) { - console.log('fail', e); - } + path: `${app.miniPayRequest.minipath}?appPayRequest=${appPayRequest}` }); } else { // 提交到后端API diff --git a/pages/gamll/index.vue b/pages/gamll/index.vue index fa865c0..3ef6be4 100644 --- a/pages/gamll/index.vue +++ b/pages/gamll/index.vue @@ -147,9 +147,12 @@ - + + + + {{ PayMethodEnum[a.method].name }} @@ -181,6 +184,7 @@