|
|
@@ -239,7 +239,7 @@
|
|
|
:scores="getMindGroupScores(group)"
|
|
|
:avg-scores="getMindGroupFamilyScores(group)"
|
|
|
:population-scores="getGroupPopulationScores(group)"
|
|
|
- fillColor="#FF6B9D"
|
|
|
+ fillColor=#FF6B9D
|
|
|
gridColor="#FCE7F3"
|
|
|
labelColor="#9D174D"
|
|
|
:width="540"
|
|
|
@@ -257,6 +257,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { BrandColors } from '../../utils/brand-colors.js'
|
|
|
import TabTransition from '../../components/tab-transition.vue'
|
|
|
import PageBanner from '../../components/PageBanner.vue'
|
|
|
import DimensionIntroCard from '../../components/DimensionIntroCard.vue'
|
|
|
@@ -291,7 +292,7 @@ components: { TabTransition, PageBanner, RadarChart, FamilyEnergyBar, PsychCrisi
|
|
|
emiData: null,
|
|
|
emiLoading: true,
|
|
|
emiDimensions: [
|
|
|
- { key: 'emotionStability', label: '情绪稳定性', color: '#FF6B35' }
|
|
|
+ { key: 'emotionStability', label: '情绪稳定性', color: BrandColors.mindAccent }
|
|
|
],
|
|
|
// 大五维度(用于雷达图)
|
|
|
personalityDimensions: [
|
|
|
@@ -325,11 +326,11 @@ components: { TabTransition, PageBanner, RadarChart, FamilyEnergyBar, PsychCrisi
|
|
|
traditionalLoading: true,
|
|
|
compatibilityData: null,
|
|
|
wuxingConfig: {
|
|
|
- wood: { label: '木', color: '#10B981' },
|
|
|
- fire: { label: '火', color: '#FF6B9D' },
|
|
|
- earth: { label: '土', color: '#FF8C42' },
|
|
|
- metal: { label: '金', color: '#6366F1' },
|
|
|
- water: { label: '水', color: '#3B82F6' }
|
|
|
+ wood: { label: '木', color: BrandColors.success },
|
|
|
+ fire: { label: '火', color: BrandColors.mind },
|
|
|
+ earth: { label: '土', color: BrandColors.body },
|
|
|
+ metal: { label: '金', color: BrandColors.wisdom },
|
|
|
+ water: { label: '水', color: BrandColors.infoBlue }
|
|
|
},
|
|
|
pillarLabels: { year: '年柱', month: '月柱', day: '日柱', hour: '时柱' },
|
|
|
familyScore: 0,
|
|
|
@@ -503,11 +504,11 @@ components: { TabTransition, PageBanner, RadarChart, FamilyEnergyBar, PsychCrisi
|
|
|
},
|
|
|
luckyColorInfo: function() {
|
|
|
var colorMap = {
|
|
|
- wood: { name: '绿', hex: '#10B981' },
|
|
|
- fire: { name: '红', hex: '#FF6B9D' },
|
|
|
- earth: { name: '黄', hex: '#FF8C42' },
|
|
|
- metal: { name: '白', hex: '#6366F1' },
|
|
|
- water: { name: '蓝', hex: '#3B82F6' }
|
|
|
+ wood: { name: '绿', hex: BrandColors.success },
|
|
|
+ fire: { name: '红', hex: BrandColors.mind },
|
|
|
+ earth: { name: '黄', hex: BrandColors.body },
|
|
|
+ metal: { name: '白', hex: BrandColors.wisdom },
|
|
|
+ water: { name: '蓝', hex: BrandColors.infoBlue }
|
|
|
}
|
|
|
var elem = this.dominantElement
|
|
|
if (!elem) return null
|
|
|
@@ -584,12 +585,12 @@ var descList = descMap[this.dominantElement] || descMap.wood
|
|
|
if (!this.isLoggedIn || !this.emiData) return null
|
|
|
var e = this.emiData
|
|
|
var dims = [
|
|
|
- { key: 'emotionStability', label: '情绪稳定性', color: '#FF6B9D', desc: '情绪识别与调控能力' },
|
|
|
- { key: 'opennessScore', label: '开放性', color: '#6366F1', desc: '对新事物的接受程度' },
|
|
|
- { key: 'conscientiousnessScore', label: '尽责性', color: '#F59E0B', desc: '做事有条理、自律程度' },
|
|
|
- { key: 'extraversionScore', label: '外向性', color: '#10B981', desc: '社交活跃与外向程度' },
|
|
|
- { key: 'agreeablenessScore', label: '宜人性', color: '#FF8C42', desc: '与人相处的和谐程度' },
|
|
|
- { key: 'neuroticismScore', label: '神经质', color: '#F97316', desc: '情绪波动程度(反向)' }
|
|
|
+ { key: 'emotionStability', label: '情绪稳定性', color: BrandColors.mind, desc: '情绪识别与调控能力' },
|
|
|
+ { key: 'opennessScore', label: '开放性', color: BrandColors.wisdom, desc: '对新事物的接受程度' },
|
|
|
+ { key: 'conscientiousnessScore', label: '尽责性', color: BrandColors.wealth, desc: '做事有条理、自律程度' },
|
|
|
+ { key: 'extraversionScore', label: '外向性', color: BrandColors.success, desc: '社交活跃与外向程度' },
|
|
|
+ { key: 'agreeablenessScore', label: '宜人性', color: BrandColors.body, desc: '与人相处的和谐程度' },
|
|
|
+ { key: 'neuroticismScore', label: '神经质', color: BrandColors.primary, desc: '情绪波动程度(反向)' }
|
|
|
]
|
|
|
var result = { overall: 0, tierLabel: '', summary: '', dims: [], tip: '' }
|
|
|
var total = 0
|
|
|
@@ -607,7 +608,7 @@ var descList = descMap[this.dominantElement] || descMap.wood
|
|
|
code: key,
|
|
|
name: matched ? matched.label : key,
|
|
|
score: Math.round(score),
|
|
|
- color: matched ? matched.color : '#FF6B9D',
|
|
|
+ color: matched ? matched.color : BrandColors.mind,
|
|
|
desc: matched ? matched.desc : ''
|
|
|
})
|
|
|
}
|
|
|
@@ -857,9 +858,9 @@ var descList = descMap[this.dominantElement] || descMap.wood
|
|
|
})
|
|
|
},
|
|
|
indicatorColor: function(status) {
|
|
|
- if (status === 'abnormal' || status === '偏高' || status === '偏低') return '#EF4444'
|
|
|
- if (status === 'warning' || status === '偏高' || status === '偏低') return '#F59E0B'
|
|
|
- return '#10B981'
|
|
|
+ if (status === 'abnormal' || status === '偏高' || status === '偏低') return BrandColors.danger
|
|
|
+ if (status === 'warning' || status === '偏高' || status === '偏低') return BrandColors.wealth
|
|
|
+ return BrandColors.success
|
|
|
},
|
|
|
statusLabel: function(status) {
|
|
|
if (status === 'normal') return '正常'
|