feat: 新增拼团

This commit is contained in:
2026-09-23 10:29:41 +08:00
parent f7b9e66172
commit 67f8b3f352
33 changed files with 7491 additions and 858 deletions
+5 -1
View File
@@ -42,10 +42,12 @@ export function filterDouyinPayWays(ways) {
return (ways || []).filter(item => item.type !== 'douyin');
// #endif
}
let pendingSuccessUrl = '';
async function showState(state, key, orderNum) {
if (key !== accountKey()) return;
if (state.state === 'paid') {
const navigated = await jumpToPaymentSuccess();
const navigated = await jumpToPaymentSuccess(pendingSuccessUrl);
if (key !== accountKey()) return;
if (!navigated) {
// Retain the record so the next onShow/click can retry navigation without paying again.
@@ -53,6 +55,7 @@ async function showState(state, key, orderNum) {
return;
}
failureShown.delete(key);
pendingSuccessUrl = '';
} else {
// Same failure page as WeChat/Alipay. Ending the UI attempt is not a channel close.
// Keep unresolved orders for reconciliation, but do not push the page on every onShow.
@@ -178,6 +181,7 @@ export async function appDypayFun(payment) {
// #ifdef APP-PLUS
if (active || resuming) return;
active = true;
pendingSuccessUrl = payment?.customSuccessUrl || '';
const key = accountKey();
try {
if (!key || !payment.orderNum) throw new Error('登录身份或支付订单编号缺失');