Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
1c1583ad
Commit
1c1583ad
authored
Jul 22, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改酒店
parent
265e724a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
HotelDetail.vue
src/components/Hotel/HotelDetail.vue
+8
-0
HotelHome.vue
src/components/Hotel/HotelHome.vue
+9
-0
HotelList.vue
src/components/Hotel/HotelList.vue
+9
-0
HotelSure.vue
src/components/Hotel/HotelSure.vue
+2
-2
No files found.
src/components/Hotel/HotelDetail.vue
View file @
1c1583ad
...
@@ -1142,6 +1142,14 @@ export default {
...
@@ -1142,6 +1142,14 @@ export default {
},
},
//获取符合条件房型
//获取符合条件房型
getSimilar
(){
getSimilar
(){
if
(
this
.
SimilarMsg
.
arrivalDate
==
null
){
this
.
Error
(
'请选择入住日期'
);
return
}
if
(
this
.
SimilarMsg
.
departureDate
==
null
){
this
.
Error
(
'请选择退房日期'
);
return
}
this
.
apipost
(
"dmc_post_Get_GetJAPAN_RoomsList"
,
this
.
SimilarMsg
,
res
=>
{
this
.
apipost
(
"dmc_post_Get_GetJAPAN_RoomsList"
,
this
.
SimilarMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
Object
.
prototype
.
toString
.
call
(
res
.
data
.
data
.
roomRateDetails
)
==
'[object Object]'
){
if
(
Object
.
prototype
.
toString
.
call
(
res
.
data
.
data
.
roomRateDetails
)
==
'[object Object]'
){
...
...
src/components/Hotel/HotelHome.vue
View file @
1c1583ad
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
style=
"width:290px;"
style=
"width:290px;"
v-model=
"dateList"
v-model=
"dateList"
type=
"daterange"
type=
"daterange"
@
change=
"getInOutDate"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
range-separator=
"-"
range-separator=
"-"
:picker-options=
"pickerOptions0"
:picker-options=
"pickerOptions0"
...
@@ -342,6 +343,14 @@ export default {
...
@@ -342,6 +343,14 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
//结束日期默认加1
getInOutDate
(){
if
(
this
.
dateList
){
if
(
this
.
dateList
[
0
]
==
this
.
dateList
[
1
]){
this
.
dateList
[
1
]
=
moment
(
this
.
dateList
[
0
]).
add
(
1
,
'days'
).
format
(
'YYYY-MM-DD'
)
}
}
},
//查询
//查询
Search
()
{
Search
()
{
if
(
this
.
dateList
){
if
(
this
.
dateList
){
...
...
src/components/Hotel/HotelList.vue
View file @
1c1583ad
...
@@ -425,6 +425,7 @@
...
@@ -425,6 +425,7 @@
<el-date-picker
<el-date-picker
v-model=
"dateList"
v-model=
"dateList"
type=
"daterange"
type=
"daterange"
@
change=
"getInOutDate"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
range-separator=
"-"
range-separator=
"-"
:picker-options=
"pickerOptions0"
:picker-options=
"pickerOptions0"
...
@@ -906,6 +907,14 @@ export default {
...
@@ -906,6 +907,14 @@ export default {
HTMap
HTMap
},
},
methods
:
{
methods
:
{
//结束日期默认加1
getInOutDate
(){
if
(
this
.
dateList
){
if
(
this
.
dateList
[
0
]
==
this
.
dateList
[
1
]){
this
.
dateList
[
1
]
=
moment
(
this
.
dateList
[
0
]).
add
(
1
,
'days'
).
format
(
'YYYY-MM-DD'
)
}
}
},
CurrentChange
(
val
)
{
CurrentChange
(
val
)
{
this
.
msg
.
displayFrom
=
val
;
this
.
msg
.
displayFrom
=
val
;
this
.
SearchHotel
();
this
.
SearchHotel
();
...
...
src/components/Hotel/HotelSure.vue
View file @
1c1583ad
...
@@ -367,7 +367,7 @@
...
@@ -367,7 +367,7 @@
</el-date-picker>
</el-date-picker>
<
template
v-if=
"dataList.roomRateDetails"
>
<
template
v-if=
"dataList.roomRateDetails"
>
{{
'周'
+
checkInWeek
}}
<span
class=
"HS2_title"
style=
"margin:0 10px;"
>
{{
'周'
+
checkInWeek
}}
<span
class=
"HS2_title"
style=
"margin:0 10px;"
>
{{
dataList
.
roomRateDetails
.
roomOptions
[
'
finalCheck-in
Time'
]
}}
之后
</span>
{{
dataList
.
roomRateDetails
.
roomOptions
[
'
check-inStart
Time'
]
}}
之后
</span>
</
template
>
</
template
>
<div
class=
"HS_Line"
></div>
<div
class=
"HS_Line"
></div>
<el-date-picker
class=
"date_input"
v-model=
"msg.departureDate"
@
change=
"getDateInfo()"
style=
"width:130px;"
prefix-icon=
"none"
clear-icon=
""
<el-date-picker
class=
"date_input"
v-model=
"msg.departureDate"
@
change=
"getDateInfo()"
style=
"width:130px;"
prefix-icon=
"none"
clear-icon=
""
...
@@ -378,7 +378,7 @@
...
@@ -378,7 +378,7 @@
</el-date-picker>
</el-date-picker>
<
template
v-if=
"dataList.roomRateDetails"
>
<
template
v-if=
"dataList.roomRateDetails"
>
{{
'周'
+
checkOutWeek
}}
<span
class=
"HS2_title"
style=
"margin:0 10px;"
>
{{
'周'
+
checkOutWeek
}}
<span
class=
"HS2_title"
style=
"margin:0 10px;"
>
{{
dataList
.
roomRateDetails
.
roomOptions
[
'finalCheck-
out
Time'
]
}}
之前
</span>
{{
dataList
.
roomRateDetails
.
roomOptions
[
'finalCheck-
in
Time'
]
}}
之前
</span>
</
template
>
</
template
>
</li>
</li>
<!-- <li>
<!-- <li>
...
...
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