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
24124116
Commit
24124116
authored
Feb 06, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改适配小包团规则
parent
fae24a0c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
940 additions
and
910 deletions
+940
-910
index.vue
components/coupon/index.vue
+32
-3
index.vue
pages/jiuzhai/components/sign/index.vue
+879
-892
jz_Line.vue
pages/jiuzhai/jz_Line.vue
+4
-0
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+24
-14
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+1
-1
No files found.
components/coupon/index.vue
View file @
24124116
...
...
@@ -21,9 +21,12 @@
<view
class=
"coupond"
>
<view
class=
"name"
>
{{
x
.
couponName
}}
</view>
<view
class=
"date"
>
{{
x
.
expirationDate
}}
失效
</view>
<view
class=
"err"
v-if=
"x.err"
>
{{
x
.
err
}}
</view>
<!--
<view
class=
"rule"
v-if=
"x.lineTeamName!='' || x.lineName!=''"
>
{{
x
.
lineName
}}
{{
x
.
lineTeamName
}}
可用
</view>
-->
</view>
<view
class=
"chosen"
>
<view
class=
"chosen"
v-if=
"!x.err"
>
<u-radio-group
v-model=
"value"
@
change=
"radioChange"
>
<u-radio
shape=
"circle"
:name=
"x.id"
:icon-size=
"36"
:active-color=
"mc"
></u-radio>
</u-radio-group>
...
...
@@ -49,7 +52,7 @@
<
script
>
export
default
{
props
:
[
"list"
,
"current"
],
props
:
[
"list"
,
"current"
,
"currentPrice"
,
"order"
],
data
()
{
return
{
mc
:
""
,
...
...
@@ -68,8 +71,29 @@
x
.
start_time
=
x
.
effectDate
.
split
(
' '
)[
0
].
replace
(
/-/g
,
'.'
)
x
.
end_time
=
x
.
expirationDate
.
split
(
' '
)[
0
].
replace
(
/-/g
,
'.'
)
})
this
.
checkOrderCoupon
()
},
methods
:
{
checkOrderCoupon
(){
if
(
this
.
currentPrice
.
teamType
==
1
)
{
//totalSeat:总机位 isSubstitution:1 (可候补) leaderNum:领队
const
shengyu
=
this
.
currentPrice
.
totalSeat
-
this
.
currentPrice
.
leaderNum
const
remainNum
=
this
.
currentPrice
.
remainNum
const
orderNum
=
this
.
order
.
ManNum
+
this
.
order
.
ChirdNeedBedNum
+
this
.
order
.
ChirdNoBedNum
let
errorMsg
=
null
if
(
shengyu
!=
remainNum
)
errorMsg
=
'当前定制团存在其他订单,无法使用专享优惠券'
else
if
(
orderNum
<
shengyu
)
errorMsg
=
'报名人数小于团队机位人数,无法使用专享优惠券'
console
.
log
(
errorMsg
,
shengyu
,
remainNum
,
orderNum
)
this
.
ts
.
forEach
(
x
=>
{
if
(
x
.
couponsUseScope
==
10
)
x
.
err
=
errorMsg
})
console
.
log
(
this
.
ts
)
}
},
popupClose
()
{
if
(
this
.
currentChosen
!=
this
.
current
)
{
this
.
$emit
(
'close'
,
this
.
currentChosen
)
...
...
@@ -78,7 +102,6 @@
}
},
radioChange
(
e
){
console
.
log
(
e
)
if
(
this
.
currentChosen
!=
e
){
this
.
currentChosen
=
e
}
else
{
...
...
@@ -179,6 +202,12 @@
font-weight
:
600
;
color
:
#000
;
}
.coupon
.details
.item
.detail
.coupond
.err
{
margin-top
:
5px
;
font-size
:
11px
;
color
:
#FF3166
;
}
.coupon
.details
.item
.detail
.coupond
.date
{
margin-top
:
5px
;
...
...
pages/jiuzhai/components/sign/index.vue
View file @
24124116
This diff is collapsed.
Click to expand it.
pages/jiuzhai/jz_Line.vue
View file @
24124116
...
...
@@ -549,6 +549,7 @@
PlaceIds
:
''
,
lineId
:
0
,
teamType
:
""
,
//团队类型 1-小包团
pName
:
""
},
time
:
''
,
currentLineId
:
null
,
...
...
@@ -663,6 +664,9 @@
if
(
option
&&
option
.
teamType
)
{
this
.
msg
.
teamType
=
option
.
teamType
;
}
if
(
option
&&
option
.
pName
){
this
.
msg
.
pName
=
option
.
pName
}
let
basedata
=
uni
.
getStorageSync
(
"basedata"
);
//判断后台是否开启自动授权
if
(
basedata
&&
basedata
.
mall
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
.
is_show_auth
==
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
24124116
...
...
@@ -76,9 +76,9 @@
<u-icon
name=
"arrow"
size=
"30"
color=
"#cecece"
style=
"margin-left: 5px;"
></u-icon>
</view>
</view>
<view
class=
"jz_LineDetaYJDKQ"
v-if=
"stepNumber>0"
>
<view
class=
"jz_LineDetaYJDKQ"
v-if=
"stepNumber>0
&& dataList.currentPriceInfo.teamType==0
"
>
<view
class=
"jz_LineDetaFL"
>
<view
v-if=
"
dataList.currentPriceInfo.teamType==0
"
class=
"row items-center jz_LineDetaCZ"
<view
v-if=
""
class=
"row items-center jz_LineDetaCZ"
style=
"border-radius: 4px;overflow: hidden;font-size: 12px;margin-right: 15rpx;"
>
<view
class=
"jz_LineDetaCZL"
>
<view
style=
"opacity: 0;"
>
1
</view>
...
...
@@ -88,9 +88,9 @@
<
template
v-else
>
30
</
template
>
元/人
</view>
</view>
<view
class=
"jz_LineDetaFLJf"
>
278.25
积分
</view>
<
!-- <
view class="jz_LineDetaFLJf" >
预计:{{}}
积分
</view>
-->
</view>
<view
class=
"jz_LineDetaRDKQ"
>
<view>
共{{Discounts}}项福利
</view>
...
...
@@ -254,9 +254,12 @@
<text>
余
</text>
<text
style=
"font-size: 28rpx; font-weight: 600"
>
{{
item
.
remainNum
}}
</text>
</view>
<view
v-if=
"item.remainNum > 0"
style=
"color: #ff3166; font-size: 26rpx"
>
<view
class=
"jz_StartHoubu"
v-else-if=
"item.isSubstitution==1"
>
<text
style=
"font-size: 28rpx; font-weight: 600"
>
可候补
</text>
</view>
<view
v-if=
"item.remainNum > 0 || item.isSubstitution==1"
style=
"color: #ff3166; font-size: 26rpx"
>
¥
{{
$utils
.
getretailer
()?
item
.
b2BPrice
:
item
.
b2CPrice
}}
</view>
<view
v-if=
"item.remainNum
<
=
0
"
style=
"padding: 20rpx 0"
>
<view
v-if=
"item.remainNum
<
=
0
&&
item
.
isSubstitution
!=
1
"
style=
"padding: 20rpx 0"
>
<text
style=
"font-size: 32rpx; font-weight: 600"
>
已售罄
</text>
</view>
</view>
...
...
@@ -270,6 +273,9 @@
<text>
余
</text>
<text
style=
"font-size: 28rpx; font-weight: 600"
>
{{ customerDate.remainNum }}
</text>
</view>
<view
class=
"jz_StartHoubu"
v-else-if=
"customerDate.isSubstitution==1"
>
<text
style=
"font-size: 28rpx; font-weight: 600"
>
可候补
</text>
</view>
<view
style=
"color: #ff3166; font-size: 26rpx"
v-if=
"customerDate.b2BPrice"
>
¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}
</view>
<view
v-if=
"!customerDate.startDate"
style=
"height: 100%;width: 100%; display: flex; align-items: center;justify-content: center;"
>
...
...
@@ -996,7 +1002,7 @@
margin-left: 30rpx;
flex: 1;
"
>
18
周岁以上
<
/text
>
<
u
-
number
-
box
size
=
"28"
:
min
=
"1"
:
max
=
"currentPrice.
remainNum - etCount - etbCount
"
@
change
=
"crChange"
v
-
model
=
"crCount"
><
/u-number-box
>
<
u
-
number
-
box
size
=
"28"
:
min
=
"1"
:
max
=
"currentPrice.
isSubstitution==1?1000:(currentPrice.remainNum - etCount - etbCount)
"
@
change
=
"crChange"
v
-
model
=
"crCount"
><
/u-number-box
>
<
/view
>
<
view
class
=
"line-flex"
style
=
"padding: 30rpx; background: #fff"
>
<
text
style
=
"font-size: 28rpx; color: #111; font-weight: 500"
>
儿童
(
占床
)
<
/text
>
...
...
@@ -1006,7 +1012,7 @@
margin-left: 30rpx;
flex: 1;
"
>
2
-
18
周岁
(
不含
)
<
/text
>
<
u
-
number
-
box
size
=
"28"
:
min
=
"0"
:
max
=
"currentPrice.
remainNum - crCount - etbCount
"
@
change
=
"etChange"
v
-
model
=
"etCount"
><
/u-number-box
>
<
u
-
number
-
box
size
=
"28"
:
min
=
"0"
:
max
=
"currentPrice.
isSubstitution==1?1000:(currentPrice.remainNum - crCount - etbCount)
"
@
change
=
"etChange"
v
-
model
=
"etCount"
><
/u-number-box
>
<
/view
>
<
view
class
=
"line-flex"
style
=
"padding: 30rpx; background: #fff"
>
<
text
style
=
"font-size: 28rpx; color: #111; font-weight: 500"
>
儿童
(
不占床
)
<
/text
>
...
...
@@ -1016,7 +1022,7 @@
margin-left: 30rpx;
flex: 1;
"
>
2
-
18
周岁
(
不含
)
<
/text
>
<
u
-
number
-
box
size
=
"28"
:
min
=
"0"
:
max
=
"currentPrice.
remainNum - crCount - etCount
"
@
change
=
"etbChange"
v
-
model
=
"etbCount"
><
/u-number-box
>
<
u
-
number
-
box
size
=
"28"
:
min
=
"0"
:
max
=
"currentPrice.
isSubstitution==1?1000:(currentPrice.remainNum - crCount - etCount)
"
@
change
=
"etbChange"
v
-
model
=
"etbCount"
><
/u-number-box
>
<
/view
>
<
view
class
=
"line-flex"
style
=
"padding: 30rpx; background: #fff"
>
<
text
style
=
"font-size: 28rpx; color: #111; font-weight: 500"
>
婴儿
<
/text
>
...
...
@@ -1053,7 +1059,10 @@
<
text
style
=
"font-size: 24rpx; color: #111; font-weight: 500"
>
{{
currentPrice
.
startDate
}}
出发
余位:
{{
currentPrice
.
remainNum
}}
<
/text
>
}}
<
/text>
<
text
style
=
"font-size: 24rpx;font-weight: 500; margin-left: 10rpx;"
:
style
=
"{color: currentPrice.isSubstitution==1?'#111':'#FF3166'
}
"
>
{{
currentPrice
.
isSubstitution
==
1
?
'本单可以候补'
:
'本单不能候补'
}}
<
/text
>
<
/view
>
<
view
style
=
"display: flex; align-items: center"
>
<!--
#
ifdef
MP
-
WEIXIN
-->
...
...
@@ -1101,7 +1110,8 @@
<
view
style
=
"color: #111111; font-size: 22rpx"
>
客服
<
/view
>
<
/button
>
<!--
#
endif
-->
<
view
class
=
"jz_OrderNow disable"
v
-
if
=
"currentPrice.remainNum <= 0"
>
已售罄
<
/view
>
<
view
class
=
"jz_OrderNow disable"
v
-
if
=
"currentPrice.remainNum <= 0 && currentPrice.isSubstitution==0"
>
已售罄
<
/view
>
<
view
class
=
"jz_OrderNow"
@
click
=
"openOrderPreview"
v
-
else
-
if
=
"currentPrice.remainNum <= 0 && currentPrice.isSubstitution==1"
>
可候补
<
/view
>
<
view
class
=
"jz_OrderNow"
@
click
=
"openOrderPreview"
v
-
else
>
立即预定
<
/view
>
<
/view
>
<
/view
>
...
...
@@ -1714,7 +1724,7 @@
}
);
}
);
this.currentPrice = this.dataList.currentPriceInfo;
if (this.currentPrice.remainNum == 0) {
if (this.currentPrice.remainNum == 0
&& this.currentPrice.isSubstitution!=1
) {
let temp = this.dataList.priceList.find((x) => x.remainNum > 0);
if (temp) {
this.getDayInfo(temp);
...
...
@@ -1862,7 +1872,7 @@
}
,
//点击切换
getDayInfo(item) {
if (item.remainNum > 0) {
if (item.remainNum > 0
|| item.isSubstitution==1
) {
if (
this.crCount + this.etCount + this.etbCount >=
this.currentPrice.remainNum
...
...
pages/jiuzhai/jz_Reserve.vue
View file @
24124116
...
...
@@ -422,7 +422,7 @@
</view>
</view>
<view
class=
"empty-block"
></view>
<coupon
v-if=
"couponList.length > 0 && showCoupon"
:list=
"couponList"
:current=
"useCouponId"
@
close=
"closeCouponHandler"
></coupon>
<coupon
v-if=
"couponList.length > 0 && showCoupon"
:list=
"couponList"
:current=
"useCouponId"
@
close=
"closeCouponHandler"
:current-price=
"realCurrentPriceInfo"
:order=
"orderMsg"
></coupon>
<view
style=
"padding: 50rpx 40rpx"
v-if=
"tips != ''"
>
<view
class=
"big-title"
>
<text>
重要提示
</text>
...
...
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