feat:修改微信,支付宝,华为支付在微信小程序,H5,华为快应用端的支付规范

This commit is contained in:
Zhukj
2025-12-09 17:44:33 +08:00
parent 5bd0881946
commit b522f16d66
3 changed files with 205 additions and 193 deletions

View File

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