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
850b797f
Commit
850b797f
authored
Oct 04, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ccd1e5f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
payResult.vue
src/views/pay/payResult.vue
+14
-7
No files found.
src/views/pay/payResult.vue
View file @
850b797f
...
@@ -100,13 +100,20 @@ export default {
...
@@ -100,13 +100,20 @@ export default {
const
{
orderNo
,
reason
,
payType
}
=
this
.
$route
.
query
;
const
{
orderNo
,
reason
,
payType
}
=
this
.
$route
.
query
;
const
{
success
}
=
this
.
$route
.
meta
;
const
{
success
}
=
this
.
$route
.
meta
;
// const amount = cookies.get('amount') || {};
// const amount = cookies.get('amount') || {};
try
{
if
(
isWxMp
)
{
const
amount
=
JSON
.
parse
(
cookies
.
get
(
'
amount
'
));
// 小程序需要从url当中获取支付金额和优惠金额等参数
this
.
money
=
amount
.
finalAmt
||
''
;
const
{
amount
,
freeAmount
}
=
this
.
$route
.
query
;
this
.
freeAmount
=
amount
.
freeAmount
||
''
;
this
.
money
=
amount
;
}
catch
(
e
)
{
this
.
freeAmount
=
freeAmount
;
this
.
money
=
''
;
}
else
{
this
.
freeAmount
=
''
;
try
{
const
amount
=
JSON
.
parse
(
cookies
.
get
(
'
amount
'
));
this
.
money
=
amount
.
finalAmt
||
''
;
this
.
freeAmount
=
amount
.
freeAmount
||
''
;
}
catch
(
e
)
{
this
.
money
=
''
;
this
.
freeAmount
=
''
;
}
}
}
this
.
payType
=
payType
||
''
;
this
.
payType
=
payType
||
''
;
this
.
orderNo
=
orderNo
;
this
.
orderNo
=
orderNo
;
...
...
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