feat:修改微信,支付宝,华为支付在微信小程序,H5,华为快应用端的支付规范
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user