Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
331a59bd
Commit
331a59bd
authored
Dec 25, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
道旅酒店
parent
240fd202
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
324 additions
and
292 deletions
+324
-292
RoomCard.vue
src/components/hotaldida/RoomCard.vue
+9
-15
detailHotalDida.vue
src/pages/detailHotalDida.vue
+59
-3
orderForm.vue
src/pages/didaHotel/orderForm.vue
+256
-274
No files found.
src/components/hotaldida/RoomCard.vue
View file @
331a59bd
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
</div>
</div>
<div
:class=
"{'row justify-end':$q.platform.is.mobile}"
>
<div
:class=
"{'row justify-end':$q.platform.is.mobile}"
>
<q-btn
color=
"primary"
:size=
"$q.platform.is.desktop?'md':'sm'"
label=
"立即預訂"
unelevated
<q-btn
color=
"primary"
:size=
"$q.platform.is.desktop?'md':'sm'"
label=
"立即預訂"
unelevated
@
click=
"goOrderHandler(i
ndex,indexs
,subItem)"
@
click=
"goOrderHandler(i
tem
,subItem)"
:class=
"{'q-px-xs':$q.platform.is.desktop}"
/>
:class=
"{'q-px-xs':$q.platform.is.desktop}"
/>
</div>
</div>
</div>
</div>
...
@@ -310,21 +310,15 @@
...
@@ -310,21 +310,15 @@
null
null
);
);
},
},
goOrderHandler
(
item
){
goOrderHandler
(
item
,
subItem
){
let
order
=
{
subItem
=
{
msg
:
this
.
msg
,
RoomName_CN
:
item
.
RoomName_CN
,
liveNvm
:
this
.
SimilarObj
.
liveNvm
,
RoomName
:
item
.
RoomName
,
roomOptionCd
:
item
,
imageList
:
item
.
imageList
,
...
subItem
}
}
let
key
=
this
.
$md5
(
JSON
.
stringify
(
order
))
this
.
$emit
(
'placeOrder'
,
subItem
);
let
pickuporderHotal
=
localStorage
.
getItem
(
'pickuporderHotalDida'
)
pickuporderHotal
=
pickuporderHotal
?
JSON
.
parse
(
pickuporderHotal
):[]
pickuporderHotal
.
push
({
key
,
order
})
localStorage
.
setItem
(
"pickuporderHotalDida"
,
JSON
.
stringify
(
pickuporderHotal
))
this
.
CommonJump
(
'/HotalDidaForm/'
+
key
,
{});
},
},
init
()
{
init
()
{
this
.
chooseObj
=
null
this
.
chooseObj
=
null
...
...
src/pages/detailHotalDida.vue
View file @
331a59bd
...
@@ -437,7 +437,7 @@
...
@@ -437,7 +437,7 @@
>
>
<div
class=
"col q-mr-lg"
>
<div
class=
"col q-mr-lg"
>
<div
class=
"f30 bold row items-center"
>
<div
class=
"f30 bold row items-center"
>
<span
class=
"ellipsis-2-lines q-pr-lg"
>
{{
hotelSummary.hotelName
}}
</span>
<span
class=
"ellipsis-2-lines q-pr-lg"
>
{{
dataList.Name_CN
}}
</span>
<q-rating
v-model=
"roomReviewRating"
size=
"1em"
<q-rating
v-model=
"roomReviewRating"
size=
"1em"
color=
"orange"
:max=
"roomReviewRating"
readonly
/>
color=
"orange"
:max=
"roomReviewRating"
readonly
/>
</div>
</div>
...
@@ -575,6 +575,7 @@
...
@@ -575,6 +575,7 @@
:HotelRoomTypes=
"HotelRoomTypes"
:HotelRoomTypes=
"HotelRoomTypes"
:HotelMealTypes=
"HotelMealTypes"
:HotelMealTypes=
"HotelMealTypes"
@
change=
"changeChosenDateHandler"
@
change=
"changeChosenDateHandler"
@
placeOrder=
"placeOrderHandler"
ref=
"RoomCard"
ref=
"RoomCard"
></RoomCard>
></RoomCard>
...
@@ -676,6 +677,7 @@
...
@@ -676,6 +677,7 @@
:HotelRoomTypes=
"HotelRoomTypes"
:HotelRoomTypes=
"HotelRoomTypes"
:HotelMealTypes=
"HotelMealTypes"
:HotelMealTypes=
"HotelMealTypes"
@
change=
"changeChosenDateHandler"
@
change=
"changeChosenDateHandler"
@
placeOrder=
"placeOrderHandler"
ref=
"RoomCard"
ref=
"RoomCard"
></RoomCard>
></RoomCard>
</div>
</div>
...
@@ -1233,6 +1235,59 @@ export default {
...
@@ -1233,6 +1235,59 @@ export default {
document
.
getElementsByTagName
(
"body"
)[
0
].
style
=
""
;
document
.
getElementsByTagName
(
"body"
)[
0
].
style
=
""
;
},
},
methods
:
{
methods
:
{
placeOrderHandler
(
item
){
// this.getDiDaPriceConfirmList(item)
let
order
=
{
msg
:
{
hotelId
:
this
.
msg
.
hotelId
,
CheckInDate
:
this
.
msg
.
CheckInDate
,
CheckOutDate
:
this
.
msg
.
CheckOutDate
,
ratePlanID
:
item
.
RatePlanID
,
RoomCount
:
this
.
roomGroup
,
AdultCount
:
this
.
numberOfAdults
,
childNum
:
this
.
numberOfChildren
,
searchroomGroup
:
this
.
msg
.
searchroomGroup
,
},
liveNvm
:
this
.
SimilarObj
.
liveNvm
,
roomOptionCd
:
item
,
detail
:
this
.
dataList
}
let
key
=
this
.
$md5
(
JSON
.
stringify
(
order
))
let
pickuporderHotal
=
localStorage
.
getItem
(
'pickuporderHotalDida'
)
pickuporderHotal
=
pickuporderHotal
?
JSON
.
parse
(
pickuporderHotal
):[]
pickuporderHotal
.
push
({
key
,
order
})
localStorage
.
setItem
(
"pickuporderHotalDida"
,
JSON
.
stringify
(
pickuporderHotal
))
this
.
CommonJump
(
'/HotalDidaForm/'
+
key
,
{});
},
// 获取道旅确认价格
getDiDaPriceConfirmList
(
item
){
let
msg
=
{
sort
:
1
,
displayFrom
:
1
,
CheckInDate
:
this
.
msg
.
CheckInDate
,
CheckOutDate
:
this
.
msg
.
CheckOutDate
,
searchroomGroup
:
this
.
msg
.
searchroomGroup
,
ratePlanID
:
item
.
RatePlanID
,
imgUrl
:
""
,
RoomCount
:
this
.
roomGroup
,
ChildCount
:
this
.
numberOfChildren
,
AdultCount
:
this
.
numberOfAdults
,
OccupancyDetails
:
[],
hotelId
:
this
.
msg
.
hotelId
,
}
this
.
apipost
(
'dmc_post_GetDiDaPriceConfirm'
,
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
.
data
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
})
},
getQueryName
(
type
){
getQueryName
(
type
){
if
(
type
==
1
){
if
(
type
==
1
){
this
.
qMsg
.
RoomTypeName
=
this
.
qMsg
.
RoomTypeName
!=
'房型(全部)'
?
this
.
qMsg
.
RoomTypeName
:
''
this
.
qMsg
.
RoomTypeName
=
this
.
qMsg
.
RoomTypeName
!=
'房型(全部)'
?
this
.
qMsg
.
RoomTypeName
:
''
...
@@ -1431,13 +1486,14 @@ export default {
...
@@ -1431,13 +1486,14 @@ export default {
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempObj
=
res
.
data
.
data
;
var
tempObj
=
res
.
data
.
data
;
this
.
dataList
=
res
.
data
.
data
this
.
dataList
=
res
.
data
.
data
t
his
.
dataList
.
images
=
t
empObj
.
images
.
filter
(
x
=>
{
tempObj
.
images
.
filter
(
x
=>
{
this
.
checkImageExists
(
x
,
(
exists
)
=>
{
this
.
checkImageExists
(
x
,
(
exists
)
=>
{
if
(
exists
){
if
(
exists
){
this
.
images
.
push
(
x
)
this
.
images
.
push
(
x
)
}
}
});
});
})
})
this
.
dataList
.
images
=
this
.
images
if
(
tempObj
.
HotelFacilityList
&&
tempObj
.
HotelFacilityList
.
length
>
0
)
{
if
(
tempObj
.
HotelFacilityList
&&
tempObj
.
HotelFacilityList
.
length
>
0
)
{
this
.
Facilities
=
tempObj
.
HotelFacilityList
;
this
.
Facilities
=
tempObj
.
HotelFacilityList
;
}
}
...
@@ -1451,7 +1507,7 @@ export default {
...
@@ -1451,7 +1507,7 @@ export default {
// this.hotelDetails.hotelDescription.push(x.replace(/<
\
/?[^>]+(>|$)/g, ""))
// this.hotelDetails.hotelDescription.push(x.replace(/<
\
/?[^>]+(>|$)/g, ""))
// })
// })
this.hotelDetails.hotelDescription = tempObj.description
this.hotelDetails.hotelDescription = tempObj.description
this.roomReviewRating = Number(this.
hotelDetails.roomReview
Rating);
this.roomReviewRating = Number(this.
dataList.Star
Rating);
this.travelLngLat.push({
this.travelLngLat.push({
Lat: tempObj.Latitude,
Lat: tempObj.Latitude,
Lng: tempObj.Longitude,
Lng: tempObj.Longitude,
...
...
src/pages/didaHotel/orderForm.vue
View file @
331a59bd
This diff is collapsed.
Click to expand it.
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