- 八字页:未绑定生辰时展示虚构示例排盘(1990-08-08 10:30男)与15条字段说明, 附传统文化声明文案;已绑定时支持多档案切换,排盘增强(十神/藏干/纳音/五行配色/命盘概览) - 个人中心:新增生辰管理卡片,每用户免费绑定3个出生年月;登录改为真实微信登录 - 服务端:新增 BirthProfile 模型与 /api/user/birth-profiles 增删查接口,AutoMigrate 建表 - 前端:新增 birth-profile.js 本地存储优先+登录后云端双向同步 - 修复:个人中心 tabBar 页面入口误用 navigateTo 改为 switchTab
285 lines
4.2 KiB
Plaintext
285 lines
4.2 KiB
Plaintext
.container {
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
margin-bottom: 16rpx;
|
|
color: #C41E3A;
|
|
}
|
|
|
|
/* 文化声明卡片 */
|
|
.culture-card {
|
|
background: linear-gradient(135deg, #C41E3A 0%, #8B1A2B 100%);
|
|
border-radius: 24rpx;
|
|
padding: 28rpx 24rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.culture-title {
|
|
color: #FFFFFF;
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.culture-text {
|
|
color: rgba(255, 255, 255, 0.92);
|
|
font-size: 24rpx;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
/* 空态卡片 */
|
|
.empty-card {
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-title {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #1A1A1A;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.empty-desc {
|
|
font-size: 24rpx;
|
|
color: #6B5E53;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
/* 示例横幅 */
|
|
.demo-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
background: #FFF7E6;
|
|
border: 1rpx solid #F0D9A8;
|
|
border-radius: 16rpx;
|
|
padding: 16rpx 20rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.demo-tag {
|
|
flex-shrink: 0;
|
|
background: #D99A06;
|
|
color: #FFFFFF;
|
|
font-size: 20rpx;
|
|
border-radius: 8rpx;
|
|
padding: 2rpx 12rpx;
|
|
}
|
|
|
|
.demo-text {
|
|
font-size: 22rpx;
|
|
color: #8A6D1A;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 档案选择 */
|
|
.profile-chips {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.profile-chip {
|
|
padding: 10rpx 28rpx;
|
|
border-radius: 999rpx;
|
|
border: 2rpx solid #E8D5C4;
|
|
font-size: 26rpx;
|
|
color: #6B5E53;
|
|
background: #FFFFFF;
|
|
}
|
|
|
|
.profile-chip.active {
|
|
background: #C41E3A;
|
|
border-color: #C41E3A;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.add-chip {
|
|
border-style: dashed;
|
|
color: #9E8E7E;
|
|
}
|
|
|
|
/* 四柱 */
|
|
.pillar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 16rpx 8rpx;
|
|
background: #FFFBF5;
|
|
border-radius: 12rpx;
|
|
}
|
|
|
|
.pillar-label {
|
|
font-size: 20rpx;
|
|
color: #9E8E7E;
|
|
}
|
|
|
|
.pillar-ten {
|
|
font-size: 20rpx;
|
|
color: #6B5E53;
|
|
margin: 4rpx 0;
|
|
}
|
|
|
|
.pillar-char {
|
|
font-size: 44rpx;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
.pillar-hide {
|
|
font-size: 18rpx;
|
|
color: #9E8E7E;
|
|
margin-top: 8rpx;
|
|
text-align: center;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.pillar-nayin {
|
|
font-size: 18rpx;
|
|
color: #C41E3A;
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
/* 五行配色 */
|
|
.el-wood { color: #2E7D32; }
|
|
.el-fire { color: #C41E3A; }
|
|
.el-earth { color: #8D6E63; }
|
|
.el-metal { color: #B8860B; }
|
|
.el-water { color: #1565C0; }
|
|
|
|
/* 命盘概览 */
|
|
.meta-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.meta-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: #FFFBF5;
|
|
border-radius: 12rpx;
|
|
padding: 16rpx 8rpx;
|
|
}
|
|
|
|
.meta-label {
|
|
font-size: 20rpx;
|
|
color: #9E8E7E;
|
|
}
|
|
|
|
.meta-value {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #1A1A1A;
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
/* 五行分析 */
|
|
.element-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.element-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.element-name {
|
|
width: 60rpx;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.element-track {
|
|
flex: 1;
|
|
height: 16rpx;
|
|
background: #F0E6DA;
|
|
border-radius: 8rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.element-fill {
|
|
height: 100%;
|
|
border-radius: 8rpx;
|
|
}
|
|
|
|
.element-fill.el-wood { background: #2E7D32; }
|
|
.element-fill.el-fire { background: #C41E3A; }
|
|
.element-fill.el-earth { background: #8D6E63; }
|
|
.element-fill.el-metal { background: #B8860B; }
|
|
.element-fill.el-water { background: #1565C0; }
|
|
|
|
.element-count {
|
|
width: 60rpx;
|
|
text-align: right;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
/* 大运/流年 */
|
|
.fortune-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 16rpx 24rpx;
|
|
background: #FFFBF5;
|
|
border-radius: 12rpx;
|
|
min-width: 160rpx;
|
|
}
|
|
|
|
/* 字段说明 */
|
|
.glossary-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.glossary-title {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.glossary-toggle {
|
|
font-size: 24rpx;
|
|
color: #9E8E7E;
|
|
}
|
|
|
|
.glossary-item {
|
|
padding: 16rpx 0;
|
|
border-bottom: 1rpx solid #F0E6DA;
|
|
}
|
|
|
|
.glossary-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.glossary-term {
|
|
display: block;
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
color: #C41E3A;
|
|
margin-bottom: 6rpx;
|
|
}
|
|
|
|
.glossary-desc {
|
|
display: block;
|
|
font-size: 24rpx;
|
|
color: #6B5E53;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
/* 底部 */
|
|
.bottom-actions {
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.disclaimer {
|
|
text-align: center;
|
|
font-size: 20rpx;
|
|
color: #9E8E7E;
|
|
padding: 8rpx 0 24rpx;
|
|
}
|