|
@@ -253,7 +253,6 @@ import LoginGuideCard from '../../components/LoginGuideCard.vue'
|
|
|
import RadarChart from '../../components/RadarChart.vue'
|
|
import RadarChart from '../../components/RadarChart.vue'
|
|
|
import ArticleFeed from '../../components/ArticleFeed.vue'
|
|
import ArticleFeed from '../../components/ArticleFeed.vue'
|
|
|
import BasePrimaryButton from '../../components/BasePrimaryButton.vue'
|
|
import BasePrimaryButton from '../../components/BasePrimaryButton.vue'
|
|
|
-import { parseDate } from '../../utils/format.js'
|
|
|
|
|
import { ensureDimensionRegistry, getRadarConfig, isRegistryReady, WEALTH_CHILD_LABEL } from '../../composables/useDimensionRegistry.js'
|
|
import { ensureDimensionRegistry, getRadarConfig, isRegistryReady, WEALTH_CHILD_LABEL } from '../../composables/useDimensionRegistry.js'
|
|
|
import fontScaleMixin from '@/mixins/font-scale.js'
|
|
import fontScaleMixin from '@/mixins/font-scale.js'
|
|
|
import shareMixin from '../../components/share-mixin.js'
|
|
import shareMixin from '../../components/share-mixin.js'
|
|
@@ -271,7 +270,6 @@ export default {
|
|
|
lastPlan: '',
|
|
lastPlan: '',
|
|
|
lastPlanId: null,
|
|
lastPlanId: null,
|
|
|
healthArticles: [],
|
|
healthArticles: [],
|
|
|
- hasAiQHistory: false,
|
|
|
|
|
pendingSurveys: [],
|
|
pendingSurveys: [],
|
|
|
tabs: [
|
|
tabs: [
|
|
|
{ code: 'body', label: '健康', icon: '🟠', color: BrandColors.body },
|
|
{ code: 'body', label: '健康', icon: '🟠', color: BrandColors.body },
|
|
@@ -459,11 +457,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
return count > 0 ? Math.round(total / count) : 0
|
|
return count > 0 ? Math.round(total / count) : 0
|
|
|
},
|
|
},
|
|
|
- _wealthScore: function(key) {
|
|
|
|
|
- if (!this.energySandbox) return 0
|
|
|
|
|
- var v = this.energySandbox[key]
|
|
|
|
|
- return (typeof v === 'number' && v > 0) ? v : 0
|
|
|
|
|
- },
|
|
|
|
|
/**
|
|
/**
|
|
|
* 过渡兜底:返回某 tab 的硬编码维度清单(与改造前字面量一致)。
|
|
* 过渡兜底:返回某 tab 的硬编码维度清单(与改造前字面量一致)。
|
|
|
* 仅当注册中心未就绪时使用,保证后端未上线 / 接口异常时页面不崩。
|
|
* 仅当注册中心未就绪时使用,保证后端未上线 / 接口异常时页面不崩。
|
|
@@ -933,7 +926,7 @@ export default {
|
|
|
.section-chart { position: relative; margin: 0 24rpx 16rpx; }
|
|
.section-chart { position: relative; margin: 0 24rpx 16rpx; }
|
|
|
.chart-empty { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 3; background: rgba($app-surface, 0.85); border-radius: 16rpx; padding: 20rpx $uni-space-page; }
|
|
.chart-empty { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 3; background: rgba($app-surface, 0.85); border-radius: 16rpx; padding: 20rpx $uni-space-page; }
|
|
|
.chart-empty .empty-text { font-size: calc(28rpx * var(--font-scale, 1)); color: $facade-text-strong; font-weight: 500; display: block; }
|
|
.chart-empty .empty-text { font-size: calc(28rpx * var(--font-scale, 1)); color: $facade-text-strong; font-weight: 500; display: block; }
|
|
|
-.chart-empty .empty-sub { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-muted; display: block; margin-top: 4rpx; }
|
|
|
|
|
|
|
+.chart-empty .empty-sub { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-body; display: block; margin-top: 4rpx; }
|
|
|
.section-dc-header { margin: 20rpx 24rpx 8rpx; }
|
|
.section-dc-header { margin: 20rpx 24rpx 8rpx; }
|
|
|
.dc-title-row { display: flex; align-items: center; }
|
|
.dc-title-row { display: flex; align-items: center; }
|
|
|
.dc-icon { font-size: calc(32rpx * var(--font-scale, 1)); margin-right: 8rpx; }
|
|
.dc-icon { font-size: calc(32rpx * var(--font-scale, 1)); margin-right: 8rpx; }
|
|
@@ -960,15 +953,15 @@ export default {
|
|
|
.data-card-icon { width: 88rpx; height: 88rpx; border-radius: 24rpx; display: flex; align-items: center; justify-content: center; margin-right: 20rpx; font-size: calc(40rpx * var(--font-scale, 1)); }
|
|
.data-card-icon { width: 88rpx; height: 88rpx; border-radius: 24rpx; display: flex; align-items: center; justify-content: center; margin-right: 20rpx; font-size: calc(40rpx * var(--font-scale, 1)); }
|
|
|
.data-card-info { flex: 1; }
|
|
.data-card-info { flex: 1; }
|
|
|
.data-card-title { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: bold; color: $facade-text-strong; display: block; margin-bottom: 6rpx; }
|
|
.data-card-title { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: bold; color: $facade-text-strong; display: block; margin-bottom: 6rpx; }
|
|
|
-.data-card-desc { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-muted; }
|
|
|
|
|
|
|
+.data-card-desc { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-body; }
|
|
|
.data-card-arrow { font-size: calc(36rpx * var(--font-scale, 1)); color: $facade-text-ghost; }
|
|
.data-card-arrow { font-size: calc(36rpx * var(--font-scale, 1)); color: $facade-text-ghost; }
|
|
|
/* 运动手环 · 华为健康(H2)卡片扩展:按钮样式供折叠面板复用 */
|
|
/* 运动手环 · 华为健康(H2)卡片扩展:按钮样式供折叠面板复用 */
|
|
|
-.data-card-btn { flex-shrink: 0; margin-left: 16rpx; padding: 0 24rpx; height: 56rpx; line-height: 56rpx; border-radius: 28rpx; font-size: calc(24rpx * var(--font-scale, 1)); background: $brand-primary; color: $app-surface; border: none; }
|
|
|
|
|
|
|
+.data-card-btn { flex-shrink: 0; margin-left: 16rpx; padding: 0 24rpx; min-height: 88rpx; line-height: 88rpx; box-sizing: border-box; border-radius: 28rpx; font-size: calc(24rpx * var(--font-scale, 1)); background: $brand-primary; color: $app-surface; border: none; }
|
|
|
.data-card-btn--ghost { background: transparent; color: $brand-primary; border: 1rpx solid $brand-primary; }
|
|
.data-card-btn--ghost { background: transparent; color: $brand-primary; border: 1rpx solid $brand-primary; }
|
|
|
-.data-card-badge { display: inline-block; margin-left: 8rpx; padding: 0 12rpx; border-radius: 16rpx; font-size: calc(18rpx * var(--font-scale, 1)); font-weight: normal; color: #b26a00; background: #fff3d6; vertical-align: middle; }
|
|
|
|
|
|
|
+.data-card-badge { display: inline-block; margin-left: 8rpx; padding: 0 12rpx; border-radius: 16rpx; font-size: calc(18rpx * var(--font-scale, 1)); font-weight: normal; color: $dim-wealth-deep; background: $dim-wealth-tint; vertical-align: middle; }
|
|
|
.data-card-assessment { flex-direction: column; align-items: stretch; padding: 24rpx; }
|
|
.data-card-assessment { flex-direction: column; align-items: stretch; padding: 24rpx; }
|
|
|
.data-card-head { display: flex; align-items: center; margin-bottom: 16rpx; }
|
|
.data-card-head { display: flex; align-items: center; margin-bottom: 16rpx; }
|
|
|
-.data-card-subtitle { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-muted; margin-left: 12rpx; }
|
|
|
|
|
|
|
+.data-card-subtitle { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-body; margin-left: 12rpx; }
|
|
|
.quiz-item { display: flex; align-items: center; padding: 16rpx 0; border-top: 1rpx solid $facade-fill; }
|
|
.quiz-item { display: flex; align-items: center; padding: 16rpx 0; border-top: 1rpx solid $facade-fill; }
|
|
|
.quiz-item:first-of-type { border-top: none; }
|
|
.quiz-item:first-of-type { border-top: none; }
|
|
|
.quiz-info { display: flex; align-items: center; flex: 1; }
|
|
.quiz-info { display: flex; align-items: center; flex: 1; }
|
|
@@ -976,9 +969,9 @@ export default {
|
|
|
.quiz-label { font-size: calc(28rpx * var(--font-scale, 1)); color: $facade-text-strong; }
|
|
.quiz-label { font-size: calc(28rpx * var(--font-scale, 1)); color: $facade-text-strong; }
|
|
|
.quiz-score { display: flex; align-items: baseline; margin-right: 16rpx; }
|
|
.quiz-score { display: flex; align-items: baseline; margin-right: 16rpx; }
|
|
|
.score-value { font-size: calc(36rpx * var(--font-scale, 1)); font-weight: bold; color: $brand-primary; }
|
|
.score-value { font-size: calc(36rpx * var(--font-scale, 1)); font-weight: bold; color: $brand-primary; }
|
|
|
-.score-unit { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-muted; margin-left: 4rpx; }
|
|
|
|
|
|
|
+.score-unit { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-body; margin-left: 4rpx; }
|
|
|
|
|
|
|
|
-.quiz-btn { background: $brand-primary; color: $app-surface; font-size: calc(24rpx * var(--font-scale, 1)); border: none; border-radius: 24rpx; padding: 10rpx $uni-space-page; height: 56rpx; line-height: 36rpx; margin: 0; }
|
|
|
|
|
|
|
+.quiz-btn { background: $brand-primary; color: $app-surface; font-size: calc(24rpx * var(--font-scale, 1)); border: none; border-radius: 24rpx; padding: 0 $uni-space-page; min-height: 88rpx; line-height: 88rpx; box-sizing: border-box; margin: 0; }
|
|
|
.section-data-view { margin: 16rpx 24rpx; }
|
|
.section-data-view { margin: 16rpx 24rpx; }
|
|
|
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12rpx; }
|
|
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12rpx; }
|
|
|
.section-title { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: bold; color: $facade-text-strong; }
|
|
.section-title { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: bold; color: $facade-text-strong; }
|
|
@@ -992,7 +985,7 @@ export default {
|
|
|
.report-type-badge.badge-default { background: rgba($facade-text-slate, 0.12); color: $facade-text-slate; }
|
|
.report-type-badge.badge-default { background: rgba($facade-text-slate, 0.12); color: $facade-text-slate; }
|
|
|
.report-info { flex: 1; min-width: 0; }
|
|
.report-info { flex: 1; min-width: 0; }
|
|
|
.report-name { font-size: calc(26rpx * var(--font-scale, 1)); color: $facade-text-strong; font-weight: 600; display: block; margin-bottom: 4rpx; }
|
|
.report-name { font-size: calc(26rpx * var(--font-scale, 1)); color: $facade-text-strong; font-weight: 600; display: block; margin-bottom: 4rpx; }
|
|
|
-.report-meta { font-size: calc(20rpx * var(--font-scale, 1)); color: $facade-text-muted; display: block; }
|
|
|
|
|
|
|
+.report-meta { font-size: calc(20rpx * var(--font-scale, 1)); color: $facade-text-body; display: block; }
|
|
|
.report-score-wrap { display: flex; flex-direction: column; align-items: flex-end; margin-right: 8rpx; flex-shrink: 0; }
|
|
.report-score-wrap { display: flex; flex-direction: column; align-items: flex-end; margin-right: 8rpx; flex-shrink: 0; }
|
|
|
.report-score { font-size: calc(32rpx * var(--font-scale, 1)); font-weight: bold; color: $brand-primary; line-height: 1; }
|
|
.report-score { font-size: calc(32rpx * var(--font-scale, 1)); font-weight: bold; color: $brand-primary; line-height: 1; }
|
|
|
.report-status { font-size: calc(20rpx * var(--font-scale, 1)); margin-top: 4rpx; }
|
|
.report-status { font-size: calc(20rpx * var(--font-scale, 1)); margin-top: 4rpx; }
|
|
@@ -1000,15 +993,15 @@ export default {
|
|
|
.report-status.status-pending { color: $dim-wealth; }
|
|
.report-status.status-pending { color: $dim-wealth; }
|
|
|
.report-arrow { font-size: calc(28rpx * var(--font-scale, 1)); color: $facade-text-ghost; }
|
|
.report-arrow { font-size: calc(28rpx * var(--font-scale, 1)); color: $facade-text-ghost; }
|
|
|
.empty-hint { text-align: center; padding: $uni-space-lg 0; background: $app-surface; border-radius: 16rpx; }
|
|
.empty-hint { text-align: center; padding: $uni-space-lg 0; background: $app-surface; border-radius: 16rpx; }
|
|
|
-.empty-hint .empty-text { font-size: calc(26rpx * var(--font-scale, 1)); color: $facade-text-muted; display: block; }
|
|
|
|
|
|
|
+.empty-hint .empty-text { font-size: calc(26rpx * var(--font-scale, 1)); color: $facade-text-body; display: block; }
|
|
|
.empty-hint .empty-sub { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-ghost; display: block; margin-top: 6rpx; }
|
|
.empty-hint .empty-sub { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-ghost; display: block; margin-top: 6rpx; }
|
|
|
.section-plan { margin: 8rpx 24rpx 16rpx; }
|
|
.section-plan { margin: 8rpx 24rpx 16rpx; }
|
|
|
.plan-card { background: $app-surface; border-radius: 24rpx; padding: 24rpx; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06); }
|
|
.plan-card { background: $app-surface; border-radius: 24rpx; padding: 24rpx; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06); }
|
|
|
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12rpx; }
|
|
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12rpx; }
|
|
|
.plan-title { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: bold; color: $facade-text-strong; }
|
|
.plan-title { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: bold; color: $facade-text-strong; }
|
|
|
-.plan-btn { background: linear-gradient(135deg, $brand-primary, $brand-primary-light); color: $app-surface; font-size: calc(24rpx * var(--font-scale, 1)); border: none; border-radius: 24rpx; padding: 10rpx 28rpx; height: 56rpx; line-height: 36rpx; margin: 0; }
|
|
|
|
|
|
|
+.plan-btn { background: linear-gradient(135deg, $brand-primary, $uni-primary-dark); color: $app-surface; font-size: calc(24rpx * var(--font-scale, 1)); border: none; border-radius: 24rpx; padding: 0 28rpx; min-height: 88rpx; line-height: 88rpx; box-sizing: border-box; margin: 0; }
|
|
|
.plan-goal { font-size: calc(24rpx * var(--font-scale, 1)); color: $facade-text-body; line-height: 1.5; display: block; margin-top: 12rpx; }
|
|
.plan-goal { font-size: calc(24rpx * var(--font-scale, 1)); color: $facade-text-body; line-height: 1.5; display: block; margin-top: 12rpx; }
|
|
|
-.plan-hint { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-muted; display: block; margin-top: 12rpx; }
|
|
|
|
|
|
|
+.plan-hint { font-size: calc(22rpx * var(--font-scale, 1)); color: $facade-text-body; display: block; margin-top: 12rpx; }
|
|
|
/* ===== 访客态(设计稿 page-health 落地 · 令牌化) ===== */
|
|
/* ===== 访客态(设计稿 page-health 落地 · 令牌化) ===== */
|
|
|
// 页面级局部色令牌:仅声明 uni.scss 未收录、本页专属的值;其余全部走共享令牌
|
|
// 页面级局部色令牌:仅声明 uni.scss 未收录、本页专属的值;其余全部走共享令牌
|
|
|
$gh-cta-from: #D1440B; // 深橙·亮端(白字 4.62:1)
|
|
$gh-cta-from: #D1440B; // 深橙·亮端(白字 4.62:1)
|