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
73bd7e75
Commit
73bd7e75
authored
Mar 21, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券满足条件
parent
9488eb50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
index.vue
components/coupon/index.vue
+10
-10
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+2
-2
No files found.
components/coupon/index.vue
View file @
73bd7e75
...
...
@@ -117,8 +117,16 @@
})
this
.
OverlayCalculation
()
this
.
checkOrderCoupon
()
this
.
reorder
()
},
methods
:
{
reorder
(){
this
.
ts
.
sort
((
a
,
b
)
=>
{
const
aerr
=
(
a
.
err
?
a
.
err
:
''
).
length
const
berr
=
(
b
.
err
?
b
.
err
:
''
).
length
return
aerr
-
berr
})
},
checkOrderCoupon
(){
if
(
this
.
currentPrice
&&
this
.
currentPrice
.
teamType
==
1
)
{
//totalSeat:总机位 isSubstitution:1 (可候补) leaderNum:领队
...
...
@@ -132,11 +140,7 @@
this
.
ts
.
forEach
(
x
=>
{
if
(
x
.
couponsUseScope
==
10
)
x
.
err
=
errorMsg
})
this
.
ts
.
sort
((
a
,
b
)
=>
{
const
aerr
=
(
a
.
err
?
a
.
err
:
''
).
length
const
berr
=
(
b
.
err
?
b
.
err
:
''
).
length
return
aerr
-
berr
})
this
.
reorder
()
}
this
.
ts
.
forEach
((
x
)
=>
{
if
(
!
x
.
err
&&
x
.
useCondition
>
this
.
price
){
...
...
@@ -220,11 +224,7 @@
}
}
})
this
.
ts
.
sort
((
a
,
b
)
=>
{
const
aerr
=
(
a
.
err
?
a
.
err
:
''
).
length
const
berr
=
(
b
.
err
?
b
.
err
:
''
).
length
return
aerr
-
berr
})
this
.
reorder
()
}
},
};
...
...
pages/jiuzhai/jz_Reserve.vue
View file @
73bd7e75
...
...
@@ -863,9 +863,9 @@
calcPzCouponHandler
(){
this
.
couponList
.
forEach
((
x
)
=>
{
if
(
x
.
expansionModel
.
denomination
>
0
){
if
(
this
.
pzCoupon
&&
this
.
pzCoupon
.
expansionModel
.
denomination
<
x
.
expansionModel
.
denomination
)
if
(
this
.
pzCoupon
&&
this
.
pzCoupon
.
expansionModel
.
denomination
<
x
.
expansionModel
.
denomination
&&
(
this
.
total
>=
x
.
orderGuestNum
||!
x
.
orderGuestNum
)
)
this
.
pzCoupon
=
x
else
if
(
!
this
.
pzCoupon
)
else
if
(
!
this
.
pzCoupon
&&
(
this
.
total
>=
x
.
orderGuestNum
||!
x
.
orderGuestNum
)
)
this
.
pzCoupon
=
x
x
.
realDenomination
=
x
.
denomination
...
...
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