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
efa69c6a
Commit
efa69c6a
authored
Mar 21, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
872e4f4d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
7 deletions
+19
-7
index.vue
components/coupon/index.vue
+9
-3
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+8
-2
userHeader.vue
pages/user-center/components/userHeader.vue
+1
-1
vipUserHeader.vue
pages/user-center/components/vipUserHeader.vue
+1
-1
No files found.
components/coupon/index.vue
View file @
efa69c6a
...
...
@@ -25,7 +25,7 @@
<view
class=
"err"
v-if=
"x.err"
>
{{
x
.
err
}}
</view>
<view
style=
"color: #dfbe6e;font-size: 22rpx;"
<view
v-else
style=
"color: #dfbe6e;font-size: 22rpx;"
:style=
"
{'padding-top':x.err?'':'30rpx'}">
{{
x
.
overlapUse
==
1
?
'可叠加使用'
:
'不可叠加使用'
}}
</view>
...
...
@@ -61,7 +61,7 @@
<
script
>
export
default
{
props
:
[
"list"
,
"current"
,
"price"
,
"currentPrice"
,
"order"
],
props
:
[
"list"
,
"current"
,
"price"
,
"currentPrice"
,
"order"
,
"numberPeople"
],
data
()
{
return
{
mc
:
""
,
...
...
@@ -83,6 +83,8 @@
console
.
log
(
!
x
.
err
||
x
.
err
==
'订单金额不满足'
)
if
(
!
x
.
err
||
x
.
err
==
'订单金额不满足'
){
x
.
err
=
x
.
useCondition
>
this
.
price
?
'订单金额不满足'
:
null
}
else
if
(
!
x
.
err
||
x
.
err
==
'订单人数不满足'
){
x
.
err
=
x
.
orderGuestNum
>
this
.
numberPeople
?
'订单金额不满足'
:
null
}
})
this
.
OverlayCalculation
()
...
...
@@ -139,6 +141,8 @@
this
.
ts
.
forEach
((
x
)
=>
{
if
(
!
x
.
err
&&
x
.
useCondition
>
this
.
price
){
x
.
err
=
'订单金额不满足'
}
else
if
(
!
x
.
err
&&
x
.
orderGuestNum
>
this
.
numberPeople
){
x
.
err
=
'订单人数不满足'
}
})
},
...
...
@@ -209,7 +213,9 @@
if
(
x
.
overlapUse
){
if
(
!
x
.
check
&&
x
.
denomination
>
this
.
money
){
x
.
err
=
'订单金额不满足'
}
else
{
}
else
if
(
!
x
.
check
&&
x
.
orderGuestNum
>
this
.
numberPeople
){
x
.
err
=
'订单人数不满足'
}
else
{
x
.
err
=
null
}
}
...
...
pages/jiuzhai/jz_Reserve.vue
View file @
efa69c6a
...
...
@@ -485,7 +485,10 @@
<
/view
>
<
view
class
=
"empty-block"
><
/view
>
<
coupon
v
-
if
=
"couponList.length > 0 && showCoupon"
:
price
=
"price"
:
list
=
"couponList"
:
current
=
"useCouponIds"
@
close
=
"closeCouponHandler"
:
current
-
price
=
"realCurrentPriceInfo"
:
order
=
"orderMsg"
><
/coupon
>
<
coupon
v
-
if
=
"couponList.length > 0 && showCoupon"
:
price
=
"price"
:
list
=
"couponList"
:
current
=
"useCouponIds"
@
close
=
"closeCouponHandler"
:
current
-
price
=
"realCurrentPriceInfo"
:
order
=
"orderMsg"
:
numberPeople
=
"total"
><
/coupon
>
<
view
style
=
"padding: 50rpx 40rpx"
v
-
if
=
"tips != ''"
>
<
view
class
=
"big-title"
>
...
...
@@ -824,21 +827,24 @@
if
(
this
.
couponList
&&
this
.
couponList
.
length
>
0
){
let
maxCouponId
=
0
let
discount
=
0
let
current
=
null
const
money
=
this
.
price
this
.
couponList
.
forEach
(
x
=>
{
if
(
x
.
couponsType
==
1
&&
x
.
denomination
>
discount
)
{
discount
=
x
.
denomination
maxCouponId
=
x
.
id
current
=
x
}
if
(
x
.
couponsType
==
2
){
let
disMoney
=
money
*
(
1
-
x
.
denomination
)
if
(
discount
<
disMoney
){
discount
=
disMoney
maxCouponId
=
x
.
id
current
=
x
}
}
}
)
if
(
maxCouponId
>
0
)
this
.
closeCouponHandler
([
maxCouponId
])
if
(
maxCouponId
>
0
&&
this
.
total
>=
current
.
orderGuestNum
)
this
.
closeCouponHandler
([
maxCouponId
])
}
}
,
calcVipDisscountHandle
(){
...
...
pages/user-center/components/userHeader.vue
View file @
efa69c6a
...
...
@@ -25,7 +25,7 @@
销售:
{{
b2b_user_info
.
salesBaseInfo
.
emName
}}
</
template
>
<!-- #endif -->
<!-- #ifdef MP-AG -->
销售:{{ statistics.saleList[0].saleName }}
<
template
v-if=
"statistics.saleList.length>1"
>
等
{{
statistics
.
saleList
.
length
}}
位
</
template
>
<!-- #endif -->
<!-- #ifdef MP-AG -->
销售:{{ statistics.saleList[0].saleName }}
<
template
v-if=
"statistics.saleList
&&statistics.saleList
.length>1"
>
等
{{
statistics
.
saleList
.
length
}}
位
</
template
>
<!-- #endif -->
</text>
</view>
</view>
...
...
pages/user-center/components/vipUserHeader.vue
View file @
efa69c6a
...
...
@@ -34,7 +34,7 @@
<!-- #ifdef MP-DI -->
<
template
v-if=
"b2b_user_info.salesBaseInfo&&b2b_user_info.salesBaseInfo.emName"
>
销售:
{{
b2b_user_info
.
salesBaseInfo
.
emName
}}
</
template
>
<!-- #endif -->
<!-- #ifdef MP-AG -->
销售:{{ statistics.saleList[0].saleName }}
<
template
v-if=
"statistics.saleList.length>1"
>
等
{{
statistics
.
saleList
.
length
}}
位
</
template
>
<!-- #endif -->
<!-- #ifdef MP-AG -->
销售:{{ statistics.saleList[0].saleName }}
<
template
v-if=
"statistics.saleList
&&statistics.saleList
.length>1"
>
等
{{
statistics
.
saleList
.
length
}}
位
</
template
>
<!-- #endif -->
</view>
<image
class=
"userHeadInfo_vip"
mode=
"aspectFit"
style=
"width: 385rpx;height: 49rpx;"
...
...
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