feat(detailedReport): 完善详细报告指标数据与卡片结构
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
92b395b8bd
commit
01bbcdecaf
@@ -147,29 +147,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* 卡片 */
|
||||
.card {
|
||||
/* 基础指标 */
|
||||
.basicIndicators {
|
||||
width: 100%;
|
||||
padding: 32rpx;
|
||||
padding: 38rpx 30rpx;
|
||||
border-radius: 24rpx;
|
||||
background-color: #FFFFFF;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 24rpx;
|
||||
border: 4rpx solid #ffffff;
|
||||
background: linear-gradient(180deg, #D3E9FF 0%, #FFFFFF 12%);
|
||||
|
||||
.card-title {
|
||||
.basicIndicatorsTitle {
|
||||
width: 100%;
|
||||
height: 32rpx;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
margin-bottom: 24rpx;
|
||||
margin-bottom: 40rpx;
|
||||
|
||||
.title-bar {
|
||||
.basicIndicatorsBar {
|
||||
width: 6rpx;
|
||||
height: 20rpx;
|
||||
border-radius: 4rpx;
|
||||
background-color: #1385FA;
|
||||
margin-right: 16rpx;
|
||||
background-color: #1385FA;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
.basicIndicatorsTitleText {
|
||||
color: #252535;
|
||||
height: 32rpx;
|
||||
font-size: 32rpx;
|
||||
@@ -177,102 +181,105 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* 基础指标 3 列 2 行 */
|
||||
.basic-grid {
|
||||
.basic-row {
|
||||
.basicIndicatorsGrid {
|
||||
width: 100%;
|
||||
margin-bottom: 32rpx;
|
||||
|
||||
.basicIndicatorsRow {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
margin-bottom: 24rpx;
|
||||
padding-bottom: 24rpx;
|
||||
border-bottom: 2rpx solid #EAECF1;
|
||||
|
||||
&:last-of-type {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.basic-cell {
|
||||
.basicIndicatorsCell {
|
||||
flex: 1;
|
||||
padding: 9rpx 24rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 24rpx 0;
|
||||
border-right: 2rpx solid #EAECF1;
|
||||
|
||||
&:last-of-type {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.basic-label {
|
||||
.basicIndicatorsLabel {
|
||||
color: #808080;
|
||||
height: 26rpx;
|
||||
height: 30rpx;
|
||||
font-size: 26rpx;
|
||||
line-height: 26rpx;
|
||||
margin-bottom: 16rpx;
|
||||
line-height: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.basic-value-row {
|
||||
.basicIndicatorsValueRow {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: flex-end;
|
||||
|
||||
.basic-value {
|
||||
.basicIndicatorsValue {
|
||||
color: #252535;
|
||||
height: 48rpx;
|
||||
font-size: 48rpx;
|
||||
line-height: 48rpx;
|
||||
height: 44rpx;
|
||||
font-size: 44rpx;
|
||||
line-height: 44rpx;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.basic-unit {
|
||||
.basicIndicatorsUnit {
|
||||
color: #252535;
|
||||
height: 26rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: bolder;
|
||||
line-height: 26rpx;
|
||||
margin: 0 0 6rpx 8rpx;
|
||||
}
|
||||
|
||||
.basic-tag {
|
||||
height: 30rpx;
|
||||
padding: 0 10rpx;
|
||||
font-size: 18rpx;
|
||||
line-height: 30rpx;
|
||||
border-radius: 8rpx;
|
||||
color: #FFFFFF;
|
||||
background-color: #2AC79F;
|
||||
margin: 0 0 6rpx 12rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* BMI 刻度 */
|
||||
.bmi-scale {
|
||||
margin-top: 24rpx;
|
||||
.basicIndicatorsScale {
|
||||
width: 100%;
|
||||
|
||||
.scale-track {
|
||||
.basicIndicatorsTrack {
|
||||
display: flex;
|
||||
gap: 6rpx;
|
||||
flex-wrap: nowrap;
|
||||
height: 20rpx;
|
||||
border-radius: 6rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 24rpx;
|
||||
|
||||
.scale-block {
|
||||
.basicIndicatorsBlock {
|
||||
flex: 1;
|
||||
border-radius: 6rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.scale-block--low {
|
||||
.basicIndicatorsBlock--low {
|
||||
background-color: #1385FA;
|
||||
}
|
||||
|
||||
.scale-block--normal {
|
||||
.basicIndicatorsBlock--normal {
|
||||
background-color: #2AC79F;
|
||||
}
|
||||
|
||||
.scale-block--over {
|
||||
.basicIndicatorsBlock--over {
|
||||
background-color: #FFA151;
|
||||
}
|
||||
|
||||
.scale-block--obese {
|
||||
.basicIndicatorsBlock--obese {
|
||||
background-color: #F24439;
|
||||
}
|
||||
}
|
||||
|
||||
.scale-row {
|
||||
.basicIndicatorsScaleRow {
|
||||
width: 100%;
|
||||
height: 24rpx;
|
||||
display: flex;
|
||||
margin-top: 16rpx;
|
||||
gap: 6rpx;
|
||||
flex-wrap: nowrap;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
> view {
|
||||
flex: 1;
|
||||
@@ -284,8 +291,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.scale-row--range {
|
||||
margin-top: 12rpx;
|
||||
.basicIndicatorsScaleRow--range {
|
||||
width: 100%;
|
||||
height: 20rpx;
|
||||
display: flex;
|
||||
gap: 6rpx;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
> view {
|
||||
color: #B6B6B6;
|
||||
@@ -295,48 +306,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 指标行 */
|
||||
.metric-row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
|
||||
.metric-label {
|
||||
flex: 1;
|
||||
color: #77849E;
|
||||
height: 28rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 28rpx;
|
||||
}
|
||||
|
||||
.metric-value {
|
||||
color: #252535;
|
||||
height: 28rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 28rpx;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
|
||||
.metric-status {
|
||||
height: 24rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 24rpx;
|
||||
}
|
||||
|
||||
.metric-status--normal {
|
||||
color: #2AC79F;
|
||||
}
|
||||
|
||||
.metric-status--low {
|
||||
color: #1385FA;
|
||||
}
|
||||
|
||||
.metric-status--high {
|
||||
color: #F24439;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user