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 @@