|
@@ -311,7 +311,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 等待文字 -->
|
|
<!-- 等待文字 -->
|
|
|
- <h3 class="text-lg font-semibold text-white/90 mb-2">等待支付...</h3>
|
|
|
|
|
|
|
+ <h3 class="text-lg font-semibold text-white/90 mb-2">
|
|
|
|
|
+ 正在拉起支付页面,等待支付...
|
|
|
|
|
+ </h3>
|
|
|
<p class="text-sm text-white/60 mb-6">
|
|
<p class="text-sm text-white/60 mb-6">
|
|
|
请在支付页面完成支付<br />
|
|
请在支付页面完成支付<br />
|
|
|
支付完成后点击已完成支付
|
|
支付完成后点击已完成支付
|
|
@@ -351,7 +353,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 等待文字 -->
|
|
<!-- 等待文字 -->
|
|
|
- <h3 class="text-lg font-semibold text-white/90 mb-2">等待支付...</h3>
|
|
|
|
|
|
|
+ <h3 class="text-lg font-semibold text-white/90 mb-2">
|
|
|
|
|
+ 正在拉起支付页面,等待支付...
|
|
|
|
|
+ </h3>
|
|
|
<p class="text-sm text-white/60 mb-6">
|
|
<p class="text-sm text-white/60 mb-6">
|
|
|
请在支付页面完成支付<br />
|
|
请在支付页面完成支付<br />
|
|
|
支付完成后点击已完成支付
|
|
支付完成后点击已完成支付
|
|
@@ -716,31 +720,8 @@ const openPaymentPage = (url: string) => {
|
|
|
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
|
|
|
|
|
|
if (isSafari) {
|
|
if (isSafari) {
|
|
|
- // Safari浏览器:尝试多种方式打开支付页面
|
|
|
|
|
- try {
|
|
|
|
|
- // 方法1:直接使用window.open
|
|
|
|
|
- const newWindow = window.open(url, "_blank");
|
|
|
|
|
-
|
|
|
|
|
- // 检查是否被阻止
|
|
|
|
|
- if (
|
|
|
|
|
- !newWindow ||
|
|
|
|
|
- newWindow.closed ||
|
|
|
|
|
- typeof newWindow.closed === "undefined"
|
|
|
|
|
- ) {
|
|
|
|
|
- // 方法2:创建临时链接并点击
|
|
|
|
|
- const link = document.createElement("a");
|
|
|
|
|
- link.href = url;
|
|
|
|
|
- link.target = "_blank";
|
|
|
|
|
- link.rel = "noopener noreferrer";
|
|
|
|
|
- document.body.appendChild(link);
|
|
|
|
|
- link.click();
|
|
|
|
|
- document.body.removeChild(link);
|
|
|
|
|
- }
|
|
|
|
|
- } catch (error) {
|
|
|
|
|
- console.error("Safari支付页面打开失败:", error);
|
|
|
|
|
- // 方法3:使用location.href作为备用方案
|
|
|
|
|
- showError("无法打开支付页面,请手动复制链接:" + url);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // Safari浏览器:使用location.href跳转
|
|
|
|
|
+ window.location.href = url;
|
|
|
} else {
|
|
} else {
|
|
|
// 其他浏览器:正常使用window.open
|
|
// 其他浏览器:正常使用window.open
|
|
|
window.open(url, "_blank");
|
|
window.open(url, "_blank");
|