feat(home): 日视图swiper轮播+老黄历方框合并+引入lunar-javascript真实宜忌
Publish Mini Program Dev Version / publish (push) Has been cancelled
Publish Mini Program Dev Version / publish (push) Has been cancelled
1. 日视图改为swiper轮播,左右滑动切换日期,箭头固定在最左最右 2. 大日期方框扩大到包含农历和干支 3. 生肖(马年)移到导航栏右侧 4. 星期移到工作日提示左侧 5. 引入lunar-javascript(6tail库),用真实宜忌(最多20+项)替换手写4-5项 6. 值神/黄道详情样式调整:label大、value小、加间隔 7. 去掉点击放大提示
This commit is contained in:
+114
-55
@@ -40,11 +40,29 @@
|
||||
|
||||
.nav-right {
|
||||
min-width: 96rpx;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.nav-zodiac {
|
||||
color: #FFFFFF;
|
||||
font-size: 24rpx;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.page-body {
|
||||
box-sizing: border-box;
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 日视图 swiper */
|
||||
.day-swiper {
|
||||
height: calc(100vh - 88px);
|
||||
}
|
||||
|
||||
.day-scroll {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
@@ -52,7 +70,33 @@
|
||||
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;
|
||||
padding: 32rpx 24rpx 24rpx;
|
||||
@@ -92,12 +136,6 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.almanac-week {
|
||||
font-size: 24rpx;
|
||||
color: #9E8E7E;
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
|
||||
.head-tags {
|
||||
display: flex;
|
||||
gap: 12rpx;
|
||||
@@ -124,20 +162,13 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 8rpx 0;
|
||||
margin: 16rpx 0;
|
||||
}
|
||||
|
||||
.almanac-day-num {
|
||||
font-size: 200rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1.05;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 老黄历方框 */
|
||||
/* 老黄历方框(包含农历和干支) */
|
||||
.day-frame {
|
||||
min-width: 360rpx;
|
||||
height: 300rpx;
|
||||
min-width: 480rpx;
|
||||
padding: 32rpx 40rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -147,6 +178,40 @@
|
||||
box-shadow: inset 0 0 0 4rpx #FFFDF8, inset 0 0 0 6rpx currentColor;
|
||||
}
|
||||
|
||||
.day-frame-inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.almanac-day-num {
|
||||
font-size: 180rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.day-frame-lunar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
padding-top: 16rpx;
|
||||
border-top: 2rpx solid currentColor;
|
||||
}
|
||||
|
||||
.day-frame-lunar-main {
|
||||
font-size: 40rpx;
|
||||
font-weight: 600;
|
||||
color: #1A1A1A;
|
||||
}
|
||||
|
||||
.day-frame-lunar-sub {
|
||||
font-size: 22rpx;
|
||||
color: #9E8E7E;
|
||||
}
|
||||
|
||||
.frame-holiday { border-color: #C41E3A; color: #C41E3A; }
|
||||
.frame-workday { border-color: #2E7D32; color: #2E7D32; }
|
||||
.frame-weekend { border-color: #C41E3A; color: #C41E3A; }
|
||||
@@ -155,32 +220,6 @@
|
||||
.num-workday { color: #2E7D32; }
|
||||
.num-weekend { color: #C41E3A; }
|
||||
|
||||
.day-arrow {
|
||||
font-size: 72rpx;
|
||||
color: #C9B8A6;
|
||||
padding: 0 28rpx;
|
||||
}
|
||||
|
||||
/* 农历 */
|
||||
.almanac-lunar {
|
||||
text-align: center;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.almanac-lunar-main {
|
||||
font-size: 48rpx;
|
||||
font-weight: 600;
|
||||
color: #1A1A1A;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.almanac-lunar-sub {
|
||||
font-size: 24rpx;
|
||||
color: #9E8E7E;
|
||||
display: block;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
|
||||
/* 节日(固定高度占位) */
|
||||
.almanac-fest {
|
||||
display: flex;
|
||||
@@ -225,7 +264,7 @@
|
||||
color: #B8860B;
|
||||
}
|
||||
|
||||
/* 工作日/节假日提示 */
|
||||
/* 星期 + 工作日/节假日提示 */
|
||||
.day-type-tip {
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
@@ -302,13 +341,6 @@
|
||||
.yiji-item.yi { background: #FEF2F2; color: #C41E3A; }
|
||||
.yiji-item.ji { background: #F1F5F9; color: #546E7A; }
|
||||
|
||||
.zoom-hint {
|
||||
text-align: center;
|
||||
font-size: 20rpx;
|
||||
color: #C9B8A6;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
@@ -316,6 +348,36 @@
|
||||
color: #C41E3A;
|
||||
}
|
||||
|
||||
/* 黄历详情(label 大、value 小、加间隔) */
|
||||
.detail-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.detail-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24rpx;
|
||||
padding: 16rpx;
|
||||
background: #FFFBF5;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
|
||||
.detail-label {
|
||||
font-size: 28rpx;
|
||||
color: #9E8E7E;
|
||||
min-width: 140rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.detail-value {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #1A1A1A;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* 节日速查 */
|
||||
.fest-quick {
|
||||
display: flex;
|
||||
@@ -619,6 +681,3 @@
|
||||
padding: 4rpx 24rpx;
|
||||
border-radius: 999rpx;
|
||||
}
|
||||
|
||||
|
||||
/* CI trigger: 节气修复部署 */
|
||||
|
||||
Reference in New Issue
Block a user