|
@@ -60,9 +60,9 @@
|
|
|
:dimensions="abilityRadarDims"
|
|
:dimensions="abilityRadarDims"
|
|
|
:scores="abilityRadarScores"
|
|
:scores="abilityRadarScores"
|
|
|
:population-scores="abilityRadarPopulation"
|
|
:population-scores="abilityRadarPopulation"
|
|
|
- fillColor="#6366F1"
|
|
|
|
|
- gridColor="#EEF0F6"
|
|
|
|
|
- labelColor="#1F2937"
|
|
|
|
|
|
|
+ :fill-color="chartColors.wisdomFill"
|
|
|
|
|
+ :grid-color="chartColors.grid"
|
|
|
|
|
+ :label-color="chartColors.label"
|
|
|
:width="600"
|
|
:width="600"
|
|
|
:height="600"
|
|
:height="600"
|
|
|
:child-name="childName" />
|
|
:child-name="childName" />
|
|
@@ -97,9 +97,9 @@
|
|
|
:dimensions="bigFiveRadarDims"
|
|
:dimensions="bigFiveRadarDims"
|
|
|
:scores="bigFiveRadarScores"
|
|
:scores="bigFiveRadarScores"
|
|
|
:population-scores="bigFiveRadarPopulation"
|
|
:population-scores="bigFiveRadarPopulation"
|
|
|
- fillColor="#8B5CF6"
|
|
|
|
|
- gridColor="#F0ECFA"
|
|
|
|
|
- labelColor="#5B21B6"
|
|
|
|
|
|
|
+ :fill-color="chartColors.violetFill"
|
|
|
|
|
+ :grid-color="chartColors.gridViolet"
|
|
|
|
|
+ :label-color="chartColors.labelViolet"
|
|
|
:width="600"
|
|
:width="600"
|
|
|
:height="600"
|
|
:height="600"
|
|
|
:child-name="childName" />
|
|
:child-name="childName" />
|
|
@@ -637,12 +637,29 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
-.container { min-height: 100vh; background: #F3F2FA; padding-bottom: 40rpx; }
|
|
|
|
|
|
|
+// ===== DAN 报告页专属色阶(紫罗兰主题 + 图表色板,单页专用;约定见 uni.scss §14)=====
|
|
|
|
|
+$c-rpt-bg: #F3F2FA; // 页面底(淡紫)
|
|
|
|
|
+$c-rpt-brown: #7C2D12; // 深棕徽章文字
|
|
|
|
|
+$c-rpt-cyan-1: #A5F3FC; // 渐变青浅档(星级光谱)
|
|
|
|
|
+$c-rpt-cyan-2: #67E8F9; // 渐变青深档
|
|
|
|
|
+$c-rpt-orange: #FDBA74; // 需关注暖橙(徽章/渐变/边框)
|
|
|
|
|
+$c-rpt-grid: #EEF0F6; // 图表网格灰
|
|
|
|
|
+$c-rpt-violet-grid: #F0ECFA; // 雷达网格/底(浅紫)
|
|
|
|
|
+$c-rpt-gray-line: #C7C9D9; // 灰色分隔
|
|
|
|
|
+$c-rpt-violet-soft: #C4B5FD; // 紫罗兰浅渐变起
|
|
|
|
|
+$c-rpt-yellow: #FCD34D; // 黄渐变起
|
|
|
|
|
+$c-rpt-violet-text: #6D28D9; // 紫罗兰文字
|
|
|
|
|
+$c-rpt-line: #F1F2F7; // 浅紫分隔线
|
|
|
|
|
+$c-rpt-body: #4B5563; // 正文灰
|
|
|
|
|
+$c-rpt-foot: #B0B3C3; // 脚注灰
|
|
|
|
|
+$c-rpt-mask-ink: #000; // 遮罩渐变异色(mask-image)
|
|
|
|
|
+
|
|
|
|
|
+.container { min-height: 100vh; background: $c-rpt-bg; padding-bottom: 40rpx; }
|
|
|
|
|
|
|
|
/* ==================== Hero ==================== */
|
|
/* ==================== Hero ==================== */
|
|
|
.hero {
|
|
.hero {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- background: linear-gradient(160deg, #4F46E5 0%, #7C3AED 55%, $facade-violet 100%);
|
|
|
|
|
|
|
+ background: linear-gradient(160deg, $dim-wisdom-deep 0%, $facade-violet-deep 55%, $facade-violet 100%);
|
|
|
padding: 48rpx 36rpx 44rpx;
|
|
padding: 48rpx 36rpx 44rpx;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
border-bottom-left-radius: 36rpx;
|
|
border-bottom-left-radius: 36rpx;
|
|
@@ -662,8 +679,8 @@ export default {
|
|
|
margin-right: 14rpx;
|
|
margin-right: 14rpx;
|
|
|
}
|
|
}
|
|
|
.hero-level-badge {
|
|
.hero-level-badge {
|
|
|
- font-size: 22rpx; color: #7C2D12; font-weight: 600;
|
|
|
|
|
- background: linear-gradient(135deg, #FDE68A, #FBBF24);
|
|
|
|
|
|
|
+ font-size: 22rpx; color: $c-rpt-brown; font-weight: 600;
|
|
|
|
|
+ background: linear-gradient(135deg, $status-warning-light, $status-warning);
|
|
|
border-radius: 24rpx; padding: 6rpx 18rpx;
|
|
border-radius: 24rpx; padding: 6rpx 18rpx;
|
|
|
margin-right: 14rpx;
|
|
margin-right: 14rpx;
|
|
|
}
|
|
}
|
|
@@ -688,7 +705,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
.hero-pct-fill {
|
|
.hero-pct-fill {
|
|
|
height: 100%; border-radius: 8rpx;
|
|
height: 100%; border-radius: 8rpx;
|
|
|
- background: linear-gradient(90deg, #A5F3FC, #67E8F9, #FDE68A);
|
|
|
|
|
|
|
+ background: linear-gradient(90deg, $c-rpt-cyan-1, $c-rpt-cyan-2, $status-warning-light);
|
|
|
}
|
|
}
|
|
|
.hero-pct-marker {
|
|
.hero-pct-marker {
|
|
|
position: absolute; top: -6rpx; width: 4rpx; height: 26rpx;
|
|
position: absolute; top: -6rpx; width: 4rpx; height: 26rpx;
|
|
@@ -722,42 +739,42 @@ export default {
|
|
|
.metric-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12rpx; }
|
|
.metric-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12rpx; }
|
|
|
.metric-name { font-size: 26rpx; color: $facade-text-gray-700; font-weight: 500; }
|
|
.metric-name { font-size: 26rpx; color: $facade-text-gray-700; font-weight: 500; }
|
|
|
.metric-value-wrap { display: flex; align-items: center; }
|
|
.metric-value-wrap { display: flex; align-items: center; }
|
|
|
-.metric-value { font-size: 30rpx; font-weight: 700; color: #4F46E5; }
|
|
|
|
|
|
|
+.metric-value { font-size: 30rpx; font-weight: 700; color: $dim-wisdom-deep; }
|
|
|
.metric-value-warn { color: $brand-primary-dark; }
|
|
.metric-value-warn { color: $brand-primary-dark; }
|
|
|
.metric-unit { font-size: 20rpx; font-weight: 400; }
|
|
.metric-unit { font-size: 20rpx; font-weight: 400; }
|
|
|
.metric-warn-badge {
|
|
.metric-warn-badge {
|
|
|
font-size: 20rpx; color: $brand-primary-dark;
|
|
font-size: 20rpx; color: $brand-primary-dark;
|
|
|
- background: $uni-primary-pale; border: 1rpx solid #FDBA74;
|
|
|
|
|
|
|
+ background: $uni-primary-pale; border: 1rpx solid $c-rpt-orange;
|
|
|
border-radius: 16rpx; padding: 2rpx 12rpx; margin-right: 10rpx;
|
|
border-radius: 16rpx; padding: 2rpx 12rpx; margin-right: 10rpx;
|
|
|
}
|
|
}
|
|
|
.metric-track {
|
|
.metric-track {
|
|
|
- position: relative; height: 16rpx; border-radius: 8rpx; background: #EEF0F6;
|
|
|
|
|
|
|
+ position: relative; height: 16rpx; border-radius: 8rpx; background: $c-rpt-grid;
|
|
|
}
|
|
}
|
|
|
.metric-fill { height: 100%; border-radius: 8rpx; }
|
|
.metric-fill { height: 100%; border-radius: 8rpx; }
|
|
|
.metric-fill-main { background: linear-gradient(90deg, $dim-wisdom-light, $dim-wisdom); }
|
|
.metric-fill-main { background: linear-gradient(90deg, $dim-wisdom-light, $dim-wisdom); }
|
|
|
-.metric-fill-warn { background: linear-gradient(90deg, #FDBA74, $brand-primary-dark); }
|
|
|
|
|
|
|
+.metric-fill-warn { background: linear-gradient(90deg, $c-rpt-orange, $brand-primary-dark); }
|
|
|
.metric-ref-line {
|
|
.metric-ref-line {
|
|
|
position: absolute; top: -4rpx; width: 2rpx; height: 24rpx;
|
|
position: absolute; top: -4rpx; width: 2rpx; height: 24rpx;
|
|
|
- background: #C7C9D9; border-radius: 1rpx;
|
|
|
|
|
|
|
+ background: $c-rpt-gray-line; border-radius: 1rpx;
|
|
|
}
|
|
}
|
|
|
/* 非数值指标行(名称 + 取值,无进度条) */
|
|
/* 非数值指标行(名称 + 取值,无进度条) */
|
|
|
.metric-plain-row {
|
|
.metric-plain-row {
|
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
|
padding: 10rpx 0;
|
|
padding: 10rpx 0;
|
|
|
}
|
|
}
|
|
|
-.metric-plain-value { font-size: 26rpx; color: #4F46E5; font-weight: 600; }
|
|
|
|
|
|
|
+.metric-plain-value { font-size: 26rpx; color: $dim-wisdom-deep; font-weight: 600; }
|
|
|
|
|
|
|
|
/* ==================== 大五人格 ==================== */
|
|
/* ==================== 大五人格 ==================== */
|
|
|
.bf-row { margin-bottom: 24rpx; }
|
|
.bf-row { margin-bottom: 24rpx; }
|
|
|
.bf-row:last-child { margin-bottom: 4rpx; }
|
|
.bf-row:last-child { margin-bottom: 4rpx; }
|
|
|
.bf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10rpx; }
|
|
.bf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10rpx; }
|
|
|
.bf-name { font-size: 26rpx; color: $facade-text-gray-700; font-weight: 500; }
|
|
.bf-name { font-size: 26rpx; color: $facade-text-gray-700; font-weight: 500; }
|
|
|
-.bf-value { font-size: 30rpx; font-weight: 700; color: #7C3AED; }
|
|
|
|
|
-.bf-track { position: relative; height: 14rpx; border-radius: 7rpx; background: #F0ECFA; }
|
|
|
|
|
|
|
+.bf-value { font-size: 30rpx; font-weight: 700; color: $facade-violet-deep; }
|
|
|
|
|
+.bf-track { position: relative; height: 14rpx; border-radius: 7rpx; background: $c-rpt-violet-grid; }
|
|
|
.bf-fill { height: 100%; border-radius: 7rpx; }
|
|
.bf-fill { height: 100%; border-radius: 7rpx; }
|
|
|
-.bf-neutral { background: linear-gradient(90deg, #C4B5FD, $facade-violet); }
|
|
|
|
|
-.bf-high { background: linear-gradient(90deg, #6EE7B7, $status-success); }
|
|
|
|
|
-.bf-low { background: linear-gradient(90deg, #FCD34D, $dim-wealth); }
|
|
|
|
|
|
|
+.bf-neutral { background: linear-gradient(90deg, $c-rpt-violet-soft, $facade-violet); }
|
|
|
|
|
+.bf-high { background: linear-gradient(90deg, $status-success-light-2, $status-success); }
|
|
|
|
|
+.bf-low { background: linear-gradient(90deg, $c-rpt-yellow, $dim-wealth); }
|
|
|
.bf-avg-line {
|
|
.bf-avg-line {
|
|
|
position: absolute; top: -5rpx; left: 60%; width: 2rpx; height: 24rpx;
|
|
position: absolute; top: -5rpx; left: 60%; width: 2rpx; height: 24rpx;
|
|
|
background: $facade-text-gray-400; border-radius: 1rpx;
|
|
background: $facade-text-gray-400; border-radius: 1rpx;
|
|
@@ -769,13 +786,13 @@ export default {
|
|
|
.emo-row:last-child { margin-bottom: 4rpx; }
|
|
.emo-row:last-child { margin-bottom: 4rpx; }
|
|
|
.emo-chip {
|
|
.emo-chip {
|
|
|
display: flex; align-items: baseline;
|
|
display: flex; align-items: baseline;
|
|
|
- background: #F5F3FF; border-radius: 14rpx;
|
|
|
|
|
|
|
+ background: $facade-violet-tint-2; border-radius: 14rpx;
|
|
|
padding: 10rpx 18rpx; margin-right: 18rpx; flex-shrink: 0;
|
|
padding: 10rpx 18rpx; margin-right: 18rpx; flex-shrink: 0;
|
|
|
}
|
|
}
|
|
|
-.emo-name { font-size: 24rpx; color: #6D28D9; margin-right: 12rpx; }
|
|
|
|
|
-.emo-value { font-size: 28rpx; font-weight: 700; color: #7C3AED; }
|
|
|
|
|
-.emo-track { flex: 1; height: 12rpx; border-radius: 6rpx; background: #F0ECFA; overflow: hidden; }
|
|
|
|
|
-.emo-fill { height: 100%; border-radius: 6rpx; background: linear-gradient(90deg, #A78BFA, #7C3AED); }
|
|
|
|
|
|
|
+.emo-name { font-size: 24rpx; color: $c-rpt-violet-text; margin-right: 12rpx; }
|
|
|
|
|
+.emo-value { font-size: 28rpx; font-weight: 700; color: $facade-violet-deep; }
|
|
|
|
|
+.emo-track { flex: 1; height: 12rpx; border-radius: 6rpx; background: $c-rpt-violet-grid; overflow: hidden; }
|
|
|
|
|
+.emo-fill { height: 100%; border-radius: 6rpx; background: linear-gradient(90deg, $facade-violet-light, $facade-violet-deep); }
|
|
|
|
|
|
|
|
/* ==================== 雷达图容器 ==================== */
|
|
/* ==================== 雷达图容器 ==================== */
|
|
|
.radar-wrap {
|
|
.radar-wrap {
|
|
@@ -787,12 +804,12 @@ export default {
|
|
|
|
|
|
|
|
/* ==================== 情绪总分行 ==================== */
|
|
/* ==================== 情绪总分行 ==================== */
|
|
|
.emo-summary {
|
|
.emo-summary {
|
|
|
- background: #F5F3FF;
|
|
|
|
|
|
|
+ background: $facade-violet-tint-2;
|
|
|
border-radius: 14rpx;
|
|
border-radius: 14rpx;
|
|
|
padding: 16rpx 20rpx;
|
|
padding: 16rpx 20rpx;
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
}
|
|
|
-.emo-summary-text { font-size: 24rpx; color: #6D28D9; }
|
|
|
|
|
|
|
+.emo-summary-text { font-size: 24rpx; color: $c-rpt-violet-text; }
|
|
|
|
|
|
|
|
/* ==================== 体质健康 ==================== */
|
|
/* ==================== 体质健康 ==================== */
|
|
|
.habit-row {
|
|
.habit-row {
|
|
@@ -800,11 +817,11 @@ export default {
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
padding: 14rpx 0;
|
|
padding: 14rpx 0;
|
|
|
- border-bottom: 1rpx solid #F1F2F7;
|
|
|
|
|
|
|
+ border-bottom: 1rpx solid $c-rpt-line;
|
|
|
}
|
|
}
|
|
|
.habit-row:last-child { border-bottom: none; }
|
|
.habit-row:last-child { border-bottom: none; }
|
|
|
.habit-name { font-size: 26rpx; color: $facade-text-gray-700; }
|
|
.habit-name { font-size: 26rpx; color: $facade-text-gray-700; }
|
|
|
-.habit-value { font-size: 26rpx; color: #4F46E5; font-weight: 600; }
|
|
|
|
|
|
|
+.habit-value { font-size: 26rpx; color: $dim-wisdom-deep; font-weight: 600; }
|
|
|
|
|
|
|
|
/* ==================== 基本信息 ==================== */
|
|
/* ==================== 基本信息 ==================== */
|
|
|
.info-grid { display: flex; flex-wrap: wrap; }
|
|
.info-grid { display: flex; flex-wrap: wrap; }
|
|
@@ -818,19 +835,19 @@ export default {
|
|
|
|
|
|
|
|
/* ==================== 成长建议/评语 ==================== */
|
|
/* ==================== 成长建议/评语 ==================== */
|
|
|
.advice-content {
|
|
.advice-content {
|
|
|
- font-size: 26rpx; color: #4B5563; line-height: 1.8;
|
|
|
|
|
|
|
+ font-size: 26rpx; color: $c-rpt-body; line-height: 1.8;
|
|
|
white-space: pre-wrap; word-break: break-all;
|
|
white-space: pre-wrap; word-break: break-all;
|
|
|
}
|
|
}
|
|
|
.advice-clamped {
|
|
.advice-clamped {
|
|
|
max-height: 320rpx; overflow: hidden;
|
|
max-height: 320rpx; overflow: hidden;
|
|
|
- -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
|
|
|
|
|
- mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
|
|
|
|
|
|
|
+ -webkit-mask-image: linear-gradient(180deg, $c-rpt-mask-ink 60%, transparent 100%);
|
|
|
|
|
+ mask-image: linear-gradient(180deg, $c-rpt-mask-ink 60%, transparent 100%);
|
|
|
}
|
|
}
|
|
|
.advice-toggle { text-align: center; margin-top: 16rpx; }
|
|
.advice-toggle { text-align: center; margin-top: 16rpx; }
|
|
|
.advice-toggle-text { font-size: 24rpx; color: $dim-wisdom; font-weight: 500; }
|
|
.advice-toggle-text { font-size: 24rpx; color: $dim-wisdom; font-weight: 500; }
|
|
|
|
|
|
|
|
.foot-note { text-align: center; padding: 18rpx 0 8rpx; }
|
|
.foot-note { text-align: center; padding: 18rpx 0 8rpx; }
|
|
|
-.foot-note-text { font-size: 20rpx; color: #B0B3C3; }
|
|
|
|
|
|
|
+.foot-note-text { font-size: 20rpx; color: $c-rpt-foot; }
|
|
|
|
|
|
|
|
/* ==================== 其他 ==================== */
|
|
/* ==================== 其他 ==================== */
|
|
|
.loading-wrap { display: flex; justify-content: center; padding: 140rpx 0; }
|
|
.loading-wrap { display: flex; justify-content: center; padding: 140rpx 0; }
|