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
d9d7b5ee
Commit
d9d7b5ee
authored
May 09, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
d50bbd0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
index.vue
pages/hotel/components/time/index.vue
+2
-3
No files found.
pages/hotel/components/time/index.vue
View file @
d9d7b5ee
...
...
@@ -52,7 +52,7 @@
(
line
<
=
end
[
0
]
&&
index
<
end
[
1
]
&&
line
>
start[0]) ||
(line
<
end
[
0
]
&&
line
>
start[0])
? 'bg-higlt-orange': '',
(
(line==0||line==1)
&&
index + 1
<
nowDay
)||
res
.
month
<nowMonth
?
'
time-out
'
:
'',
(
line == 0
&&
index + 1
<
nowDay
)||
resDate
[
line
]
.
month
<nowMonth
?
'
time-out
'
:
'',
isNaN
(
item
)
?
'
is-festival
'
:
'',
(
isNaN
(
item
)
&&
line =
=
start
[
0
]
&&
index =
=
start
[
1
])
||
(
isNaN
(
item
)
&&
line =
=
end
[
0
]
&&
index =
=
end
[
1
])
...
...
@@ -211,7 +211,6 @@ export default {
},
});
this
.
setDate
();
// this.nowDay = new Date().getDate()
/*默认入住离店日期,今日入住明日离店,此处应在setDefaultDate函数内传入vuex里保存的日期进行默认操作
*不推荐使用本地缓存,下边只是使用缓存的示例
...
...
@@ -452,7 +451,7 @@ export default {
//选择入住离开
selectDay
(
line
,
index
)
{
if
((
(
line
==
0
||
line
==
1
)
&&
index
+
1
<
this
.
nowDay
)
||
this
.
resDate
[
line
].
month
<
this
.
nowMonth
)
return
;
if
((
line
==
0
&&
index
+
1
<
this
.
nowDay
)
||
this
.
resDate
[
line
].
month
<
this
.
nowMonth
)
return
;
//如果有入住情况和价格则需要进行一些列的判断
if
(
this
.
priceStauts
.
length
>
0
)
{
if
(
...
...
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