Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
zhengke
jz_Travel
Commits
a828c9de
Commit
a828c9de
authored
May 07, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
包车优惠券
parent
c4c4c4b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
order.vue
pages/bus/order.vue
+5
-4
No files found.
pages/bus/order.vue
View file @
a828c9de
...
...
@@ -696,6 +696,7 @@
this
.
useCouponIds
=
[]
}
this
.
showCoupon
=
false
;
this
.
CalTotalPrice
();
}
,
calcMaxCouponHandle
()
{
if
(
this
.
couponList
&&
this
.
couponList
.
length
>
0
)
{
...
...
@@ -703,14 +704,14 @@
let
discount
=
0
const
money
=
this
.
price
this
.
couponList
.
forEach
(
x
=>
{
if
(
x
.
couponsType
==
1
&&
x
.
denomination
>
discount
&&
(
this
.
orderMsg
.
Adult
PeopleNum
>=
x
if
(
x
.
couponsType
==
1
&&
x
.
denomination
>
discount
&&
(
this
.
orderMsg
.
PeopleNum
>=
x
.
orderGuestNum
||
!
x
.
orderGuestNum
))
{
discount
=
x
.
denomination
maxCouponId
=
x
.
id
}
if
(
x
.
couponsType
==
2
)
{
let
disMoney
=
money
*
(
1
-
x
.
denomination
)
if
(
discount
<
disMoney
&&
(
this
.
orderMsg
.
Adult
PeopleNum
>=
x
.
orderGuestNum
||
!
x
if
(
discount
<
disMoney
&&
(
this
.
orderMsg
.
PeopleNum
>=
x
.
orderGuestNum
||
!
x
.
orderGuestNum
))
{
discount
=
disMoney
maxCouponId
=
x
.
id
...
...
@@ -794,8 +795,8 @@
}
else
{
this
.
orderMsg
.
Num
++
;
}
this
.
getUserCouponList
()
// this.CalTotalPrice();
if
(
this
.
currentCoupon
.
discountMoney
>
0
)
this
.
calcMaxCouponHandle
();
else
this
.
CalTotalPrice
();
}
,
formatDate
(
str
)
{
let
temp
=
str
.
split
(
"-"
);
...
...
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