feat: 延期微信支付在微信内直接拉起
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 19m17s

- 微信支付下单带 app_type;拿到 pay_config 后与套餐购买一样拉起微信支付,继续支付同样处理
- 微信内打开时支付方式默认微信;取消支付保留同一请求号,再次确认不重复建单
This commit is contained in:
邹进
2026-11-07 21:57:26 +09:00
parent b035105f80
commit d13be3580f
6 changed files with 26 additions and 12 deletions

View File

@@ -52,7 +52,7 @@
];
});
const canContinuePay = computed(() => order.value?.status === 'pending_payment' && !!order.value?.qr_content);
const canContinuePay = computed(() => order.value?.status === 'pending_payment' && (!!order.value?.qr_content || !!order.value?.pay_config));
const canCancel = computed(() => order.value?.status === 'pending_payment');
const cancelling = ref(false);
@@ -91,7 +91,8 @@
const continuePay = async () => {
try {
await openSilencePayment(order.value, SILENCE_REFRESH_TARGET.ORDER_DETAIL);
const result = await openSilencePayment(order.value, SILENCE_REFRESH_TARGET.ORDER_DETAIL);
if (result?.paid) await load();
} catch (error) {
uni.showToast({ title: error?.message || '拉起支付失败', icon: 'none' });
}