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
022c8cac
Commit
022c8cac
authored
Jun 01, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
42997b7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
detail.vue
pages/hotel/detail.vue
+14
-4
list.vue
pages/hotel/list.vue
+3
-0
No files found.
pages/hotel/detail.vue
View file @
022c8cac
...
...
@@ -98,12 +98,12 @@
<view
class=
"date-box flex"
@
click=
"showTimePopup=true"
>
<view
class=
"date"
>
<text>
{{
roomMsg
.
StartDate
}}
</text>
<text
class=
"date-week"
>
{{
s
earchObj
.
date
.
s
tartWeek
}}
</text>
<text
class=
"date-week"
>
{{
startWeek
}}
</text>
</view>
<view
class=
"hr-line"
></view>
<view
class=
"date"
>
<text>
{{
roomMsg
.
EndDate
}}
</text>
<text
class=
"date-week"
>
{{
searchObj
.
date
.
endWeek
}}
</text>
<text
class=
"date-week"
>
{{
endWeek
}}
</text>
</view>
<view
class=
"ver-line"
></view>
<view
class=
"date"
>
...
...
@@ -221,6 +221,8 @@
StartDate
:
''
,
EndDate
:
''
},
startWeek
:
''
,
endWeek
:
''
,
day
:
0
,
threeLevelList
:
[{
name
:
"单人床"
,
...
...
@@ -285,7 +287,8 @@
this
.
roomMsg
.
StartDate
=
tempDay
.
StartDate
;
this
.
roomMsg
.
EndDate
=
tempDay
.
EndDate
;
this
.
day
=
tempDay
.
day
;
console
.
log
(
options
.
dayObj
);
this
.
startWeek
=
tempDay
.
startWeek
;
this
.
endWeek
=
tempDay
.
endWeek
;
}
},
methods
:
{
...
...
@@ -315,8 +318,15 @@
url
:
"/pages/hotel/description"
})
},
//返回周几
getWeek
(
date
){
console
.
log
(
date
,
'date'
);
var
weekArray
=
new
Array
(
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
);
var
week
=
weekArray
[
new
Date
(
date
).
getDay
()];
//注意此处必须是先new一个Date
return
'周'
+
week
;
},
chosenDateResult
(
obj
)
{
console
.
log
(
obj
,
'objjjj'
);
obj
.
startDay
=
this
.
formatMonthDay
(
obj
.
startDay
)
obj
.
endDay
=
this
.
formatMonthDay
(
obj
.
endDay
)
this
.
searchObj
.
date
=
obj
...
...
pages/hotel/list.vue
View file @
022c8cac
...
...
@@ -226,11 +226,14 @@
this
.
getList
(
1
);
},
chosenDateResult
(
obj
)
{
console
.
log
(
obj
,
'obj'
);
this
.
searchObj
.
QStartDate
=
obj
.
start
;
this
.
searchObj
.
QEndDate
=
obj
.
end
;
this
.
startDay
=
obj
.
startDay
;
this
.
endDay
=
obj
.
endDay
;
this
.
day
=
obj
.
day
;
this
.
dayObj
.
startWeek
=
obj
.
startWeek
;
this
.
dayObj
.
endWeek
=
obj
.
endWeek
;
this
.
getList
(
1
);
this
.
showTimePopup
=
false
},
...
...
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