|
|
|
@ -325,10 +325,15 @@ const confirmPayment = async () => {
|
|
|
|
// 4. 处理支付结果
|
|
|
|
// 4. 处理支付结果
|
|
|
|
if (paymentResult?.success) {
|
|
|
|
if (paymentResult?.success) {
|
|
|
|
if (paymentResult.redirect) {
|
|
|
|
if (paymentResult.redirect) {
|
|
|
|
// H5跳转支付,跳转到支付结果页面查询状态
|
|
|
|
uni.showToast({
|
|
|
|
uni.redirectTo({
|
|
|
|
title: "正在跳转支付页面...",
|
|
|
|
url: `/pagesA/payment-result/payment-result?order_no=${orderNum.order_no}`,
|
|
|
|
icon: "loading",
|
|
|
|
|
|
|
|
duration: 2000,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
// H5跳转支付,跳转到支付结果页面查询状态
|
|
|
|
|
|
|
|
// uni.redirectTo({
|
|
|
|
|
|
|
|
// url: `/pagesA/payment-result/payment-result?order_no=${orderNum.order_no}`,
|
|
|
|
|
|
|
|
// });
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 支付成功,跳转到支付结果页面
|
|
|
|
// 支付成功,跳转到支付结果页面
|
|
|
|
// 延迟跳转回上一页或首页
|
|
|
|
// 延迟跳转回上一页或首页
|
|
|
|
|