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
556e6e34
Commit
556e6e34
authored
Apr 01, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店
parent
ecdaa904
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1232 additions
and
754 deletions
+1232
-754
hotel-good.vue
pages/hotel/components/hotel-good.vue
+13
-2
hotelFacilities.vue
pages/hotel/components/hotelFacilities.vue
+2
-1
hotelRoom.vue
pages/hotel/components/hotelRoom.vue
+265
-208
search.vue
pages/hotel/components/search.vue
+10
-0
date.vue
pages/hotel/components/time/date.vue
+84
-33
index.vue
pages/hotel/components/time/index.vue
+1
-4
detail.vue
pages/hotel/detail.vue
+273
-18
list.vue
pages/hotel/list.vue
+19
-10
mapList.vue
pages/hotel/mapList.vue
+10
-2
order.vue
pages/hotel/order.vue
+452
-178
orderInfor.vue
pages/hotel/orderInfor.vue
+102
-298
paysuccess.vue
pages/jiuzhai/paysuccess.vue
+1
-0
No files found.
pages/hotel/components/hotel-good.vue
View file @
556e6e34
...
...
@@ -64,15 +64,26 @@
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel4stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel5stars.png'
,
],
myDayObj
:
null
,
}
},
created
()
{
// console.log(this.HotelList, 'hotel');
},
watch
:{
dayObj
:
{
handler
(
val
,
oldval
)
{
if
(
val
){
this
.
myDayObj
=
val
}
},
deep
:
true
,
immediate
:
true
}
},
methods
:{
goHotelDetail
(
id
){
console
.
log
(
this
.
dayObj
,
'id'
);
let
myDayObj
=
JSON
.
stringify
(
this
.
dayObj
);
let
myDayObj
=
JSON
.
stringify
(
this
.
myDayObj
);
uni
.
navigateTo
({
url
:
"/pages/hotel/detail?id="
+
id
+
'&dayObj='
+
myDayObj
+
'&searchObj='
+
JSON
.
stringify
(
this
.
searchObj
)
});
...
...
pages/hotel/components/hotelFacilities.vue
View file @
556e6e34
...
...
@@ -107,7 +107,8 @@
</text>
</li>
</ul> -->
<view
class=
"big-titleAssis2"
>
客房信息
<view
class=
"big-titleAssis2"
>
<!-- 客房信息 -->
<view
class=
"hotelSheShitisp"
>
酒店全部客房设施信息仅供参考,可能与您入住的房型略有差异,请知晓
</view>
</view>
</view>
...
...
pages/hotel/components/hotelRoom.vue
View file @
556e6e34
This diff is collapsed.
Click to expand it.
pages/hotel/components/search.vue
View file @
556e6e34
...
...
@@ -291,6 +291,14 @@
childrenNumberBZC
:
0
,
peoples
:
2
,
interCurrent
:
0
,
searchroomGroup
:
[
{
roomNum
:
1
,
numberOfAdults
:
2
,
numberOfChildren
:
0
,
ChildAgeDetails
:
''
}
],
},
day
:
0
,
startDay
:
""
,
...
...
@@ -375,6 +383,7 @@
this
.
startDay
=
obj
.
startDay
;
this
.
endDay
=
obj
.
endDay
;
this
.
day
=
obj
.
day
;
this
.
dayObj
=
obj
this
.
getCity
()
this
.
getSearchCondition
()
// this.getLocation()
...
...
@@ -564,6 +573,7 @@
this
.
day
=
obj
.
day
;
this
.
dayObj
=
obj
;
this
.
showTimePopup
=
false
;
this
.
$emit
(
'getItem'
,
this
.
parameters
,
this
.
dayObj
)
},
closeDropdown
()
{
this
.
$refs
.
uDropdown
.
close
();
...
...
pages/hotel/components/time/date.vue
View file @
556e6e34
...
...
@@ -7,7 +7,7 @@
<view
style=
"flex: 1; width: 100%; height: 1rpx"
>
<canlendar
@
finish=
"chosenDateResult"
title=
"日期和人数"
></canlendar>
</view>
<view
style=
"background: #ecf1f4; padding: 20rpx 0 50rpx 0;"
>
<view
class=
"column"
style=
"background: #ecf1f4; padding: 20rpx 0 50rpx 0;"
>
<view
class=
"row line-flex"
style=
"padding: 30rpx; background: #fff"
>
<text
style=
"font-size: 28rpx; color: #111; font-weight: 500"
>
房间
</text>
<text
style=
"
...
...
@@ -19,32 +19,59 @@
<u-number-box
size=
"28"
:min=
"1"
:max=
"100000"
v-model=
"parameters.rooms"
@
change=
"getRooms"
></u-number-box>
</view>
<view
class=
"row line-flex"
style=
"padding: 30rpx; background: #fff"
>
<text
style=
"font-size: 28rpx; color: #111; font-weight: 500"
>
成人
</text>
<text
style=
"
font-size: 22rpx;
color: #999;
margin-left: 30rpx;
flex: 1;
"
>
18周岁以上
</text>
<u-number-box
size=
"28"
:min=
"1"
:max=
"100000"
v-model=
"parameters.adultsNumber"
@
change=
"crChange"
></u-number-box>
</view>
<view
class=
"row line-flex"
style=
"padding: 30rpx; background: #fff"
>
<text
style=
"font-size: 28rpx; color: #111; font-weight: 500"
>
儿童(占床)
</text>
<text
style=
"
font-size: 22rpx;
color: #999;
margin-left: 30rpx;
flex: 1;
"
>
2-18周岁(不含)
</text>
<u-number-box
size=
"28"
:min=
"0"
:max=
"100000"
v-model=
"parameters.childrenNumberZC"
@
change=
"etChange"
></u-number-box>
</view>
<scroll-view
:scroll-y=
"true"
class=
"hotelScroll"
style=
"max-height: 200rpx;"
>
<view
style=
"padding: 0 10rpx;background: #fff"
>
<view
class=
"row items-center"
v-for=
"(item,index) in parameters.searchroomGroup"
style=
"padding-bottom: 20rpx;"
>
<view
class=
"line-flex"
style=
"height: 29px;margin-right: 10rpx;"
>
房间
{{
item
.
roomNum
}}
</view>
<view
class=
"col"
>
<view
class=
"row line-flex"
style=
"margin-left: 20rpx;"
>
<view
style=
"margin-right: 10rpx;"
>
<text
style=
"font-size: 28rpx; color: #111; font-weight: 500"
>
成人
</text>
<!--
<text
style=
"
font-size: 22rpx;
color: #999;
margin-left: 30rpx;
flex: 1;
"
>
18周岁以上
</text>
-->
</view>
<u-number-box
size=
"28"
:min=
"1"
:max=
"9"
v-model=
"item.numberOfAdults"
@
change=
"(e)=>
{crChange(e,index)}">
</u-number-box>
</view>
<view
class=
"row line-flex"
style=
"margin-left: 20rpx;"
>
<view
style=
"margin-right: 10rpx;"
>
<text
style=
"font-size: 28rpx; color: #111; font-weight: 500"
>
儿童
<!--(占床)-->
</text>
<!--
<text
style=
"
font-size: 22rpx;
color: #999;
margin-left: 30rpx;
flex: 1;
"
>
2-18周岁(不含)
</text>
-->
</view>
<u-number-box
size=
"28"
:min=
"0"
:max=
"5"
v-model=
"item.numberOfChildren"
@
change=
"(e)=>
{etChange(e,index)}"
style="margin-right: 10rpx;"
>
</u-number-box>
<text
style=
"font-size: 28rpx; color: #111; font-weight: 500;"
>
年龄
</text>
<u-number-box
size=
"28"
:min=
"1"
:max=
"12"
v-model=
"item.ChildAgeDetails"
@
change=
"(e)=>
{ageChange(e,index)}"
style="margin-left: 10rpx;"
>
</u-number-box>
</view>
</view>
</view>
</view>
</scroll-view>
<!--
<view
class=
"row line-flex"
style=
"padding: 30rpx; background: #fff"
>
<text
style=
"font-size: 28rpx; color: #111; font-weight: 500"
>
儿童(不占床)
</text>
...
...
@@ -89,18 +116,42 @@ export default {
},
methods
:
{
getRooms
(
e
){
this
.
parameters
.
rooms
=
e
.
value
;
if
(
e
.
value
>
this
.
parameters
.
rooms
||
e
.
value
<
this
.
parameters
.
rooms
){
if
(
e
.
value
>
this
.
parameters
.
rooms
){
this
.
parameters
.
searchroomGroup
.
push
({
roomNum
:
e
.
value
,
numberOfAdults
:
1
,
numberOfChildren
:
0
,
ChildAgeDetails
:
''
})
}
if
(
e
.
value
<
this
.
parameters
.
rooms
){
this
.
parameters
.
searchroomGroup
.
splice
(
e
.
value
,
1
)
}
this
.
parameters
.
rooms
=
e
.
value
;
this
.
peopleChange
()
}
},
ageChange
(
e
,
index
){
this
.
parameters
.
searchroomGroup
[
index
].
ChildAgeDetails
=
e
.
value
;
},
etChange
(
e
){
this
.
parameters
.
childrenNumberZC
=
e
.
value
;
etChange
(
e
,
index
){
this
.
parameters
.
searchroomGroup
[
index
].
numberOfChildren
=
e
.
value
;
this
.
peopleChange
()
},
crChange
(
e
){
this
.
parameters
.
adultsNumber
=
e
.
value
;
crChange
(
e
,
index
){
this
.
parameters
.
searchroomGroup
[
index
].
numberOfAdults
=
e
.
value
;
this
.
peopleChange
()
},
peopleChange
(){
this
.
parameters
.
peoples
=
Number
(
this
.
parameters
.
adultsNumber
)
+
Number
(
this
.
parameters
.
childrenNumberZC
)
this
.
parameters
.
peoples
=
0
this
.
parameters
.
adultsNumber
=
0
this
.
parameters
.
childrenNumberZC
=
0
this
.
parameters
.
searchroomGroup
.
forEach
((
item
,
index
)
=>
{
this
.
parameters
.
peoples
+=
(
Number
(
item
.
numberOfAdults
)
+
Number
(
item
.
numberOfChildren
))
this
.
parameters
.
adultsNumber
+=
Number
(
item
.
numberOfAdults
)
this
.
parameters
.
childrenNumberZC
+=
Number
(
item
.
numberOfChildren
)
})
},
chosenDateResult
(
obj
)
{
this
.
showTimePopup
=
false
;
...
...
pages/hotel/components/time/index.vue
View file @
556e6e34
...
...
@@ -243,7 +243,6 @@ export default {
uni
.
getStorage
({
key
:
"Time"
,
success
:
(
res
)
=>
{
console
.
log
(
res
);
if
(
res
&&
res
.
data
)
{
var
obj
=
JSON
.
parse
(
res
.
data
);
this
.
start
=
this
.
setDefaultDate
(
obj
.
start
);
...
...
@@ -344,13 +343,11 @@ export default {
}
if
(
this
.
priceStauts
.
length
>
0
)
{
console
.
log
(
this
.
lastNot
);
for
(
var
i
=
newVal
[
0
];
i
<
this
.
priceStauts
.
length
;
i
++
)
{
if
(
i
==
newVal
[
0
])
{
for
(
var
j
=
newVal
[
1
];
j
<
this
.
priceStauts
[
i
].
length
;
j
++
)
{
if
(
this
.
priceStauts
[
i
][
j
]
==
-
1
)
{
this
.
lastNot
=
[
i
,
j
];
console
.
log
(
this
.
lastNot
);
return
;
}
}
...
...
@@ -358,7 +355,6 @@ export default {
for
(
var
j
=
0
;
j
<
this
.
priceStauts
[
i
].
length
;
j
++
)
{
if
(
this
.
priceStauts
[
i
][
j
]
==
-
1
)
{
this
.
lastNot
=
[
i
,
j
];
console
.
log
(
this
.
lastNot
);
return
;
}
}
...
...
@@ -652,6 +648,7 @@ export default {
"-"
+
endDay
,
day
:
this
.
day
,
year
:
this
.
date
[
this
.
start
[
0
]].
year
,
};
/*此处应把需要的数据进行保存,如入住离开日期...添加到vuex然后再进行跳转到上一页
...
...
pages/hotel/detail.vue
View file @
556e6e34
This diff is collapsed.
Click to expand it.
pages/hotel/list.vue
View file @
556e6e34
...
...
@@ -2,7 +2,11 @@
<view
class=
"hotel-list column"
style=
"background: #F3F1EF;"
>
<view
class=
"hotel-listHeader"
>
<hotelHeaders
:title=
"pageTitle"
></hotelHeaders>
<hotelSearch
:msg=
"searchObj"
:isMap=
"1"
@
change=
"change"
></hotelSearch>
<hotelSearch
:msg=
"searchObj"
:isMap=
"1"
@
change=
"change"
@
getItem=
"getItem"
></hotelSearch>
<!--
<view
style=
"padding: 9rpx 30rpx 19rpx 30rpx;"
>
<scroll-view
:scroll-x=
"true"
>
<view
class=
"ComprehensiveSortings row"
>
...
...
@@ -65,9 +69,6 @@
// City: 262, //市
// District: 0, //区
},
day
:
0
,
startDay
:
""
,
endDay
:
""
,
HotelList
:
[],
//酒店数据
tempRateAndPrice
:
{
price
:
{},
...
...
@@ -124,27 +125,35 @@
let
Day2
=
day2
>
9
?
day2
:
'0'
+
day2
;
var
obj
=
{
start
:
`
${
d1
.
getFullYear
()}
-
${
Month1
}
-
${
Day1
}
`
,
end
:
`
${
d
2
.
getFullYear
()}
-
${
Month2
}
-
${
Day2
}
`
,
end
:
`
${
d
1
.
getFullYear
()}
-
${
Month2
}
-
${
Day2
}
`
,
startDay
:
`
${
Month1
}
-
${
Day1
}
`
,
endDay
:
`
${
Month2
}
-
${
Day2
}
`
,
day
:
1
,
startWeek
:
startWeek
,
endWeek
:
endWeek
,
startTime
:
`
${
d1
.
getFullYear
()}
-
${
Month1
}
-
${
Day1
}
`
,
endTime
:
`
${
d1
.
getFullYear
()}
-
${
Month2
}
-
${
Day2
}
`
};
this
.
dayObj
=
obj
;
uni
.
setStorage
({
key
:
"Time"
,
data
:
JSON
.
stringify
(
obj
),
});
// this.searchObj.QStartDate = obj.start;
// this.searchObj.QEndDate = obj.end;
this
.
startDay
=
obj
.
startDay
;
this
.
endDay
=
obj
.
endDay
;
this
.
day
=
obj
.
day
;
this
.
getSearchCondition
();
// this.getList();
},
methods
:
{
getItem
(
parameters
,
obj
)
{
this
.
searchObj
=
{
...
this
.
searchObj
,
...
parameters
}
this
.
dayObj
=
{
...
obj
,
startTime
:
`
${
obj
.
year
}
-
${
obj
.
startDay
}
`
,
endTime
:
`
${
obj
.
year
}
-
${
obj
.
endDay
}
`
}
},
scroll
(
e
)
{
this
.
old
.
scrollTop
=
e
.
detail
.
scrollTop
;
},
...
...
pages/hotel/mapList.vue
View file @
556e6e34
...
...
@@ -2,7 +2,8 @@
<view
class=
"hotel-list column"
style=
"background: #F3F1EF;"
>
<view
class=
"hotel-listHeader"
>
<hotelHeaders
:title=
"pageTitle"
></hotelHeaders>
<hotelSearch
@
change=
"change"
></hotelSearch>
<hotelSearch
@
change=
"change"
@
getItem=
"getItem"
></hotelSearch>
</view>
<view
style=
"height: 1px;flex: 1;overflow: hidden;position: relative;"
>
<!-- :latitude="latitude" :longitude="longitude" :markers="covers" -->
...
...
@@ -33,7 +34,7 @@
current==index?'active':'',
nextCurrent==index?'activeNext':'',]"
>
<view
class=
"hotelMapList"
>
<hotel-good
:item=
"item"
:isMap=
"1"
></hotel-good>
<hotel-good
:item=
"item"
:
dayObj=
"dayObj"
:searchObj=
"searchObj"
:
isMap=
"1"
></hotel-good>
</view>
</swiper-item>
</swiper>
...
...
@@ -208,6 +209,13 @@
// this.getLocation()
},
methods
:
{
getItem
(
obj
)
{
this
.
dayObj
=
{
...
obj
,
startTime
:
`
${
obj
.
year
}
-
${
obj
.
startDay
}
`
,
endTime
:
`
${
obj
.
year
}
-
${
obj
.
endDay
}
`
}
},
handleCalloutClick
(
marker
)
{
console
.
log
(
'点击了标记:'
,
marker
.
detail
);
// 可自定义弹窗逻辑或跳转页面
...
...
pages/hotel/order.vue
View file @
556e6e34
This diff is collapsed.
Click to expand it.
pages/hotel/orderInfor.vue
View file @
556e6e34
This diff is collapsed.
Click to expand it.
pages/jiuzhai/paysuccess.vue
View file @
556e6e34
...
...
@@ -73,6 +73,7 @@ export default {
});
}
else
if
(
this
.
isLineOrder
==
3
)
num
=
'6'
//签证订单
else
if
(
this
.
isLineOrder
==
4
)
num
=
'1'
//机票订单
else
if
(
this
.
isLineOrder
==
5
)
num
=
'8,9,10,11'
//酒店订单
if
(
num
){
uni
.
redirectTo
({
url
:
`/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=
${
num
}
`
,
...
...
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