Commit 73e734a2 by 李伟康

修改日历高度

1 parent d949b7fa
...@@ -10,6 +10,10 @@ body .app { ...@@ -10,6 +10,10 @@ body .app {
height: 100%; height: 100%;
// overflow: hidden; // overflow: hidden;
--themeColor: #3975C6; --themeColor: #3975C6;
/* 兼容 IOS<11.2 先constant再env */
--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
/* 兼容 IOS>11.2 */
--envSafeAreaInsetBottom: env(safe-area-inset-bottom);
} }
img { img {
......
...@@ -3,11 +3,16 @@ ...@@ -3,11 +3,16 @@
v-model="show" v-model="show"
position="bottom" position="bottom"
class="date-popup" class="date-popup"
closeable
round round
@close="close" @close="close"
> >
<div class="date-title flex">时间选择</div> <div class="date-title flex">
时间选择
<i
class="van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-right"
@click="close"
></i>
</div>
<div class="date-box"> <div class="date-box">
<div class="date-subtitle">推送日期</div> <div class="date-subtitle">推送日期</div>
<div class="date-list flex"> <div class="date-list flex">
...@@ -122,11 +127,13 @@ export default { ...@@ -122,11 +127,13 @@ export default {
max-height: 95%; max-height: 95%;
/deep/.van-popup__close-icon { /deep/.van-popup__close-icon {
z-index: 3; z-index: 3;
margin-left: auto;
position: static;
} }
/deep/.van-calendar__day { /deep/.van-calendar__day {
font-size: 14px; font-size: 14px;
} }
/deep/.van-calendar__month-title{ /deep/.van-calendar__month-title {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
} }
...@@ -135,7 +142,7 @@ export default { ...@@ -135,7 +142,7 @@ export default {
bottom: 2px; bottom: 2px;
} }
.date-title { .date-title {
height: 56px; height: 44px;
padding: 0 16px; padding: 0 16px;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
...@@ -146,7 +153,8 @@ export default { ...@@ -146,7 +153,8 @@ export default {
top: 0; top: 0;
} }
.date-box { .date-box {
padding: 16px; padding: 16px 16px calc(var(--constantSafeAreaInsetBottom) + 76px);
padding: 16px 16px calc(var(--envSafeAreaInsetBottom) + 76px);
.date-subtitle { .date-subtitle {
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
...@@ -171,14 +179,16 @@ export default { ...@@ -171,14 +179,16 @@ export default {
} }
} }
.calendar { .calendar {
height: 380px; height: 320px;
margin-bottom: 10px;
} }
} }
.date-btn { .date-btn {
position: sticky; position: fixed;
bottom: 0; left: 16px;
bottom: calc(var(--constantSafeAreaInsetBottom) + 16px);
bottom: calc(var(--envSafeAreaInsetBottom) + 16px);
z-index: 2; z-index: 2;
width: calc(100% - 32px);
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!