news_show.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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/page.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. <style>
  14. .news-detail {
  15. max-width: 900px;
  16. margin: 0 auto;
  17. }
  18. .news-detail-header {
  19. margin-bottom: 2rem;
  20. }
  21. .news-detail-title {
  22. font-size: 2rem;
  23. font-weight: 700;
  24. color: var(--text-primary);
  25. line-height: 1.4;
  26. margin-bottom: 1rem;
  27. }
  28. .news-detail-meta {
  29. display: flex;
  30. gap: 2rem;
  31. color: var(--text-tertiary);
  32. font-size: 0.9rem;
  33. }
  34. .news-detail-image {
  35. width: 100%;
  36. max-height: 500px;
  37. overflow: hidden;
  38. border-radius: 16px;
  39. margin-bottom: 2rem;
  40. background: var(--bg-tertiary);
  41. }
  42. .news-detail-image img {
  43. width: 100%;
  44. height: 100%;
  45. object-fit: cover;
  46. }
  47. .news-detail-content {
  48. background: var(--bg-card);
  49. border: 1px solid var(--border);
  50. border-radius: 16px;
  51. padding: 2.5rem;
  52. line-height: 1.8;
  53. color: var(--text-secondary);
  54. }
  55. .news-detail-content p {
  56. margin-bottom: 1rem;
  57. }
  58. .news-detail-content img {
  59. max-width: 100%;
  60. height: auto;
  61. border-radius: 8px;
  62. margin: 1.5rem 0;
  63. }
  64. .back-btn {
  65. display: inline-flex;
  66. align-items: center;
  67. gap: 0.5rem;
  68. margin-bottom: 2rem;
  69. color: var(--text-secondary);
  70. font-size: 0.9rem;
  71. transition: color 0.3s ease;
  72. }
  73. .back-btn:hover {
  74. color: var(--accent);
  75. }
  76. .news-loading, .news-error {
  77. text-align: center;
  78. padding: 4rem 2rem;
  79. color: var(--text-tertiary);
  80. }
  81. .news-error {
  82. color: #dc2626;
  83. }
  84. </style>
  85. </head>
  86. <body>
  87. <!-- Navigation -->
  88. <nav class="nav" id="nav">
  89. <div class="nav-container">
  90. <a href="index.html" class="logo">
  91. <div class="logo-icon">
  92. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
  93. <defs>
  94. <linearGradient id="ayGrad" x1="0%" y1="0%" x2="100%" y2="100%">
  95. <stop offset="0%" style="stop-color:#0066cc"/>
  96. <stop offset="100%" style="stop-color:#0088ff"/>
  97. </linearGradient>
  98. </defs>
  99. <rect x="2" y="2" width="46" height="46" rx="8" fill="url(#ayGrad)"/>
  100. <path d="M12 38 L20 16 L25 28 L30 16 L38 38 L31 38 L27 25 L23 25 L19 38 Z" fill="white"/>
  101. <path d="M23 22 L27 22 L25 12 Z" fill="url(#ayGrad)"/>
  102. </svg>
  103. </div>
  104. <span class="logo-text">安盈创卓</span>
  105. </a>
  106. <ul class="nav-links" id="navLinks">
  107. <li><a href="index.html" class="nav-item" data-page="index">首页</a></li>
  108. <li><a href="product_totem.html" class="nav-item" data-page="product">企业产品</a></li>
  109. <li><a href="serve.html" class="nav-item" data-page="serve">企业服务</a></li>
  110. <li><a href="pricing.html" class="nav-item" data-page="pricing">服务资费</a></li>
  111. <li><a href="news.html" class="nav-item" data-page="news">新闻中心</a></li>
  112. <li><a href="about.html" class="nav-item" data-page="about">关于我们</a></li>
  113. <li class="nav-dropdown">
  114. <a href="#" class="nav-item" data-page="contact">联系我们</a>
  115. <div class="nav-dropdown-menu">
  116. <a href="contact.html">线上咨询</a>
  117. <a href="jobs.html">企业招聘</a>
  118. </div>
  119. </li>
  120. </ul>
  121. <button class="mobile-menu-btn" id="mobileMenuBtn" onclick="toggleMobileMenu()">
  122. <span></span>
  123. <span></span>
  124. <span></span>
  125. </button>
  126. </div>
  127. </nav>
  128. <script>
  129. (function() {
  130. var path = window.location.pathname.split('/').pop() || 'index.html';
  131. var pageMap = {
  132. 'index.html': 'index', '': 'index',
  133. 'product_totem.html': 'product', 'product_portal.html': 'product', 'product_oa.html': 'product',
  134. 'product_super.html': 'product', 'product_info.html': 'product', 'product_leader.html': 'product',
  135. 'product_bigdata.html': 'product', 'product_4a.html': 'product',
  136. 'serve.html': 'serve',
  137. 'pricing.html': 'pricing',
  138. 'news.html': 'news', 'news_show.html': 'news',
  139. 'about.html': 'about', 'about_certificate.html': 'about', 'about_member.html': 'about',
  140. 'contact.html': 'contact', 'jobs.html': 'contact'
  141. };
  142. var currentPage = pageMap[path];
  143. if (currentPage) {
  144. document.querySelectorAll('.nav-item').forEach(function(link) {
  145. if (link.getAttribute('data-page') === currentPage) link.classList.add('active');
  146. });
  147. }
  148. })();
  149. </script>
  150. <!-- Banner -->
  151. <div class="page-banner">
  152. <div class="page-banner-content">
  153. <h1>新闻详情</h1>
  154. <p>了解最新资讯</p>
  155. </div>
  156. </div>
  157. <!-- Content -->
  158. <div class="page-content">
  159. <div class="container">
  160. <div class="news-detail" id="newsDetail">
  161. <div class="news-loading">加载中...</div>
  162. </div>
  163. </div>
  164. </div>
  165. <!-- Footer -->
  166. <footer class="footer">
  167. <div class="container">
  168. <div class="footer-grid">
  169. <div class="footer-brand">
  170. <a href="index.html" class="logo">
  171. <div class="logo-icon">
  172. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
  173. <defs>
  174. <linearGradient id="iconGrad" x1="0%" y1="0%" x2="100%" y2="100%">
  175. <stop offset="0%" style="stop-color:#0066cc"/>
  176. <stop offset="100%" style="stop-color:#0088ff"/>
  177. </linearGradient>
  178. </defs>
  179. <circle cx="25" cy="25" r="24" fill="url(#iconGrad)"/>
  180. <path d="M25 10 L37 36 L25 29 L13 36 Z" fill="white"/>
  181. <circle cx="25" cy="23" r="3" fill="url(#iconGrad)"/>
  182. </svg>
  183. </div>
  184. <span class="logo-text" style="color: white;">安盈创卓</span>
  185. </a>
  186. <p>以创新为核心竞争力,低调务实,价值至上。致力于为客户提供超越预期的信息化服务。</p>
  187. </div>
  188. <div class="footer-column">
  189. <h4 class="footer-title">产品服务</h4>
  190. <ul class="footer-links">
  191. <li><a href="product_totem.html">图腾平台</a></li>
  192. <li><a href="product_oa.html">协同办公</a></li>
  193. <li><a href="product_bigdata.html">大数据产品</a></li>
  194. <li><a href="product_portal.html">企业门户</a></li>
  195. <li><a href="pricing.html">服务资费</a></li>
  196. </ul>
  197. </div>
  198. <div class="footer-column">
  199. <h4 class="footer-title">关于公司</h4>
  200. <ul class="footer-links">
  201. <li><a href="about.html">公司简介</a></li>
  202. <li><a href="about_certificate.html">资质荣誉</a></li>
  203. <li><a href="about_member.html">团队成员</a></li>
  204. <li><a href="news.html">新闻动态</a></li>
  205. </ul>
  206. </div>
  207. <div class="footer-column footer-contact">
  208. <h4 class="footer-title">联系我们</h4>
  209. <p>电话:010-58733188</p>
  210. <p>地址:北京市海淀区盈都大厦C座4单元21E</p>
  211. <p>邮箱:contact@iwintrue.com</p>
  212. </div>
  213. </div>
  214. <div class="footer-bottom">
  215. <p>Copyright © 2015-2025 安盈创卓 京ICP备14061870号-1</p>
  216. <div>
  217. <a href="https://beian.miit.gov.cn" target="_blank">备案查询</a>
  218. </div>
  219. </div>
  220. </div>
  221. </footer>
  222. <script>
  223. // Get URL parameter
  224. function getQueryParam(name) {
  225. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
  226. var r = window.location.search.substr(1).match(reg);
  227. if (r != null) return unescape(r[2]);
  228. return null;
  229. }
  230. // Mobile menu toggle
  231. function toggleMobileMenu() {
  232. const navLinks = document.getElementById('navLinks');
  233. const menuBtn = document.getElementById('mobileMenuBtn');
  234. navLinks.classList.toggle('active');
  235. menuBtn.classList.toggle('active');
  236. }
  237. document.querySelectorAll('.nav-dropdown > a').forEach(function(dropdown) {
  238. dropdown.addEventListener('click', function(e) {
  239. if (window.innerWidth <= 768) {
  240. e.preventDefault();
  241. this.parentElement.classList.toggle('active');
  242. }
  243. });
  244. });
  245. document.addEventListener('click', function(e) {
  246. const navLinks = document.getElementById('navLinks');
  247. const menuBtn = document.getElementById('mobileMenuBtn');
  248. if (window.innerWidth <= 768 && navLinks.classList.contains('active')) {
  249. if (!navLinks.contains(e.target) && !menuBtn.contains(e.target)) {
  250. navLinks.classList.remove('active');
  251. menuBtn.classList.remove('active');
  252. }
  253. }
  254. });
  255. // Navigation scroll effect
  256. window.addEventListener('scroll', function() {
  257. const nav = document.getElementById('nav');
  258. if (window.scrollY > 50) {
  259. nav.classList.add('scrolled');
  260. } else {
  261. nav.classList.remove('scrolled');
  262. }
  263. });
  264. // Load news detail
  265. function loadNewsDetail() {
  266. const newsDetail = document.getElementById('newsDetail');
  267. const articleId = getQueryParam('id');
  268. if (!articleId) {
  269. newsDetail.innerHTML = '<div class="news-error">参数错误</div>';
  270. return;
  271. }
  272. var xhr = new XMLHttpRequest();
  273. xhr.open('GET', '/cont/cms/getArticle/' + articleId, true);
  274. xhr.onreadystatechange = function() {
  275. if (xhr.readyState === 4) {
  276. if (xhr.status === 200) {
  277. try {
  278. var data = JSON.parse(xhr.responseText);
  279. if (data && data.title) {
  280. // Get image URL
  281. var imgUrl = '';
  282. if (data.mainImg) {
  283. if (data.mainImg.indexOf('/') > -1) {
  284. imgUrl = data.mainImg;
  285. } else {
  286. imgUrl = '/cont/files/showImage/' + data.mainImg;
  287. }
  288. }
  289. var html = '<a href="news.html" class="back-btn">';
  290. html += '<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M10 12L6 8l4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
  291. html += '返回列表';
  292. html += '</a>';
  293. html += '<div class="news-detail-header">';
  294. html += '<h1 class="news-detail-title">' + data.title + '</h1>';
  295. html += '<div class="news-detail-meta">';
  296. html += '<span>' + (data.publishTime || '') + '</span>';
  297. html += '</div></div>';
  298. if (imgUrl) {
  299. html += '<div class="news-detail-image">';
  300. html += '<img src="' + imgUrl + '" alt="' + data.title + '">';
  301. html += '</div>';
  302. }
  303. html += '<div class="news-detail-content">';
  304. html += data.content;
  305. html += '</div>';
  306. newsDetail.innerHTML = html;
  307. // Update page title
  308. document.title = data.title + ' | 安盈创卓';
  309. } else {
  310. newsDetail.innerHTML = '<div class="news-error">未找到该新闻</div>';
  311. }
  312. } catch(e) {
  313. console.error('Parse error:', e);
  314. newsDetail.innerHTML = '<div class="news-error">数据解析失败</div>';
  315. }
  316. } else {
  317. newsDetail.innerHTML = '<div class="news-error">请求失败: ' + xhr.status + '</div>';
  318. }
  319. }
  320. };
  321. xhr.send();
  322. }
  323. // Load news detail on page load
  324. loadNewsDetail();
  325. </script>
  326. </body>
  327. </html>