|
|
@@ -91,8 +91,9 @@ const openPaymentPage = (url: string) => {
|
|
|
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
|
|
|
|
if (isSafari) {
|
|
|
- // Safari浏览器:使用location.href跳转
|
|
|
- window.location.href = url;
|
|
|
+ // Safari浏览器
|
|
|
+ setTimeout(() => window.open(url, "_blank"));
|
|
|
+ // window.location.href = url;
|
|
|
} else {
|
|
|
// 其他浏览器:正常使用window.open
|
|
|
window.open(url, "_blank");
|
|
|
@@ -120,7 +121,8 @@ const handleMembershipPurchase = async () => {
|
|
|
showMembershipDialog.value = false;
|
|
|
|
|
|
// Safari兼容性处理:使用多种方式打开支付页面
|
|
|
- openPaymentPage(response.code_url);
|
|
|
+ // openPaymentPage(response.code_url);
|
|
|
+ setTimeout(() => window.open(response.code_url, "_blank"));
|
|
|
|
|
|
// 显示支付等待弹窗
|
|
|
showPaymentWaitingDialog.value = true;
|