From b522f16d66bc92b2105c502c0d271096757b5b33 Mon Sep 17 00:00:00 2001 From: Zhukj <3262118957> Date: Tue, 9 Dec 2025 17:44:33 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=EF=BC=8C=E6=94=AF=E4=BB=98=E5=AE=9D=EF=BC=8C=E5=8D=8E?= =?UTF-8?q?=E4=B8=BA=E6=94=AF=E4=BB=98=E5=9C=A8=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=EF=BC=8CH5=EF=BC=8C=E5=8D=8E=E4=B8=BA?= =?UTF-8?q?=E5=BF=AB=E5=BA=94=E7=94=A8=E7=AB=AF=E7=9A=84=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/payment/payment.vue | 362 +++++++++++++-------------- pages/order/public/js/orderMethod.js | 7 +- pages_tool/pay/wx_pay.vue | 29 ++- 3 files changed, 205 insertions(+), 193 deletions(-) diff --git a/components/payment/payment.vue b/components/payment/payment.vue index bdbe1cd..3516386 100644 --- a/components/payment/payment.vue +++ b/components/payment/payment.vue @@ -42,19 +42,65 @@ + + + + + + + - diff --git a/pages/order/public/js/orderMethod.js b/pages/order/public/js/orderMethod.js index b741e30..beec685 100644 --- a/pages/order/public/js/orderMethod.js +++ b/pages/order/public/js/orderMethod.js @@ -27,7 +27,12 @@ export default { }, success: res => { if (res.code >= 0) { - this.$refs.choosePaymentPopup.getPayInfo(res.data); + // 修复核心问题:用this替代this2 + 调用子组件方法传参/打开弹窗 + const paymentPopup = this.$refs.paymentPopup; + if (paymentPopup) { + paymentPopup.setOrderData(res.data); + paymentPopup.openPopup(); + } } else { this.$util.showToast({ title: res.message diff --git a/pages_tool/pay/wx_pay.vue b/pages_tool/pay/wx_pay.vue index 7629f8f..773f80f 100644 --- a/pages_tool/pay/wx_pay.vue +++ b/pages_tool/pay/wx_pay.vue @@ -8,7 +8,6 @@