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
a22dc205
Commit
a22dc205
authored
Oct 01, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ui error
parent
eea23bd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
pay.service.js
src/service/pay.service.js
+12
-11
No files found.
src/service/pay.service.js
View file @
a22dc205
...
@@ -71,13 +71,14 @@ function payByWeixinH5(info) {
...
@@ -71,13 +71,14 @@ function payByWeixinH5(info) {
'
/payWaiting
'
+
'
/payWaiting
'
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
);
);
try
{
window
.
location
.
replace
=
`
${
info
.
url
}
&redirect_url=
${
currentPath
}
`
;
const
nextPage
=
document
.
createElement
(
'
a
'
);
// try {
nextPage
.
setAttribute
(
'
href
'
,);
// const nextPage = document.createElement('a');
nextPage
.
click
();
// nextPage.setAttribute('href',);
}
catch
(
error
)
{
// nextPage.click();
window
.
location
.
href
=
`
${
info
.
url
}
&redirect_url=
${
currentPath
}
`
;
// } catch (error) {
}
// window.location.replace = `${info.url}&redirect_url=${currentPath}`;
// }
}
}
/**
/**
...
@@ -116,10 +117,10 @@ function payByThirdPartyCashier(info) {
...
@@ -116,10 +117,10 @@ function payByThirdPartyCashier(info) {
'
/payWaiting
'
+
'
/payWaiting
'
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
);
);
const
nextPage
=
document
.
createElement
(
'
a
'
);
//
const nextPage = document.createElement('a');
nextPage
.
setAttribute
(
'
href
'
,
`
${
info
.
url
}
&redirect_uri=
${
currentPath
}
`
);
//
nextPage.setAttribute('href', `${info.url}&redirect_uri=${currentPath}`);
nextPage
.
click
();
//
nextPage.click();
window
.
location
.
href
=
`
${
info
.
url
}
&redirect_uri=
${
currentPath
}
`
;
window
.
location
.
replace
=
`
${
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