fix: 对齐抖音支付失败及杀进程恢复跳转
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
// Shared result pages for WeChat, Alipay and Douyin. Keep the existing page design.
|
||||
export function jumpToPaymentSuccess() {
|
||||
const url = '/pages/order_package/order_submit_ok/order_submit_ok';
|
||||
return jumpToPaymentResult('/pages/order_package/order_submit_ok/order_submit_ok');
|
||||
}
|
||||
|
||||
export function jumpToPaymentFailure() {
|
||||
return jumpToPaymentResult('/pages/order_package/order_submit_error/order_submit_error');
|
||||
}
|
||||
|
||||
function jumpToPaymentResult(url) {
|
||||
const pages = typeof getCurrentPages === 'function' ? getCurrentPages() : [];
|
||||
if (pages[pages.length - 1]?.route === url.slice(1)) return Promise.resolve(true);
|
||||
return new Promise(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user