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
cf807bfc
Commit
cf807bfc
authored
Jul 19, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券展示问题
parent
96c03c90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
index.vue
src/views/pay/index.vue
+4
-1
payResult.vue
src/views/pay/payResult.vue
+1
-1
No files found.
src/views/pay/index.vue
View file @
cf807bfc
...
...
@@ -576,7 +576,10 @@ export default {
IS_THIRD_PAY
(
this
.
payType
)
||
!
this
.
showCoupon
?
this
.
displayInfo
?.
orderAmt
||
'
0.00
'
:
(
this
.
displayInfo
?.
orderAmt
-
this
.
selectedCoupon
?.
faceValue
||
0
).
toFixed
(
2
);
const
freeAmount
=
this
.
showCoupon
?
this
.
selectedCoupon
?.
faceValue
||
'
0.00
'
:
'
0.00
'
;
const
freeAmount
=
!
IS_THIRD_PAY
(
this
.
payType
)
&&
this
.
showCoupon
?
this
.
selectedCoupon
?.
faceValue
||
'
0.00
'
:
'
0.00
'
;
cookies
.
set
(
'
amount
'
,
{
finalAmt
,
freeAmount
});
}
}
...
...
src/views/pay/payResult.vue
View file @
cf807bfc
...
...
@@ -63,7 +63,7 @@ export default {
created
()
{
const
{
orderNo
,
reason
}
=
this
.
$route
.
query
;
const
{
success
}
=
this
.
$route
.
meta
;
const
amount
=
cookies
.
get
(
'
amount
'
);
const
amount
=
cookies
.
get
(
'
amount
'
)
||
{}
;
this
.
money
=
amount
.
finalAmt
;
this
.
orderNo
=
orderNo
;
this
.
reason
=
reason
||
''
;
...
...
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