From b8ab52c5627e56f7ff14bf72fb49c0f4d2a73439 Mon Sep 17 00:00:00 2001 From: Lufaneng Date: Wed, 15 Oct 2025 16:03:11 +0800 Subject: [PATCH] 1 --- pagesA/payment/payment.vue | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pagesA/payment/payment.vue b/pagesA/payment/payment.vue index dd428bb..cde90ce 100644 --- a/pagesA/payment/payment.vue +++ b/pagesA/payment/payment.vue @@ -294,13 +294,13 @@ const confirmPayment = async () => { title: "正在跳转支付宝...", }); console.log("orderResult", orderResult); - // if (1 == 1) { - // uni.redirectTo({ - // url: `/pagesA/payment-result/payment-result?order_no=${orderNum.order_no}`, - // }); - // uni.hideLoading(); - // return; - // } + // if (1 == 1) { + // uni.redirectTo({ + // url: `/pagesA/payment-result/payment-result?order_no=${orderNum.order_no}`, + // }); + // uni.hideLoading(); + // return; + // } paymentResult = await alipayPay(orderResult); } else if (selectedPayment.value === "wallet") { const res = await showModalAsync({ @@ -325,10 +325,15 @@ const confirmPayment = async () => { // 4. 处理支付结果 if (paymentResult?.success) { if (paymentResult.redirect) { - // H5跳转支付,跳转到支付结果页面查询状态 - uni.redirectTo({ - url: `/pagesA/payment-result/payment-result?order_no=${orderNum.order_no}`, + uni.showToast({ + title: "正在跳转支付页面...", + icon: "loading", + duration: 2000, }); + // H5跳转支付,跳转到支付结果页面查询状态 + // uni.redirectTo({ + // url: `/pagesA/payment-result/payment-result?order_no=${orderNum.order_no}`, + // }); } else { // 支付成功,跳转到支付结果页面 // 延迟跳转回上一页或首页