Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
44890876
Commit
44890876
authored
Oct 01, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ui error
parent
a22dc205
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
pay.service.js
src/service/pay.service.js
+11
-12
No files found.
src/service/pay.service.js
View file @
44890876
...
...
@@ -71,14 +71,13 @@ function payByWeixinH5(info) {
'
/payWaiting
'
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
);
window
.
location
.
replace
=
`
${
info
.
url
}
&redirect_url=
${
currentPath
}
`
;
// try {
// const nextPage = document.createElement('a');
// nextPage.setAttribute('href',);
// nextPage.click();
// } catch (error) {
// window.location.replace = `${info.url}&redirect_url=${currentPath}`;
// }
try
{
const
nextPage
=
document
.
createElement
(
'
a
'
);
nextPage
.
setAttribute
(
'
href
'
,);
nextPage
.
click
();
}
catch
(
error
)
{
window
.
location
.
href
=
`
${
info
.
url
}
&redirect_url=
${
currentPath
}
`
;
}
}
/**
...
...
@@ -117,10 +116,10 @@ function payByThirdPartyCashier(info) {
'
/payWaiting
'
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
);
//
const nextPage = document.createElement('a');
//
nextPage.setAttribute('href', `${info.url}&redirect_uri=${currentPath}`);
//
nextPage.click();
window
.
location
.
replace
=
`
${
info
.
url
}
&redirect_uri=
${
currentPath
}
`
;
const
nextPage
=
document
.
createElement
(
'
a
'
);
nextPage
.
setAttribute
(
'
href
'
,
`
${
info
.
url
}
&redirect_uri=
${
currentPath
}
`
);
nextPage
.
click
();
window
.
location
.
href
=
`
${
info
.
url
}
&redirect_uri=
${
currentPath
}
`
;
}
/**
...
...
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