Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
dd237926
Commit
dd237926
authored
Aug 01, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
057cccd7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
265 additions
and
241 deletions
+265
-241
HotelDetails.vue
src/components/Hotel/DiDa/HotelDetails.vue
+11
-6
HotelList.vue
src/components/Hotel/DiDa/HotelList.vue
+7
-3
HotelSure.vue
src/components/Hotel/DiDa/HotelSure.vue
+247
-232
No files found.
src/components/Hotel/DiDa/HotelDetails.vue
View file @
dd237926
...
...
@@ -380,7 +380,9 @@
}
/
deep
/
.el-timeline
.el-timeline-item
.el-timeline-item__tail
{
margin-top
:
8px
!important
;
border-left
:
1px
dashed
#33B3FF
;
}
/
deep
/
.el-timeline-item
{
padding-bottom
:
0px
!important
;
}
...
...
@@ -423,13 +425,15 @@
<span
class=
"text-grey-8 q-pl-xs"
>
/起
</span>
</div>
<div
class=
"q-ml-md"
>
<div
class=
"q-ml-md"
v-if=
"DidaHotelDetails.StarRating&&DidaHotelDetails.StarRating>0"
>
<el-rate
v-model=
"startNum"
v-model=
"DidaHotelDetails.StarRating"
:max=
"getPrice(DidaHotelDetails.StarRating)"
size=
"3em"
disabled
color=
"orange"
readonly
show-score
/>
</div>
</div>
...
...
@@ -780,7 +784,8 @@
</tr>
<tr>
<td
v-for=
"( itemp, indexp ) in roomRateDetails.RatePlanList[0].PriceList"
:key=
"indexp"
><span
class=
"text-red"
>
{{subItem.Currency }} {{getPrice(itemp.Price) }}
</span>
<p
class=
"q-pt-sm"
><
template
>
<p
class=
"q-pt-sm"
>
<
template
>
<span
:class=
"itemp.MealAmount>0?'text-green':'' "
>
{{
getMealtype
(
itemp
.
MealType
)
}}
{{
itemp
.
MealAmount
>
0
?(
'×'
+
itemp
.
MealAmount
+
'份'
):
''
}}
</span>
...
...
@@ -876,6 +881,7 @@
<el-timeline-item
v-for=
"(itempo, indexpo) in itemp.List"
:key=
"indexpo"
color=
"#33B3FF"
>
<div
v-html=
"itempo.Description_CN"
style=
"line-height:27px;"
></div>
</el-timeline-item>
...
...
@@ -1027,7 +1033,7 @@ export default {
this
.
msg
.
CheckInDate
=
''
;
this
.
msg
.
CheckOutDate
=
''
;
}
this
.
$router
.
push
({
name
:
url
,
query
:{
"Address"
:
this
.
DidaHotelDetails
.
Address_CN
,
"RatePlanID"
:
row
.
RatePlanID
,
"hotelId"
:
this
.
msg
.
hotelId
,
"room"
:
this
.
room
,
"auditNum"
:
this
.
auditNum
,
"searchroomGroup"
:
encodeURIComponent
(
JSON
.
stringify
(
this
.
msg
.
searchroomGroup
)),
"StartDate"
:
this
.
msg
.
CheckInDate
,
"EndDate"
:
this
.
msg
.
CheckOutDate
,
"childNum"
:
this
.
childNum
,
blank
:
'y'
,
tab
:
'道旅酒店预定'
}})
this
.
$router
.
push
({
name
:
url
,
query
:{
"
tel"
:
this
.
DidaHotelDetails
.
Telephone
,
"HotelName"
:
this
.
DidaHotelDetails
.
Name_CN
,
"
Address"
:
this
.
DidaHotelDetails
.
Address_CN
,
"RatePlanID"
:
row
.
RatePlanID
,
"hotelId"
:
this
.
msg
.
hotelId
,
"room"
:
this
.
room
,
"auditNum"
:
this
.
auditNum
,
"searchroomGroup"
:
encodeURIComponent
(
JSON
.
stringify
(
this
.
msg
.
searchroomGroup
)),
"StartDate"
:
this
.
msg
.
CheckInDate
,
"EndDate"
:
this
.
msg
.
CheckOutDate
,
"childNum"
:
this
.
childNum
,
blank
:
'y'
,
tab
:
'道旅酒店预定'
}})
},
//设置房间里面成人数改变总成人数和儿童数
setPeopleNum
()
{
...
...
@@ -1085,7 +1091,7 @@ export default {
this
.
DidaHotelDetails
=
res
.
data
.
data
this
.
initMap
(
this
.
DidaHotelDetails
.
Longitude
,
this
.
DidaHotelDetails
.
Latitude
,
this
.
DidaHotelDetails
.
Name_CN
)
if
(
this
.
DidaHotelDetails
.
StarRating
){
this
.
startNum
=
parseFloat
(
this
.
DidaHotelDetails
.
StarRating
);
this
.
startNum
=
Math
.
ceil
(
this
.
DidaHotelDetails
.
StarRating
);
}
}
},
null
)
...
...
@@ -1197,7 +1203,6 @@ export default {
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Policy
=
res
.
data
.
data
;
console
.
log
(
"this.Policy"
,
this
.
Policy
);
}
},
null
)
},
...
...
src/components/Hotel/DiDa/HotelList.vue
View file @
dd237926
...
...
@@ -197,11 +197,12 @@
<div
class=
"hotelDiv"
style=
"width:100%;margin-bottom:12px;"
>
<div
style=
"width:85%;"
>
<div
class=
"side-hotel-map__marker q-pr-lg"
>
{{
index
+
1
}}
</div>
<div
class=
"hotelname "
@
click=
"goUrlT('HotelDetails', item.hotelId)"
><p
><span
class=
"hotelnamespan"
>
{{
item
.
hotelName
}}
</span>
<span
style=
"font-size:12px;color:#606266;margin-left:8px;"
>
{{
item
.
hotelEName
}}
</span></p></div>
<div
class=
"hotelname "
><p
><span
class=
"hotelnamespan"
>
{{
item
.
hotelName
}}
</span>
<span
style=
"font-size:12px;color:#606266;margin-left:8px;"
>
{{
item
.
hotelEName
}}
</span></p></div>
</div>
<div
style=
"width:15%;"
><el-rate
v-model=
"item.reviewRating"
disabled
:max=
"getPrice(item.reviewRating)"
show-score
text-color=
"#ff9900"
:colors=
"['orange','orange','orange','orange','orange']"
...
...
@@ -249,7 +250,7 @@
<span
class=
"nd-price-tag__currency nd-price-tag"
>
CNY
</span>
<span
class=
"nd-price-tag__price nd-price-tag"
style=
"font-weight: bolder !important;font-size: 20px;"
>
{{item.lowrateBySetCurrency}}
</span>
<span
class=
"nd-price-tag"
>
起
</span>
<el-button
round
class=
"nd-reserve-btn"
@
click=
"goUrlT('HotelDetails', item.hotelId)"
>
查看详情
</el-button>
<el-button
round
class=
"nd-reserve-btn"
@
click=
"goUrlT('HotelDetails', item.hotelId)"
>
立即预订
</el-button>
</div>
</div>
</div>
...
...
@@ -420,7 +421,10 @@ export default {
this
.
companyList
=
res
.
data
.
data
;
}
},
null
)
}
},
getPrice
(
price
)
{
return
Math
.
ceil
(
price
);
},
},
mounted
()
{
var
DateTime
=
new
Date
();
...
...
src/components/Hotel/DiDa/HotelSure.vue
View file @
dd237926
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