fix(home): 修复箭头无限循环+日期框竖长型+宜忌放大框+月历横向
Publish Mini Program Dev Version / publish (push) Successful in 3m10s
Publish Mini Program Dev Version / publish (push) Successful in 3m10s
1. 箭头放到大框里面,点击不触发swiper无限循环 2. 日期框改为竖长型(min-height 800rpx) 3. 宜忌放到大框里面,包含日期/农历/干支/节日/星期/宜忌 4. 月历确认横向滑动(vertical=false)
This commit is contained in:
+88
-121
@@ -70,32 +70,6 @@
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
|
||||
/* 固定左右箭头 */
|
||||
.day-arrow-fixed {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 72rpx;
|
||||
color: #C9B8A6;
|
||||
z-index: 50;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.day-arrow-fixed.left {
|
||||
left: 10rpx;
|
||||
}
|
||||
|
||||
.day-arrow-fixed.right {
|
||||
right: 10rpx;
|
||||
}
|
||||
|
||||
/* ===== 老黄历大日历卡片 ===== */
|
||||
.almanac-card {
|
||||
border-radius: 24rpx;
|
||||
@@ -128,6 +102,7 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.almanac-year {
|
||||
@@ -157,41 +132,65 @@
|
||||
border-radius: 999rpx;
|
||||
}
|
||||
|
||||
/* 大日期 */
|
||||
.almanac-day-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 16rpx 0;
|
||||
}
|
||||
|
||||
/* 老黄历方框(包含农历和干支) */
|
||||
/* 大日期方框(竖长型,包含所有信息) */
|
||||
.day-frame {
|
||||
min-width: 480rpx;
|
||||
padding: 32rpx 40rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
justify-content: space-between;
|
||||
border: 6rpx solid;
|
||||
border-radius: 16rpx;
|
||||
background: #FFFDF8;
|
||||
box-shadow: inset 0 0 0 4rpx #FFFDF8, inset 0 0 0 6rpx currentColor;
|
||||
padding: 24rpx 16rpx;
|
||||
min-height: 800rpx;
|
||||
}
|
||||
|
||||
.day-frame-inner {
|
||||
.frame-holiday { border-color: #C41E3A; color: #C41E3A; }
|
||||
.frame-workday { border-color: #2E7D32; color: #2E7D32; }
|
||||
.frame-weekend { border-color: #C41E3A; color: #C41E3A; }
|
||||
|
||||
/* 箭头(在大框里面,竖向居中) */
|
||||
.day-arrow-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 64rpx;
|
||||
color: #C9B8A6;
|
||||
width: 60rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.day-arrow-inner.left {
|
||||
border-right: 1rpx solid #F0E6DA;
|
||||
}
|
||||
|
||||
.day-arrow-inner.right {
|
||||
border-left: 1rpx solid #F0E6DA;
|
||||
}
|
||||
|
||||
/* 中间内容(竖向排列) */
|
||||
.day-frame-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
justify-content: center;
|
||||
gap: 20rpx;
|
||||
padding: 0 16rpx;
|
||||
}
|
||||
|
||||
.almanac-day-num {
|
||||
font-size: 180rpx;
|
||||
font-size: 200rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.num-holiday { color: #C41E3A; }
|
||||
.num-workday { color: #2E7D32; }
|
||||
.num-weekend { color: #C41E3A; }
|
||||
|
||||
/* 农历 */
|
||||
.day-frame-lunar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -202,7 +201,7 @@
|
||||
}
|
||||
|
||||
.day-frame-lunar-main {
|
||||
font-size: 40rpx;
|
||||
font-size: 44rpx;
|
||||
font-weight: 600;
|
||||
color: #1A1A1A;
|
||||
}
|
||||
@@ -212,134 +211,102 @@
|
||||
color: #9E8E7E;
|
||||
}
|
||||
|
||||
.frame-holiday { border-color: #C41E3A; color: #C41E3A; }
|
||||
.frame-workday { border-color: #2E7D32; color: #2E7D32; }
|
||||
.frame-weekend { border-color: #C41E3A; color: #C41E3A; }
|
||||
|
||||
.num-holiday { color: #C41E3A; }
|
||||
.num-workday { color: #2E7D32; }
|
||||
.num-weekend { color: #C41E3A; }
|
||||
|
||||
/* 节日(固定高度占位) */
|
||||
.almanac-fest {
|
||||
/* 节日/节气 */
|
||||
.day-frame-fest {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 12rpx;
|
||||
margin-bottom: 12rpx;
|
||||
min-height: 52rpx;
|
||||
}
|
||||
|
||||
.badge-holiday {
|
||||
background: #C41E3A;
|
||||
color: #FFFFFF;
|
||||
.frame-badge {
|
||||
font-size: 24rpx;
|
||||
padding: 6rpx 24rpx;
|
||||
border-radius: 999rpx;
|
||||
}
|
||||
|
||||
.badge-festival {
|
||||
.frame-badge-holiday {
|
||||
background: #C41E3A;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.badge-term {
|
||||
.frame-badge-festival {
|
||||
background: #C41E3A;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.frame-badge-term {
|
||||
background: #2E7D32;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
/* 佛历提醒(固定高度占位) */
|
||||
.buddhist-tip {
|
||||
text-align: center;
|
||||
padding: 12rpx;
|
||||
margin-bottom: 8rpx;
|
||||
min-height: 50rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.buddhist-text {
|
||||
/* 星期 + 工作日 */
|
||||
.day-frame-week {
|
||||
font-size: 26rpx;
|
||||
color: #B8860B;
|
||||
}
|
||||
|
||||
/* 星期 + 工作日/节假日提示 */
|
||||
.day-type-tip {
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
padding: 12rpx;
|
||||
border-radius: 12rpx;
|
||||
margin-top: 8rpx;
|
||||
color: #6B5E53;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tip-holiday {
|
||||
color: #C41E3A;
|
||||
background: rgba(196, 30, 58, 0.08);
|
||||
}
|
||||
|
||||
.tip-workday {
|
||||
color: #2E7D32;
|
||||
background: rgba(46, 125, 50, 0.08);
|
||||
}
|
||||
|
||||
.tip-weekend {
|
||||
color: #C41E3A;
|
||||
background: rgba(196, 30, 58, 0.08);
|
||||
}
|
||||
|
||||
/* 宜忌 */
|
||||
.yiji-card {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.yiji-row {
|
||||
/* 宜忌(在大框里面) */
|
||||
.day-frame-yiji {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16rpx;
|
||||
padding-top: 20rpx;
|
||||
border-top: 2rpx solid #F0E6DA;
|
||||
}
|
||||
|
||||
.yiji-col {
|
||||
flex: 1;
|
||||
.frame-yiji-row {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.yiji-divider {
|
||||
width: 1rpx;
|
||||
background: #F0E6DA;
|
||||
margin: 0 16rpx;
|
||||
}
|
||||
|
||||
.yiji-title {
|
||||
.frame-yiji-title {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 30rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.yiji-title.yi { background: #C41E3A; color: #FFFFFF; }
|
||||
.yiji-title.ji { background: #546E7A; color: #FFFFFF; }
|
||||
.frame-yiji-title.yi { background: #C41E3A; color: #FFFFFF; }
|
||||
.frame-yiji-title.ji { background: #546E7A; color: #FFFFFF; }
|
||||
|
||||
.yiji-items {
|
||||
.frame-yiji-items {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8rpx;
|
||||
align-content: flex-start;
|
||||
}
|
||||
|
||||
.yiji-item {
|
||||
font-size: 26rpx;
|
||||
padding: 4rpx 14rpx;
|
||||
.frame-yiji-item {
|
||||
font-size: 24rpx;
|
||||
padding: 4rpx 12rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.yiji-item.yi { background: #FEF2F2; color: #C41E3A; }
|
||||
.yiji-item.ji { background: #F1F5F9; color: #546E7A; }
|
||||
.frame-yiji-item.yi { background: #FEF2F2; color: #C41E3A; }
|
||||
.frame-yiji-item.ji { background: #F1F5F9; color: #546E7A; }
|
||||
|
||||
/* 佛历提醒 */
|
||||
.buddhist-tip {
|
||||
text-align: center;
|
||||
padding: 16rpx 12rpx 0;
|
||||
}
|
||||
|
||||
.buddhist-text {
|
||||
font-size: 26rpx;
|
||||
color: #B8860B;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 28rpx;
|
||||
|
||||
Reference in New Issue
Block a user