|
|
@@ -18,7 +18,7 @@
|
|
|
<view class="popup-info">
|
|
|
<text class="popup-name">{{ selectedNode.name }}</text>
|
|
|
<view class="popup-tags">
|
|
|
- <text class="popup-tag" :style="{ background: selectedNode.color, color: '#FFFFFF' }">{{ selectedNode.groupTypeName }}</text>
|
|
|
+ <text class="popup-tag" :style="{ background: selectedNode.color, color: BrandColors.white }">{{ selectedNode.groupTypeName }}</text>
|
|
|
<text class="popup-tag popup-tag-rel" v-if="selectedNode.relationshipType">{{ selectedNode.relationshipType }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -59,6 +59,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { addPearlInteraction, updatePearlPriority } from '@/utils/api.js'
|
|
|
+import { BrandColors, INDUSTRY_COLORS } from '@/utils/brand-colors.js'
|
|
|
|
|
|
/**
|
|
|
* PearlDiagram - 珍珠图 Canvas 组件
|
|
|
@@ -129,30 +130,30 @@ export default {
|
|
|
// ===== 内圈:必备 12 组(radiusPct 0.28)=====
|
|
|
{ type: 'MEDICAL', typeName: '医疗', color: 'BrandColors.danger', radiusPct: 0.28, ring: 'inner' },
|
|
|
{ type: 'EDUCATION', typeName: '教育', color: 'BrandColors.primary', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'PUBLIC_SECURITY', typeName: '公安', color: '#DC2626', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'AUTO', typeName: '汽车相关', color: '#EA580C', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'REAL_ESTATE', typeName: '房产服务', color: '#D97706', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'TICKETING', typeName: '票务', color: '#CA8A04', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'HANDYMAN', typeName: '多能工人', color: '#B45309', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'APPLIANCE', typeName: '家电', color: '#92400E', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'CATERING', typeName: '餐饮', color: '#E11D48', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'FOOD', typeName: '食品', color: '#BE123C', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'LEGAL', typeName: '法律', color: '#B91C1C', radiusPct: 0.28, ring: 'inner' },
|
|
|
- { type: 'WEEKEND_EXPERT', typeName: '周末达人', color: '#FB7185', radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'PUBLIC_SECURITY', typeName: '公安', color: INDUSTRY_COLORS.PUBLIC_SECURITY, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'AUTO', typeName: '汽车相关', color: INDUSTRY_COLORS.AUTO, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'REAL_ESTATE', typeName: '房产服务', color: INDUSTRY_COLORS.REAL_ESTATE, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'TICKETING', typeName: '票务', color: INDUSTRY_COLORS.TICKETING, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'HANDYMAN', typeName: '多能工人', color: INDUSTRY_COLORS.HANDYMAN, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'APPLIANCE', typeName: '家电', color: INDUSTRY_COLORS.APPLIANCE, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'CATERING', typeName: '餐饮', color: INDUSTRY_COLORS.CATERING, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'FOOD', typeName: '食品', color: INDUSTRY_COLORS.FOOD, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'LEGAL', typeName: '法律', color: INDUSTRY_COLORS.LEGAL, radiusPct: 0.28, ring: 'inner' },
|
|
|
+ { type: 'WEEKEND_EXPERT', typeName: '周末达人', color: INDUSTRY_COLORS.WEEKEND_EXPERT, radiusPct: 0.28, ring: 'inner' },
|
|
|
// ===== 外圈:理想 13 组(radiusPct 0.55)=====
|
|
|
- { type: 'GOVERNMENT', typeName: '政府综合', color: '#8B5CF6', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'TAX', typeName: '税务', color: '#7C3AED', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'BUSINESS_ADMIN', typeName: '工商', color: '#6D28D9', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'BANK', typeName: '银行', color: '#2563EB', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'MEDIA', typeName: '媒体', color: '#1D4ED8', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'TRAVEL', typeName: '旅游', color: '#0EA5E9', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'LEADING_ENTERPRISE', typeName: '领军企业', color: '#0891B2', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'INDUSTRY_BENCHMARK', typeName: '行业标杆', color: '#059669', radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'GOVERNMENT', typeName: '政府综合', color: INDUSTRY_COLORS.GOVERNMENT, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'TAX', typeName: '税务', color: INDUSTRY_COLORS.TAX, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'BUSINESS_ADMIN', typeName: '工商', color: INDUSTRY_COLORS.BUSINESS_ADMIN, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'BANK', typeName: '银行', color: INDUSTRY_COLORS.BANK, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'MEDIA', typeName: '媒体', color: INDUSTRY_COLORS.MEDIA, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'TRAVEL', typeName: '旅游', color: INDUSTRY_COLORS.TRAVEL, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'LEADING_ENTERPRISE', typeName: '领军企业', color: INDUSTRY_COLORS.LEADING_ENTERPRISE, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'INDUSTRY_BENCHMARK', typeName: '行业标杆', color: INDUSTRY_COLORS.INDUSTRY_BENCHMARK, radiusPct: 0.55, ring: 'outer' },
|
|
|
{ type: 'OVERSEAS', typeName: '国外', color: 'BrandColors.success', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'UNIVERSITY', typeName: '高校', color: '#16A34A', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'FINANCE', typeName: '金融', color: '#84CC16', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'SENIOR_LOCAL', typeName: '资深土著', color: '#65A30D', radiusPct: 0.55, ring: 'outer' },
|
|
|
- { type: 'KEY_CITY', typeName: '北上广等', color: '#4D7C0F', radiusPct: 0.55, ring: 'outer' }
|
|
|
+ { type: 'UNIVERSITY', typeName: '高校', color: INDUSTRY_COLORS.UNIVERSITY, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'FINANCE', typeName: '金融', color: INDUSTRY_COLORS.FINANCE, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'SENIOR_LOCAL', typeName: '资深土著', color: INDUSTRY_COLORS.SENIOR_LOCAL, radiusPct: 0.55, ring: 'outer' },
|
|
|
+ { type: 'KEY_CITY', typeName: '北上广等', color: INDUSTRY_COLORS.KEY_CITY, radiusPct: 0.55, ring: 'outer' }
|
|
|
],
|
|
|
}
|
|
|
},
|