Commit 73e734a2 by 李伟康

修改日历高度

1 parent d949b7fa
......@@ -10,6 +10,10 @@ body .app {
height: 100%;
// overflow: hidden;
--themeColor: #3975C6;
/* 兼容 IOS<11.2 先constant再env */
--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
/* 兼容 IOS>11.2 */
--envSafeAreaInsetBottom: env(safe-area-inset-bottom);
}
img {
......
......@@ -3,11 +3,16 @@
v-model="show"
position="bottom"
class="date-popup"
closeable
round
@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-subtitle">推送日期</div>
<div class="date-list flex">
......@@ -122,11 +127,13 @@ export default {
max-height: 95%;
/deep/.van-popup__close-icon {
z-index: 3;
margin-left: auto;
position: static;
}
/deep/.van-calendar__day {
font-size: 14px;
}
/deep/.van-calendar__month-title{
/deep/.van-calendar__month-title {
height: 32px;
line-height: 32px;
}
......@@ -135,7 +142,7 @@ export default {
bottom: 2px;
}
.date-title {
height: 56px;
height: 44px;
padding: 0 16px;
font-weight: 500;
font-size: 16px;
......@@ -146,7 +153,8 @@ export default {
top: 0;
}
.date-box {
padding: 16px;
padding: 16px 16px calc(var(--constantSafeAreaInsetBottom) + 76px);
padding: 16px 16px calc(var(--envSafeAreaInsetBottom) + 76px);
.date-subtitle {
font-size: 14px;
color: #333333;
......@@ -171,14 +179,16 @@ export default {
}
}
.calendar {
height: 380px;
margin-bottom: 10px;
height: 320px;
}
}
.date-btn {
position: sticky;
bottom: 0;
position: fixed;
left: 16px;
bottom: calc(var(--constantSafeAreaInsetBottom) + 16px);
bottom: calc(var(--envSafeAreaInsetBottom) + 16px);
z-index: 2;
width: calc(100% - 32px);
}
}
</style>
\ 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!