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
469a3a08
Commit
469a3a08
authored
Apr 25, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
deb6fc59
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
hotelRoom.vue
pages/hotel/components/hotelRoom.vue
+7
-0
index.vue
pages/hotel/components/time/index.vue
+2
-2
order.vue
pages/hotel/order.vue
+6
-5
No files found.
pages/hotel/components/hotelRoom.vue
View file @
469a3a08
...
@@ -211,6 +211,13 @@
...
@@ -211,6 +211,13 @@
handler
(
val
,
oldval
)
{
handler
(
val
,
oldval
)
{
if
(
val
)
{
if
(
val
)
{
this
.
RoomList
=
val
this
.
RoomList
=
val
uni
.
getStorage
({
key
:
"Time"
,
success
:
(
res
)
=>
{
let
obj
=
JSON
.
parse
(
res
.
data
);
this
.
dayObj
=
obj
},
});
}
}
},
},
deep
:
true
,
deep
:
true
,
...
...
pages/hotel/components/time/index.vue
View file @
469a3a08
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
(
line
<
=
end
[
0
]
&&
index
<
end
[
1
]
&&
line
>
start[0]) ||
(
line
<
=
end
[
0
]
&&
index
<
end
[
1
]
&&
line
>
start[0]) ||
(line
<
end
[
0
]
&&
line
>
start[0])
(line
<
end
[
0
]
&&
line
>
start[0])
? 'bg-higlt-orange': '',
? 'bg-higlt-orange': '',
((line==0||line==
start[0]
)
&&
index + 1
<
nowDay
)||
res
.
month
<nowMonth
?
'
time-out
'
:
'',
((line==0||line==
1
)
&&
index + 1
<
nowDay
)||
res
.
month
<nowMonth
?
'
time-out
'
:
'',
isNaN
(
item
)
?
'
is-festival
'
:
'',
isNaN
(
item
)
?
'
is-festival
'
:
'',
(
isNaN
(
item
)
&&
line =
=
start
[
0
]
&&
index =
=
start
[
1
])
||
(
isNaN
(
item
)
&&
line =
=
start
[
0
]
&&
index =
=
start
[
1
])
||
(
isNaN
(
item
)
&&
line =
=
end
[
0
]
&&
index =
=
end
[
1
])
(
isNaN
(
item
)
&&
line =
=
end
[
0
]
&&
index =
=
end
[
1
])
...
@@ -452,7 +452,7 @@ export default {
...
@@ -452,7 +452,7 @@ export default {
//选择入住离开
//选择入住离开
selectDay
(
line
,
index
)
{
selectDay
(
line
,
index
)
{
if
(((
line
==
0
||
line
==
this
.
start
[
0
]
)
&&
index
+
1
<
this
.
nowDay
)
||
this
.
resDate
[
line
].
month
<
this
.
nowMonth
)
return
;
if
(((
line
==
0
||
line
==
1
)
&&
index
+
1
<
this
.
nowDay
)
||
this
.
resDate
[
line
].
month
<
this
.
nowMonth
)
return
;
//如果有入住情况和价格则需要进行一些列的判断
//如果有入住情况和价格则需要进行一些列的判断
if
(
this
.
priceStauts
.
length
>
0
)
{
if
(
this
.
priceStauts
.
length
>
0
)
{
if
(
if
(
...
...
pages/hotel/order.vue
View file @
469a3a08
...
@@ -164,9 +164,10 @@
...
@@ -164,9 +164,10 @@
<
view
class
=
"val f14 regular"
style
=
"text-align: right;"
>
<
view
class
=
"val f14 regular"
style
=
"text-align: right;"
>
<
text
style
=
"margin-right: 30rpx;"
>
{{
searchObj
.
peoples
}}
人
<
/text
>
<
text
style
=
"margin-right: 30rpx;"
>
{{
searchObj
.
peoples
}}
人
<
/text
>
<
text
style
=
"margin-right: 30rpx;"
>
{{
orderMsg
.
RoomCount
}}
间房
<
/text
>
<
text
style
=
"margin-right: 30rpx;"
>
{{
orderMsg
.
RoomCount
}}
间房
<
/text
>
<
text
style
=
"margin-right: 30rpx;"
>
{{
dayObj
.
day
}}
晚
<
/text
>
<
text
class
=
"red"
>
{{
RoomInfo
.
Currency
}}
<
text
class
=
"red"
>
{{
RoomInfo
.
Currency
}}
<!--
{{
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
}}
-->
<!--
{{
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
}}
-->
{{
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
}}
{{
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
*
dayObj
.
day
}}
<
/text
>
<
/text
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -181,7 +182,7 @@
...
@@ -181,7 +182,7 @@
<
text
style
=
"margin-right: 30rpx"
>
房间
<
/text
>
<
text
style
=
"margin-right: 30rpx"
>
房间
<
/text
>
<
/view
>
<
/view
>
<
view
style
=
"text-align: right"
>
<
view
style
=
"text-align: right"
>
{{
orderMsg
.
RoomCount
}}
间×
{{
RoomInfo
.
Currency
}}
{{
orderMsg
.
RoomCount
}}
间×
{{
dayObj
.
day
}}
晚×
{{
RoomInfo
.
Currency
}}
<!--
{{
getPrice
(
orderMsg
.
TotalPrice
)
}}
-->
<!--
{{
getPrice
(
orderMsg
.
TotalPrice
)
}}
-->
{{
orderMsg
.
TotalPrice
}}
{{
orderMsg
.
TotalPrice
}}
<
/view
>
<
/view
>
...
@@ -199,7 +200,7 @@
...
@@ -199,7 +200,7 @@
<
view
>
<
view
>
{{
RoomInfo
.
Currency
}}
{{
RoomInfo
.
Currency
}}
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
((
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
{{
((
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
*
dayObj
.
day
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -245,7 +246,7 @@
...
@@ -245,7 +246,7 @@
<
text
>
<
text
>
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
<!--
{{
(
getPrice
(
orderMsg
.
TotalPrice
)
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
<!--
{{
(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
<!--
{{
(
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
}}
-->
{{
((
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
{{
((
orderMsg
.
TotalPrice
*
orderMsg
.
RoomCount
*
dayObj
.
day
)
-
currentCoupon
.
discountMoney
).
toFixed
(
2
)
}}
<
/text
>
<
/text
>
<
/view
>
<
/view
>
<
view
class
=
"sum-detail"
>
共计
{{
orderMsg
.
RoomCount
}}
间房
<
/view
>
<
view
class
=
"sum-detail"
>
共计
{{
orderMsg
.
RoomCount
}}
间房
<
/view
>
...
...
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