@@ -437,13 +536,18 @@ const chinaExcellentProjects = ref([
// 武汉知名社区数据
const wuhanCommunities = ref([
- { name: 'Deepin (深度)', type: '操作系统', slogan: '最大的国产桌面操作系统开源社区' },
- { name: 'OpenHarmony 武汉', type: '万物互联', slogan: '华科/武大等高校深度参与的终端操作系统' },
- { name: 'MindSpore 武汉', type: '人工智能', slogan: '昇思全场景AI框架武汉开发者社区' },
- { name: 'IoTDB 社区', type: '工业物联网', slogan: '源自清华在汉广泛应用的工业时序数据库' },
- { name: 'GoFrame 社区', type: '后端开发', slogan: '模块化、全栈式、模块化的Go语言开发框架' },
- { name: '飞桨 (PaddlePaddle)', type: '深度学习', slogan: '百度武汉开源生态开发者汇聚地' },
- { name: '极狐 GitLab 武汉', type: 'DevOps', slogan: '开源信息基础设施与协同开发平台' }
+ { name: '黄鹤开源社区', type: '核心生态', slogan: '国家级、城市级开源社区平台,武汉开源生态的核心枢纽' },
+ { name: '深度社区 (Deepin)', type: '操作系统', slogan: '全球最大桌面操作系统社区之一,全球用户超过 750 万' },
+ { name: '极狐社区 (GitLab China)', type: 'DevOps', slogan: '全球第二大开源托管平台 GitLab 在汉设立的中国发行版及开发者社区' },
+ { name: '开源鸿蒙社区 (OpenHarmony)', type: '万物互联', slogan: '国家级生态创新中心,设有全国首个分委会' },
+ { name: 'PostgreSQL 中文社区', type: '数据库', slogan: '全球四大开源数据库之一的运营中心设在武汉' },
+ { name: '武汉大学开源社区', type: '学术社团', slogan: '老牌社团,涉及 Linux、嵌入式、深度学习等方向' },
+ { name: '武汉大学 OpenHarmony 俱乐部', type: '万物互联', slogan: '专注于华为开源鸿蒙生态' },
+ { name: '华中科技大学开源社团', type: '学术社团', slogan: '常年组织 LUG (Linux User Group) 及黑客松活动' },
+ { name: '武汉理工大学开源联盟', type: '学术社团', slogan: '聚焦计算机科学与软件工程方向' },
+ { name: '华中师范大学', type: '兴趣小组', slogan: '开源技术兴趣小组' },
+ { name: '中南民族大学', type: '兴趣小组', slogan: '开源技术兴趣小组' },
+ { name: '湖北大学', type: '兴趣小组', slogan: '开源技术兴趣小组' }
]);
const activeCommunityTab = ref(0);
@@ -591,6 +695,8 @@ const isEmpty = ref({
const chartInstances = ref<{ [key: string]: echarts.ECharts | null }>({});
const scrollContainer1 = ref
(null);
const scrollContainer2 = ref(null);
+const scrollContainer3 = ref(null);
+const scrollContainer4 = ref(null);
const scrollTimers: { [key: number]: NodeJS.Timeout | null } = { 1: null, 2: null };
const autoScroll = (key: number) => {
@@ -815,6 +921,7 @@ const initCharts = () => {
const init = () => {
nextTick(() => {
initCityProjectChart();
+ initHmEnterpriseChart();
initTalentChart();
initDeveloperChart();
initCommunityRankChart();
@@ -825,6 +932,8 @@ const init = () => {
autoScroll(1);
autoScroll(2);
+ autoScroll(3);
+ autoScroll(4);
startCommunityScroll();
startDeveloperScroll();
});
@@ -835,6 +944,90 @@ const unInit = () => {
pauseCommunityScroll();
};
+
+// 1. 鸿蒙优秀开源项目 (突出核心技术组件)
+const hmProjects = [
+ { name: 'OpenHarmony/arkui_ace_engine', desc: 'ArkUI 声明式UI开发框架引擎' },
+ { name: 'HarmonyOS/dist_softbus', desc: '极简协议分布式软总线技术' },
+ { name: 'OpenHarmony/communication_netmanager', desc: '网络管理与连接调度子系统' },
+ { name: 'ohos-standard/third_party_sqlite', desc: '适配于鸿蒙的高性能数据库组件' },
+];
+
+// 2. 鸿蒙明星开发者贡献榜 (模拟活跃度分数)
+const hmDevelopers = [
+ { name: 'Harmony_Hacker', score: '3,210', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Ark' },
+ { name: 'BlueOS_Contributor', score: '2,850', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Blue' },
+ { name: 'OpenSource_Fanatic', score: '2,460', avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=Fan' },
+];
+
+// 3. 鸿蒙开源企业排行榜 (体现生态伙伴参与度)
+const hmEnterprises = [
+ { name: '华为技术', value: 100 },
+ { name: '软通动力', value: 85 },
+ { name: '拓维信息', value: 72 },
+ { name: '润和软件', value: 65 },
+ { name: '中软国际', value: 58 }
+];
+
+const initHmEnterpriseChart = () => {
+ const chartDom = document.getElementById('hmEnterpriseChart');
+ if (!chartDom) return;
+
+ const myChart = echarts.init(chartDom);
+
+ const option = {
+ grid: {
+ left: '3%',
+ right: '12%',
+ bottom: '3%',
+ top: '5%',
+ containLabel: true
+ },
+ xAxis: {
+ type: 'value',
+ show: false // 保持与政策图一致,不显示坐标轴
+ },
+ yAxis: {
+ type: 'category',
+ // 反转数据,让高分的排在上面
+ data: hmEnterprises.map(item => item.name).reverse(),
+ axisLine: { show: false },
+ axisTick: { show: false },
+ axisLabel: {
+ color: '#64748b',
+ fontSize: 12
+ }
+ },
+ series: [
+ {
+ type: 'bar',
+ data: hmEnterprises.map(item => item.value).reverse(),
+ barWidth: 16,
+ itemStyle: {
+ // 使用渐变色提升质感
+ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
+ { offset: 0, color: '#3b82f6' },
+ { offset: 1, color: '#60a5fa' }
+ ]),
+ borderRadius: [0, 8, 8, 0] // 右侧圆角
+ },
+ label: {
+ show: true,
+ position: 'right',
+ formatter: '{c}', // 直接显示数值
+ color: '#1e293b',
+ fontWeight: 'bold'
+ }
+ }
+ ]
+ };
+
+ myChart.setOption(option);
+
+ // 窗口缩放自适应
+ window.addEventListener('resize', () => myChart.resize());
+};
+
watch(widthType, () => {
init();
});
@@ -1480,4 +1673,49 @@ onUnmounted(() => {
grid-template-columns: 1fr;
}
}
+
+/* 鸿蒙专项板块样式 */
+.hm-grid-container {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 24px;
+}
+
+.hm-tag-icon {
+ background: linear-gradient(90deg, #007dff, #00c4ff);
+ color: white;
+ padding: 2px 10px;
+ border-radius: 4px;
+ font-size: 14px;
+ margin-right: 8px;
+ font-weight: bold;
+}
+
+.hm-rank-card {
+ background: #ffffff;
+ border-radius: 16px;
+ overflow: hidden;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
+ border: 1px solid #f1f5f9;
+ transition: transform 0.3s ease;
+
+ &:hover {
+ transform: translateY(-5px);
+ }
+}
+
+.hm-rank-card {
+ // ... 原有样式
+ border: 1px solid rgba(0, 125, 255, 0.1); // 淡淡的鸿蒙蓝边框
+
+ &:hover {
+ transform: translateY(-5px);
+ border-color: rgba(0, 125, 255, 0.4);
+ box-shadow: 0 10px 30px rgba(0, 125, 255, 0.1); // 蓝色系投影
+ }
+}
+
+.hm-tag-icon {
+ background: linear-gradient(90deg, #007dff, #4da1ff); // 更加纯净的华为/鸿蒙蓝
+}
diff --git a/src/views/Jyh/Community/indexOld.vue b/src/views/Jyh/Community/indexOld.vue
deleted file mode 100644
index e347d3c..0000000
--- a/src/views/Jyh/Community/indexOld.vue
+++ /dev/null
@@ -1,1408 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
武汉优秀开源项目
-
-
-
-
-
{{ index + 1 }}
-
- {{ item.name }}
- {{ item.desc }}
-
-
{{ item.org }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
2025武汉市优秀开源软件项目
-
-
-
-
-
{{ index + 1 }}
-
- {{ item.name }}
- {{ item.desc }}
-
-
{{ item.org }}
-
-
-
-
-
-
-
-
武汉市编程语言占比趋势(2020-2024)
-
-
-
-
-
-
-
-
-
-
-
加入武汉开源社区
-
- 与武汉本地开发者、企业、高校携手共建开源生态,共享开源成果,参与社区活动与项目协作
-
-
-
-
-
-
企业项目协作
-
-
-
-
-
-
-
-
-
-
-
-
-