index.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="chrome=1">
  6. <meta name="renderer" content="webkit">
  7. <meta name="keywords" content="原型,原型设计,快速原型,高保真原型,在线原型,原形工具,定制开发,软件开发,项目实施,项目管理" />
  8. <meta name="description" content="北京安盈创卓科技有限公司,是一家以软件开发为主的信息化企业,面向政府、央企提供以办公为核心的软件开发及实施、咨询服务,其开发的图腾软件生产平台,覆盖需求、设计、开发、实施全过程管理,可帮助信息化服务企业提升技术管理水平,提高市场竞争力。" />
  9. <title>安盈创卓 | 数字化转型专家</title>
  10. <link href="style/css/modern-light.css" rel="stylesheet" type="text/css" />
  11. <link rel="icon" type="image/x-icon" href="style/images/icon.png" />
  12. <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
  13. </head>
  14. <body>
  15. <!-- Navigation -->
  16. <nav class="nav" id="nav">
  17. <div class="nav-container">
  18. <a href="index.html" class="logo">
  19. <div class="logo-icon">
  20. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
  21. <defs>
  22. <linearGradient id="ayGrad" x1="0%" y1="0%" x2="100%" y2="100%">
  23. <stop offset="0%" style="stop-color:#0066cc"/>
  24. <stop offset="100%" style="stop-color:#0088ff"/>
  25. </linearGradient>
  26. </defs>
  27. <rect x="2" y="2" width="46" height="46" rx="8" fill="url(#ayGrad)"/>
  28. <path d="M12 38 L20 16 L25 28 L30 16 L38 38 L31 38 L27 25 L23 25 L19 38 Z" fill="white"/>
  29. <path d="M23 22 L27 22 L25 12 Z" fill="url(#ayGrad)"/>
  30. </svg>
  31. </div>
  32. <span class="logo-text">安盈创卓</span>
  33. </a>
  34. <ul class="nav-links" id="navLinks">
  35. <li><a href="index.html" class="nav-item" data-page="index">首页</a></li>
  36. <li><a href="product_totem.html" class="nav-item" data-page="product">企业产品</a></li>
  37. <li><a href="serve.html" class="nav-item" data-page="serve">企业服务</a></li>
  38. <li><a href="pricing.html" class="nav-item" data-page="pricing">服务资费</a></li>
  39. <li><a href="news.html" class="nav-item" data-page="news">新闻中心</a></li>
  40. <li><a href="about.html" class="nav-item" data-page="about">关于我们</a></li>
  41. <li class="nav-dropdown">
  42. <a href="#" class="nav-item" data-page="contact">联系我们</a>
  43. <div class="nav-dropdown-menu">
  44. <a href="contact.html">在线咨询</a>
  45. <a href="jobs.html">企业招聘</a>
  46. </div>
  47. </li>
  48. </ul>
  49. <button class="mobile-menu-btn" id="mobileMenuBtn" onclick="toggleMobileMenu()">
  50. <span></span>
  51. <span></span>
  52. <span></span>
  53. </button>
  54. </div>
  55. </nav>
  56. <script>
  57. (function() {
  58. var path = window.location.pathname.split('/').pop() || 'index.html';
  59. var pageMap = {
  60. 'index.html': 'index', '': 'index',
  61. 'product_totem.html': 'product', 'product_portal.html': 'product', 'product_oa.html': 'product',
  62. 'product_super.html': 'product', 'product_info.html': 'product', 'product_leader.html': 'product',
  63. 'product_bigdata.html': 'product', 'product_4a.html': 'product',
  64. 'serve.html': 'serve',
  65. 'pricing.html': 'pricing',
  66. 'news.html': 'news', 'news_show.html': 'news',
  67. 'about.html': 'about', 'about_certificate.html': 'about', 'about_member.html': 'about',
  68. 'contact.html': 'contact', 'jobs.html': 'contact'
  69. };
  70. var currentPage = pageMap[path];
  71. if (currentPage) {
  72. document.querySelectorAll('.nav-item').forEach(function(link) {
  73. if (link.getAttribute('data-page') === currentPage) link.classList.add('active');
  74. });
  75. }
  76. })();
  77. </script>
  78. <!-- Hero Section -->
  79. <section class="hero">
  80. <div class="hero-bg"></div>
  81. <div class="hero-grid"></div>
  82. <div class="hero-glow hero-glow-1"></div>
  83. <div class="hero-glow hero-glow-2"></div>
  84. <div class="container">
  85. <div class="hero-content">
  86. <div class="hero-badge">
  87. <span class="hero-badge-dot"></span>
  88. 信息化建设专家
  89. </div>
  90. <h1 class="hero-title">
  91. 用科技的力量<br>
  92. 助力<span class="hero-title-gradient">数字化转型</span>
  93. </h1>
  94. <p class="hero-subtitle">
  95. 以创新为核心竞争力,低调务实,价值至上。致力于为客户提供超越预期的信息化服务,打造可信赖的软件解决方案。
  96. </p>
  97. <div class="hero-buttons">
  98. <a href="product_totem.html" class="btn btn-primary">
  99. 了解图腾平台
  100. <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
  101. <path d="M3.333 8h9.334M9.667 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  102. </svg>
  103. </a>
  104. <a href="about.html" class="btn btn-secondary">了解更多</a>
  105. </div>
  106. <div class="hero-stats">
  107. <div class="hero-stat">
  108. <div class="hero-stat-number">30+</div>
  109. <div class="hero-stat-label">年行业经验</div>
  110. </div>
  111. <div class="hero-stat">
  112. <div class="hero-stat-number">100+</div>
  113. <div class="hero-stat-label">企业客户</div>
  114. </div>
  115. <div class="hero-stat">
  116. <div class="hero-stat-number">500+</div>
  117. <div class="hero-stat-label">项目交付</div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="hero-image">
  122. <img src="style/images/index_about.png" alt="安盈创卓">
  123. </div>
  124. </div>
  125. </section>
  126. <!-- Services Section -->
  127. <section class="section">
  128. <div class="container">
  129. <div class="section-header">
  130. <span class="section-tag">Services</span>
  131. <h2 class="section-title">服务领域</h2>
  132. <p class="section-subtitle">为您提供全方位的信息化解决方案</p>
  133. </div>
  134. <div class="services-grid">
  135. <div class="service-card">
  136. <div class="service-icon">
  137. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
  138. <path d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
  139. </svg>
  140. </div>
  141. <h3 class="service-title">软件定制研发</h3>
  142. <p class="service-desc">基于图腾平台的高效开发模式,快速响应业务需求,实现个性化软件定制</p>
  143. </div>
  144. <div class="service-card">
  145. <div class="service-icon">
  146. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
  147. <path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/>
  148. </svg>
  149. </div>
  150. <h3 class="service-title">管理软件实施</h3>
  151. <p class="service-desc">专业的项目管理团队,确保系统平稳落地,提供全流程实施服务</p>
  152. </div>
  153. <div class="service-card">
  154. <div class="service-icon">
  155. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
  156. <path d="M4 7h3a1 1 0 001-1V3m0 9v3a1 1 0 001 1h3m10-13h-3a1 1 0 00-1 1v3m0 9v3a1 1 0 001 1h3M7 17l-3 3m0 0l3 3m-3-3h12"/>
  157. </svg>
  158. </div>
  159. <h3 class="service-title">大数据应用</h3>
  160. <p class="service-desc">深度挖掘数据价值,构建智能数据分析平台,赋能科学决策</p>
  161. </div>
  162. <div class="service-card">
  163. <div class="service-icon">
  164. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
  165. <path d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
  166. </svg>
  167. </div>
  168. <h3 class="service-title">专业咨询</h3>
  169. <p class="service-desc">资深专家团队,提供信息化建设规划与咨询服务,助力业务升级</p>
  170. </div>
  171. </div>
  172. </div>
  173. </section>
  174. <!-- About Section -->
  175. <section class="section about-section">
  176. <div class="container">
  177. <div class="about-grid">
  178. <div class="about-visual">
  179. <div class="about-image-container">
  180. <img src="style/images/index_about.png" alt="安盈创卓">
  181. </div>
  182. </div>
  183. <div class="about-content">
  184. <span class="section-tag">About Us</span>
  185. <h2>北京安盈创卓科技有限公司</h2>
  186. <p>服务宗旨:超越客户预期的信息化服务。以创新为核心竞争力,低调务实,价值至上。</p>
  187. <p>成立之本:信息化创新引领、用科技的力量助力客户的业务升级和数字化转型。</p>
  188. <p>核心能力:信息化全链,从规划、咨询、研发、实施、运维、项目管理、系统集成,也包括人力派遣等。</p>
  189. <div class="about-features">
  190. <div class="about-feature">
  191. <span class="about-feature-icon">
  192. <svg width="12" height="12" viewBox="0 0 12 12" fill="none">
  193. <path d="M10 3L4.5 8.5L2 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  194. </svg>
  195. </span>
  196. 图腾代码生产平台
  197. </div>
  198. <div class="about-feature">
  199. <span class="about-feature-icon">
  200. <svg width="12" height="12" viewBox="0 0 12 12" fill="none">
  201. <path d="M10 3L4.5 8.5L2 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  202. </svg>
  203. </span>
  204. 标准化工业化生产
  205. </div>
  206. <div class="about-feature">
  207. <span class="about-feature-icon">
  208. <svg width="12" height="12" viewBox="0 0 12 12" fill="none">
  209. <path d="M10 3L4.5 8.5L2 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  210. </svg>
  211. </span>
  212. 丰富业务数据模型
  213. </div>
  214. <div class="about-feature">
  215. <span class="about-feature-icon">
  216. <svg width="12" height="12" viewBox="0 0 12 12" fill="none">
  217. <path d="M10 3L4.5 8.5L2 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  218. </svg>
  219. </span>
  220. A级供应商认证
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </section>
  227. <!-- Product Section -->
  228. <section class="section product-section">
  229. <div class="product-bg-glow"></div>
  230. <div class="container">
  231. <div class="section-header">
  232. <span class="section-tag">Product</span>
  233. <h2 class="section-title">核心产品</h2>
  234. <p class="section-subtitle">自主研发的图腾软件生产平台</p>
  235. </div>
  236. <div class="product-card">
  237. <span class="product-label">旗舰产品</span>
  238. <h3 class="product-title">图腾平台 TOTEM</h3>
  239. <p class="product-desc">
  240. Totem软件平台是随需而变的业务环境所需的敏捷IT基础设施,为企业信息化建设提供灵活、快捷、可信赖的平台。以数据架构为切入点,从统一展现、专业系统、配置环境、数据管理,在快速开发平台的基础上通过服务保障为企业提供全方位的IT技术服务。
  241. </p>
  242. <div class="product-features">
  243. <span class="product-tag">快速开发</span>
  244. <span class="product-tag">数据架构</span>
  245. <span class="product-tag">灵活配置</span>
  246. <span class="product-tag">全方位服务</span>
  247. </div>
  248. <a href="product_totem.html" class="btn btn-primary">
  249. 了解更多
  250. <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
  251. <path d="M3.333 8h9.334M9.667 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  252. </svg>
  253. </a>
  254. </div>
  255. </div>
  256. </section>
  257. <!-- Pricing Section -->
  258. <section class="section">
  259. <div class="container">
  260. <div class="section-header">
  261. <span class="section-tag">Pricing</span>
  262. <h2 class="section-title">服务套餐</h2>
  263. <p class="section-subtitle">明码标价,按需选购</p>
  264. </div>
  265. <div class="services-grid">
  266. <div class="service-card">
  267. <h3 class="service-title">图腾平台 基础版</h3>
  268. <p style="font-size:1.6rem;font-weight:700;color:var(--accent);margin:0.5rem 0 1rem;">
  269. ¥8,000<small style="font-size:0.9rem;font-weight:500;color:var(--text-tertiary);"> / 年</small>
  270. </p>
  271. <p class="service-desc">
  272. 平台基础功能、支持 5 个应用、标准维护支持,适合初创团队快速构建信息化应用。
  273. </p>
  274. <a href="pricing.html#order" class="btn btn-primary" style="margin-top:1rem;">立即订购</a>
  275. </div>
  276. <div class="service-card" style="border-color:var(--accent);box-shadow:var(--shadow-tech);">
  277. <h3 class="service-title">图腾平台 专业版</h3>
  278. <p style="font-size:1.6rem;font-weight:700;color:var(--accent);margin:0.5rem 0 1rem;">
  279. ¥20,000<small style="font-size:0.9rem;font-weight:500;color:var(--text-tertiary);"> / 年</small>
  280. </p>
  281. <p class="service-desc">
  282. 全部平台功能、支持 20 个应用、7×12 小时技术支持及在线升级,适合企业全面信息化建设。
  283. </p>
  284. <a href="pricing.html#order" class="btn btn-primary" style="margin-top:1rem;">立即订购</a>
  285. </div>
  286. <div class="service-card">
  287. <h3 class="service-title">图腾平台 企业版</h3>
  288. <p style="font-size:1.6rem;font-weight:700;color:var(--accent);margin:0.5rem 0 1rem;">
  289. ¥50,000<small style="font-size:0.9rem;font-weight:500;color:var(--text-tertiary);"> / 年</small>
  290. </p>
  291. <p class="service-desc">
  292. 全部平台功能、无限应用授权、专属实施与 7×24 小时支持,适合大型企业级数字化转型。
  293. </p>
  294. <a href="pricing.html#order" class="btn btn-primary" style="margin-top:1rem;">立即订购</a>
  295. </div>
  296. </div>
  297. <div style="text-align:center;margin-top:1rem;">
  298. <a href="pricing.html" class="btn btn-secondary">查看完整资费表 →</a>
  299. </div>
  300. </div>
  301. </section>
  302. <!-- News Section -->
  303. <section class="section news-section">
  304. <div class="container">
  305. <div class="section-header">
  306. <span class="section-tag">News</span>
  307. <h2 class="section-title">企业动态</h2>
  308. <p class="section-subtitle">最新资讯与行业动态</p>
  309. </div>
  310. <div class="news-grid" id="homeNewsList">
  311. <a href="news_show_three.html" class="news-card">
  312. <div class="news-card-image">
  313. <img src="style/images/news_image1.png" alt="新闻图片">
  314. </div>
  315. <div class="news-card-content">
  316. <div class="news-date">2023-04-14</div>
  317. <h3 class="news-title">图腾平台正式在中石化应用</h3>
  318. <p class="news-excerpt">图腾平台成功部署至中国石化信息系统,为企业数字化转型提供有力支撑...</p>
  319. <span class="news-more">了解更多 →</span>
  320. </div>
  321. </a>
  322. <a href="news_show_two.html" class="news-card">
  323. <div class="news-card-image">
  324. <img src="style/images/news_image2.png" alt="新闻图片">
  325. </div>
  326. <div class="news-card-content">
  327. <div class="news-date">2023-04-03</div>
  328. <h3 class="news-title">图腾平台正式上线</h3>
  329. <p class="news-excerpt">历经研发与测试,图腾平台正式发布上线,为企业带来全新的软件开发体验...</p>
  330. <span class="news-more">了解更多 →</span>
  331. </div>
  332. </a>
  333. <a href="news_show_four.html" class="news-card">
  334. <div class="news-card-image">
  335. <img src="style/images/news_image3.png" alt="新闻图片">
  336. </div>
  337. <div class="news-card-content">
  338. <div class="news-date">2023-03-12</div>
  339. <h3 class="news-title">国家电网移动二期项目正式上线</h3>
  340. <p class="news-excerpt">国家电网移动二期项目顺利上线,安盈创卓提供全方位技术支持...</p>
  341. <span class="news-more">了解更多 →</span>
  342. </div>
  343. </a>
  344. </div>
  345. <div id="homeNewsLoading" style="text-align: center; padding: 2rem; color: var(--text-tertiary);">
  346. 加载中...
  347. </div>
  348. </div>
  349. </section>
  350. <!-- Partners Section -->
  351. <section class="partners-section">
  352. <div class="container">
  353. <div class="partners-title">合作客户</div>
  354. <div class="partners-grid">
  355. <img class="partner-logo" src="style/images/icon_partner1.png" alt="合作伙伴">
  356. <img class="partner-logo" src="style/images/icon_partner2.png" alt="合作伙伴">
  357. <img class="partner-logo" src="style/images/icon_partner3.png" alt="合作伙伴">
  358. <img class="partner-logo" src="style/images/icon_partner4.png" alt="合作伙伴">
  359. <img class="partner-logo" src="style/images/icon_partner5.png" alt="合作伙伴">
  360. <img class="partner-logo" src="style/images/icon_partner6.png" alt="合作伙伴">
  361. <img class="partner-logo" src="style/images/icon_partner7.png" alt="合作伙伴">
  362. <img class="partner-logo" src="style/images/icon_partner8.png" alt="合作伙伴">
  363. </div>
  364. </div>
  365. </section>
  366. <!-- Footer -->
  367. <footer class="footer">
  368. <div class="container">
  369. <div class="footer-grid">
  370. <div class="footer-brand">
  371. <a href="index.html" class="logo">
  372. <div class="logo-icon">
  373. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
  374. <defs>
  375. <linearGradient id="iconGrad" x1="0%" y1="0%" x2="100%" y2="100%">
  376. <stop offset="0%" style="stop-color:#0066cc"/>
  377. <stop offset="100%" style="stop-color:#0088ff"/>
  378. </linearGradient>
  379. </defs>
  380. <circle cx="25" cy="25" r="24" fill="url(#iconGrad)"/>
  381. <path d="M25 10 L37 36 L25 29 L13 36 Z" fill="white"/>
  382. <circle cx="25" cy="23" r="3" fill="url(#iconGrad)"/>
  383. </svg>
  384. </div>
  385. <span class="logo-text" style="color: white;">安盈创卓</span>
  386. </a>
  387. <p>以创新为核心竞争力,低调务实,价值至上。致力于为客户提供超越预期的信息化服务。</p>
  388. </div>
  389. <div class="footer-column">
  390. <h4 class="footer-title">产品服务</h4>
  391. <ul class="footer-links">
  392. <li><a href="product_totem.html">图腾平台</a></li>
  393. <li><a href="product_oa.html">协同办公</a></li>
  394. <li><a href="product_bigdata.html">大数据产品</a></li>
  395. <li><a href="product_portal.html">企业门户</a></li>
  396. <li><a href="pricing.html">服务资费</a></li>
  397. </ul>
  398. </div>
  399. <div class="footer-column">
  400. <h4 class="footer-title">关于公司</h4>
  401. <ul class="footer-links">
  402. <li><a href="about.html">公司简介</a></li>
  403. <li><a href="about_certificate.html">资质荣誉</a></li>
  404. <li><a href="about_member.html">团队成员</a></li>
  405. <li><a href="news.html">新闻动态</a></li>
  406. </ul>
  407. </div>
  408. <div class="footer-column footer-contact">
  409. <h4 class="footer-title">联系我们</h4>
  410. <p>电话:010-58733188</p>
  411. <p>地址:北京市海淀区盈都大厦C座4单元21E</p>
  412. <p>邮箱:contact@iwintrue.com</p>
  413. </div>
  414. </div>
  415. <div class="footer-bottom">
  416. <p>Copyright © 2015-2025 安盈创卓 京ICP备14061870号-1</p>
  417. <div>
  418. <a href="https://beian.miit.gov.cn" target="_blank">备案查询</a>
  419. </div>
  420. </div>
  421. </div>
  422. </footer>
  423. <script>
  424. // Mobile menu toggle
  425. function toggleMobileMenu() {
  426. const navLinks = document.getElementById('navLinks');
  427. const menuBtn = document.getElementById('mobileMenuBtn');
  428. navLinks.classList.toggle('active');
  429. menuBtn.classList.toggle('active');
  430. }
  431. // Mobile dropdown toggle
  432. document.querySelectorAll('.nav-dropdown > a').forEach(function(dropdown) {
  433. dropdown.addEventListener('click', function(e) {
  434. if (window.innerWidth <= 768) {
  435. e.preventDefault();
  436. this.parentElement.classList.toggle('active');
  437. }
  438. });
  439. });
  440. // Close mobile menu when clicking outside
  441. document.addEventListener('click', function(e) {
  442. const navLinks = document.getElementById('navLinks');
  443. const menuBtn = document.getElementById('mobileMenuBtn');
  444. if (window.innerWidth <= 768 && navLinks.classList.contains('active')) {
  445. if (!navLinks.contains(e.target) && !menuBtn.contains(e.target)) {
  446. navLinks.classList.remove('active');
  447. menuBtn.classList.remove('active');
  448. }
  449. }
  450. });
  451. // Navigation scroll effect
  452. window.addEventListener('scroll', function() {
  453. const nav = document.getElementById('nav');
  454. if (window.scrollY > 50) {
  455. nav.classList.add('scrolled');
  456. } else {
  457. nav.classList.remove('scrolled');
  458. }
  459. });
  460. // Load home news from API
  461. function loadHomeNews() {
  462. const newsList = document.getElementById('homeNewsList');
  463. const loadingEl = document.getElementById('homeNewsLoading');
  464. var xhr = new XMLHttpRequest();
  465. xhr.open('POST', '/cont/cms/getNews', true);
  466. xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  467. xhr.onreadystatechange = function() {
  468. if (xhr.readyState === 4 && xhr.status === 200) {
  469. loadingEl.style.display = 'none';
  470. try {
  471. var res = JSON.parse(xhr.responseText);
  472. var data = res.dataList || res;
  473. if (data && data.length > 0) {
  474. var html = '';
  475. data.slice(0, 3).forEach(function(news) {
  476. // Get image URL
  477. var imgUrl = '';
  478. if (news.coverImg) {
  479. if (news.coverImg.indexOf('/') > -1) {
  480. imgUrl = news.coverImg;
  481. } else {
  482. imgUrl = '/cont/files/showImage/' + news.coverImg;
  483. }
  484. } else {
  485. imgUrl = 'style/images/news_image1.png';
  486. }
  487. // Get excerpt from content
  488. let excerpt = '';
  489. if (news.content) {
  490. excerpt = news.content.replace(/<[^>]*>/g, '').substring(0, 80) + '...';
  491. }
  492. html += '<a href="news_show.html?id=' + news.articleId + '" class="news-card">';
  493. html += '<div class="news-card-image">';
  494. html += '<img src="' + imgUrl + '" alt="' + news.title + '">';
  495. html += '</div>';
  496. html += '<div class="news-card-content">';
  497. html += '<div class="news-date">' + (news.publishTime || '') + '</div>';
  498. html += '<h3 class="news-title">' + news.title + '</h3>';
  499. if (excerpt) {
  500. html += '<p class="news-excerpt">' + excerpt + '</p>';
  501. }
  502. html += '<span class="news-more">了解更多 →</span>';
  503. html += '</div></a>';
  504. });
  505. newsList.innerHTML = html;
  506. }
  507. } catch(e) {
  508. console.log('Home news parse error:', e);
  509. }
  510. }
  511. };
  512. xhr.send('catalogId=ifUy4w7Y&limit=3');
  513. }
  514. // Load home news
  515. loadHomeNews();
  516. </script>
  517. </body>
  518. </html>