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
d982de17
Commit
d982de17
authored
Apr 24, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3c19873b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
date.vue
pages/hotel/components/time/date.vue
+1
-1
index.vue
pages/hotel/components/time/index.vue
+17
-13
No files found.
pages/hotel/components/time/date.vue
View file @
d982de17
...
...
@@ -4,7 +4,7 @@
height: 100%;
display: flex;
flex-direction: column;"
>
<view
style=
"width: 100%; height: 740rpx"
>
<view
style=
"width: 100%; height: 740rpx
;
"
>
<canlendar
v-if=
"showTimePopup"
:defaultDate=
"dayObj.start"
@
finish=
"chosenDateResult"
title=
"日期和人数"
></canlendar>
...
...
pages/hotel/components/time/index.vue
View file @
d982de17
...
...
@@ -3,7 +3,6 @@
<scroll-view
:scroll-y=
"true"
class=
"hotelSign-scroll"
scroll-with-animation=
"true"
style=
"height: 100%; flex: 1; box-sizing: border-box"
:scroll-top=
"scrollTop"
>
...
...
@@ -14,9 +13,10 @@
color: #111;
text-align: center;
padding: 30rpx 0;
"
>
<text>
{{
title
}}
</text>
display: flex;
"
>
<text
style=
"width: 1px;flex: 1;"
>
{{
title
}}
</text>
<u-icon
class=
"close"
name=
"close"
color=
"#000"
size=
"50"
@
click=
"submit"
/>
</view>
<view
class=
"week"
>
<view>
日
</view>
...
...
@@ -231,6 +231,14 @@ export default {
this
.
end
=
this
.
setDefaultDate
(
this
.
getDefaultDate
(
1
));
},
});
setTimeout
(()
=>
{
const
that
=
this
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
query
.
selectAll
(
'.hotelSign-scroll'
).
boundingClientRect
((
rects
)
=>
{
that
.
scrollHeight
=
rects
[
0
].
height
that
.
calcDefautlOffset
()
}).
exec
();
},
300
)
// #ifdef MP-ALIPAY
uni
.
setNavigationBarTitle
({
title
:
""
,
...
...
@@ -264,14 +272,7 @@ export default {
// }
// });
// }
setTimeout
(()
=>
{
const
that
=
this
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
query
.
selectAll
(
'.hotelSign-scroll'
).
boundingClientRect
((
rects
)
=>
{
that
.
scrollHeight
=
rects
[
0
].
height
that
.
calcDefautlOffset
()
}).
exec
();
},
500
)
},
onShow
(){
...
...
@@ -729,7 +730,10 @@ export default {
};
</
script
>
<
style
>
<
style
scoped
>
.close
{
margin-right
:
30
rpx
;
}
/**确认按钮**/
.submit
{
width
:
100%
;
...
...
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