diff --git a/index.html b/index.html
index 74b7b7b..ef5bf13 100644
--- a/index.html
+++ b/index.html
@@ -1,20 +1,20 @@
-陕西博海网络科技 · 专业IT服务
-
-
+陕西博海网络科技:AI与CMA驱动的企业数字化转型服务商
+
+
-
-
+
+
-
-
+
+
@@ -40,6 +40,84 @@
"priceRange": "¥¥"
}
+
+
+
@@ -83,8 +161,8 @@
定边本地专业IT服务商 · 25年+行业经验
- 您的专业IT服务管家
- 深耕IT服务与数字化领域,集设备维修、产品销售、网络工程、Web应用开发于一体,为企业和个人提供一站式IT解决方案。
+ 您的企业数字化转型服务商
+ 从电脑维修到CMA管理会计、AI Agent——25年本地IT服务商,以国学×CMA×Agent三位一体理念驱动企业数字化升级。
洞察 · 思考 · 观点
博海公司出品 · 一切皆如 — 品宣BOT同步发布的热点洞察与人文思考
+
+
+
+
+
+
@@ -561,22 +645,38 @@ const observer = new IntersectionObserver((entries) => {
}, { threshold: .1 });
document.querySelectorAll('.fade-in').forEach(el => observer.observe(el));
-// ===== 加载博海视角最新文章 =====
+// ===== 加载博海视角最新文章(支持栏目分流)=====
(async function() {
const container = document.getElementById('perspective-list');
- try {
- const resp = await fetch('/perspective-articles.json?t=' + Date.now());
- if (!resp.ok) throw new Error('HTTP ' + resp.status);
- const data = await resp.json();
- const articles = data.articles || [];
- if (articles.length === 0) {
- container.innerHTML = '暂无文章
';
+ const tabs = document.getElementById('perspective-tabs');
+ let allArticles = [];
+ let currentSection = 'all';
+
+ function render() {
+ // 栏目分流:company 保留待补(空态建设中);other 并入 humanities 展示;无 section 视为 other
+ const inSec = (a, sec) => {
+ const s = a.section || 'other';
+ if (s === sec) return true;
+ // other(商业观察/中性)并入 humanities tab 展示,全部在 all 可见
+ if (sec === 'humanities' && s === 'other') return true;
+ return false;
+ };
+ const filtered = currentSection === 'all'
+ ? allArticles
+ : allArticles.filter(a => inSec(a, currentSection));
+ const slice = filtered.slice(0, 6);
+ if (slice.length === 0) {
+ const emptyMsg = currentSection === 'company'
+ ? '该栏目建设中,敬请期待'
+ : '该栏目暂无文章';
+ container.innerHTML = `${emptyMsg}
`;
return;
}
- container.innerHTML = articles.slice(0, 6).map(a => `
-
+ const catLabel = {humanities: '博海视角(人文)', botos: 'BotOS 实践', company: '公司身份', other: '博海视角'};
+ container.innerHTML = slice.map(a => `
+
-
${a.category || '博海视角'}
+
${catLabel[a.section] || a.category || '博海视角'}
${a.title}
${a.date || ''}
@@ -597,6 +697,26 @@ document.querySelectorAll('.fade-in').forEach(el => observer.observe(el));
el.getBoundingClientRect();
});
});
+ }
+
+ try {
+ const resp = await fetch('/perspective-articles.json?t=' + Date.now());
+ if (!resp.ok) throw new Error('HTTP ' + resp.status);
+ const data = await resp.json();
+ allArticles = data.articles || [];
+ const totalEl = document.getElementById('article-total');
+ if (totalEl) totalEl.textContent = allArticles.length;
+ render();
+
+ // Tab 切换
+ tabs.querySelectorAll('.ptab').forEach(btn => {
+ btn.addEventListener('click', () => {
+ tabs.querySelectorAll('.ptab').forEach(b => b.classList.remove('active'));
+ btn.classList.add('active');
+ currentSection = btn.dataset.section;
+ render();
+ });
+ });
} catch(e) {
console.error('加载博海视角文章失败:', e);
container.innerHTML = '博海视角文章正在加载中…
';
@@ -604,4 +724,8 @@ document.querySelectorAll('.fade-in').forEach(el => observer.observe(el));
})();
+
+
+
+
\ No newline at end of file