Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a88c2f0e
authored
Dec 13, 2023
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复Safari无法拉起支付的问题
parent
b7618f90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
web/src/pages/TopUp/index.js
+6
-1
No files found.
web/src/pages/TopUp/index.js
View file @
a88c2f0e
...
...
@@ -74,12 +74,17 @@ const TopUp = () => {
const
{
message
,
data
}
=
res
.
data
;
// showInfo(message);
if
(
message
===
'success'
)
{
let
params
=
data
let
url
=
res
.
data
.
url
let
form
=
document
.
createElement
(
'form'
)
form
.
action
=
url
form
.
method
=
'POST'
form
.
target
=
'_blank'
// 判断是否为safari浏览器
let
isSafari
=
navigator
.
userAgent
.
indexOf
(
"Safari"
)
>
-
1
&&
navigator
.
userAgent
.
indexOf
(
"Chrome"
)
<
1
;
if
(
!
isSafari
)
{
form
.
target
=
'_blank'
}
for
(
let
key
in
params
)
{
let
input
=
document
.
createElement
(
'input'
)
input
.
type
=
'hidden'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment