Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-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
cauchy-ui
Commits
2deef894
Commit
2deef894
authored
Jul 19, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付中页面参数
parent
cf807bfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
pay.js
src/service/pay.js
+5
-1
index.vue
src/views/pay/index.vue
+5
-2
No files found.
src/service/pay.js
View file @
2deef894
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
*/
*/
import
qs
from
'
qs
'
;
import
qs
from
'
qs
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
{
isApp
as
isXyqb
}
from
'
@/service/validation.service
'
;
import
{
isApp
as
isXyqb
}
from
'
@/service/validation.service
'
;
/**
/**
* payByWeixinJsapi
* payByWeixinJsapi
...
@@ -57,11 +59,13 @@ function payByWeixinH5(info) {
...
@@ -57,11 +59,13 @@ function payByWeixinH5(info) {
if
(
!
info
.
params
)
{
if
(
!
info
.
params
)
{
info
.
params
=
{};
info
.
params
=
{};
}
}
const
vccToken
=
localStorage
.
get
(
'
vccToken
'
);
const
orderNo
=
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
info
.
params
.
isXyqb
=
isXyqb
?
1
:
0
;
info
.
params
.
isXyqb
=
isXyqb
?
1
:
0
;
info
.
params
.
isWxH5
=
1
;
info
.
params
.
isWxH5
=
1
;
const
currentPath
=
encodeURIComponent
(
const
currentPath
=
encodeURIComponent
(
window
.
location
.
origin
+
window
.
location
.
origin
+
'
/payWaiting
'
+
`/payWaiting?vccToken=
${
vccToken
}
&orderNo=
${
orderNo
}
`
+
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
qs
.
stringify
(
info
.
params
,
{
encode
:
true
,
addQueryPrefix
:
true
})
);
);
// window.location.href = `${info.url}&redirect_url=${currentPath}`;
// window.location.href = `${info.url}&redirect_url=${currentPath}`;
...
...
src/views/pay/index.vue
View file @
2deef894
...
@@ -128,6 +128,7 @@ import {
...
@@ -128,6 +128,7 @@ import {
kaGetNextUrl
kaGetNextUrl
}
from
'
@/api/pay.api.js
'
;
}
from
'
@/api/pay.api.js
'
;
const
VCC_CHANNEL
=
localStorage
.
get
(
'
vccChannel
'
);
const
VCC_CHANNEL
=
localStorage
.
get
(
'
vccChannel
'
);
let
Current_Url
=
null
;
export
default
{
export
default
{
components
:
{
components
:
{
crPayCard
,
crPayCard
,
...
@@ -207,6 +208,8 @@ export default {
...
@@ -207,6 +208,8 @@ export default {
mounted
()
{
mounted
()
{
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
});
cookies
.
set
(
'
orderNo
'
,
{
orderNo
:
this
.
orderNo
});
const
vccToken
=
localStorage
.
get
(
'
vccToken
'
);
Current_Url
=
`
${
window
.
location
.
origin
}
/payWaiting?vccToken=
${
vccToken
}
&orderNo=
${
this
.
orderNo
}
`
;
this
.
queryPayInfo
();
this
.
queryPayInfo
();
this
.
getCouponList
(
this
.
orderNo
);
this
.
getCouponList
(
this
.
orderNo
);
},
},
...
@@ -406,8 +409,8 @@ export default {
...
@@ -406,8 +409,8 @@ export default {
}
}
const
paramsData
=
{
const
paramsData
=
{
...
params
,
...
params
,
quitUrl
:
`
${
window
.
location
.
origin
}
/payWaiting`
,
quitUrl
:
Current_Url
,
returnUrl
:
`
${
window
.
location
.
origin
}
/payWaiting`
,
returnUrl
:
Current_Url
,
ocrAuth
:
{
ocrAuth
:
{
isH5
:
true
isH5
:
true
},
},
...
...
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