| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
- <meta name="renderer" content="webkit">
- <meta name="keywords" content="新闻详情" />
- <meta name="description" content="安盈创卓新闻详情" />
- <title>新闻详情 | 安盈创卓</title>
- <link href="style/css/page.css" rel="stylesheet" type="text/css" />
- <link rel="icon" type="image/x-icon" href="style/images/icon.png" />
- <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">
- <style>
- .news-detail {
- max-width: 900px;
- margin: 0 auto;
- }
-
- .news-detail-header {
- margin-bottom: 2rem;
- }
-
- .news-detail-title {
- font-size: 2rem;
- font-weight: 700;
- color: var(--text-primary);
- line-height: 1.4;
- margin-bottom: 1rem;
- }
-
- .news-detail-meta {
- display: flex;
- gap: 2rem;
- color: var(--text-tertiary);
- font-size: 0.9rem;
- }
-
- .news-detail-image {
- width: 100%;
- max-height: 500px;
- overflow: hidden;
- border-radius: 16px;
- margin-bottom: 2rem;
- background: var(--bg-tertiary);
- }
-
- .news-detail-image img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
-
- .news-detail-content {
- background: var(--bg-card);
- border: 1px solid var(--border);
- border-radius: 16px;
- padding: 2.5rem;
- line-height: 1.8;
- color: var(--text-secondary);
- }
-
- .news-detail-content p {
- margin-bottom: 1rem;
- }
-
- .news-detail-content img {
- max-width: 100%;
- height: auto;
- border-radius: 8px;
- margin: 1.5rem 0;
- }
-
- .back-btn {
- display: inline-flex;
- align-items: center;
- gap: 0.5rem;
- margin-bottom: 2rem;
- color: var(--text-secondary);
- font-size: 0.9rem;
- transition: color 0.3s ease;
- }
-
- .back-btn:hover {
- color: var(--accent);
- }
-
- .news-loading, .news-error {
- text-align: center;
- padding: 4rem 2rem;
- color: var(--text-tertiary);
- }
-
- .news-error {
- color: #dc2626;
- }
- </style>
- </head>
- <body>
- <!-- Navigation -->
- <nav class="nav" id="nav">
- <div class="nav-container">
- <a href="index.html" class="logo">
- <div class="logo-icon">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
- <defs>
- <linearGradient id="ayGrad" x1="0%" y1="0%" x2="100%" y2="100%">
- <stop offset="0%" style="stop-color:#0066cc"/>
- <stop offset="100%" style="stop-color:#0088ff"/>
- </linearGradient>
- </defs>
- <rect x="2" y="2" width="46" height="46" rx="8" fill="url(#ayGrad)"/>
- <path d="M12 38 L20 16 L25 28 L30 16 L38 38 L31 38 L27 25 L23 25 L19 38 Z" fill="white"/>
- <path d="M23 22 L27 22 L25 12 Z" fill="url(#ayGrad)"/>
- </svg>
- </div>
- <span class="logo-text">安盈创卓</span>
- </a>
- <ul class="nav-links" id="navLinks">
- <li><a href="index.html" class="nav-item" data-page="index">首页</a></li>
- <li><a href="product_totem.html" class="nav-item" data-page="product">企业产品</a></li>
- <li><a href="serve.html" class="nav-item" data-page="serve">企业服务</a></li>
- <li><a href="pricing.html" class="nav-item" data-page="pricing">服务资费</a></li>
- <li><a href="news.html" class="nav-item" data-page="news">新闻中心</a></li>
- <li><a href="about.html" class="nav-item" data-page="about">关于我们</a></li>
- <li class="nav-dropdown">
- <a href="#" class="nav-item" data-page="contact">联系我们</a>
- <div class="nav-dropdown-menu">
- <a href="contact.html">线上咨询</a>
- <a href="jobs.html">企业招聘</a>
- </div>
- </li>
- </ul>
- <button class="mobile-menu-btn" id="mobileMenuBtn" onclick="toggleMobileMenu()">
- <span></span>
- <span></span>
- <span></span>
- </button>
- </div>
- </nav>
- <script>
- (function() {
- var path = window.location.pathname.split('/').pop() || 'index.html';
- var pageMap = {
- 'index.html': 'index', '': 'index',
- 'product_totem.html': 'product', 'product_portal.html': 'product', 'product_oa.html': 'product',
- 'product_super.html': 'product', 'product_info.html': 'product', 'product_leader.html': 'product',
- 'product_bigdata.html': 'product', 'product_4a.html': 'product',
- 'serve.html': 'serve',
- 'pricing.html': 'pricing',
- 'news.html': 'news', 'news_show.html': 'news',
- 'about.html': 'about', 'about_certificate.html': 'about', 'about_member.html': 'about',
- 'contact.html': 'contact', 'jobs.html': 'contact'
- };
- var currentPage = pageMap[path];
- if (currentPage) {
- document.querySelectorAll('.nav-item').forEach(function(link) {
- if (link.getAttribute('data-page') === currentPage) link.classList.add('active');
- });
- }
- })();
- </script>
- <!-- Banner -->
- <div class="page-banner">
- <div class="page-banner-content">
- <h1>新闻详情</h1>
- <p>了解最新资讯</p>
- </div>
- </div>
- <!-- Content -->
- <div class="page-content">
- <div class="container">
- <div class="news-detail" id="newsDetail">
- <div class="news-loading">加载中...</div>
- </div>
- </div>
- </div>
- <!-- Footer -->
- <footer class="footer">
- <div class="container">
- <div class="footer-grid">
- <div class="footer-brand">
- <a href="index.html" class="logo">
- <div class="logo-icon">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
- <defs>
- <linearGradient id="iconGrad" x1="0%" y1="0%" x2="100%" y2="100%">
- <stop offset="0%" style="stop-color:#0066cc"/>
- <stop offset="100%" style="stop-color:#0088ff"/>
- </linearGradient>
- </defs>
- <circle cx="25" cy="25" r="24" fill="url(#iconGrad)"/>
- <path d="M25 10 L37 36 L25 29 L13 36 Z" fill="white"/>
- <circle cx="25" cy="23" r="3" fill="url(#iconGrad)"/>
- </svg>
- </div>
- <span class="logo-text" style="color: white;">安盈创卓</span>
- </a>
- <p>以创新为核心竞争力,低调务实,价值至上。致力于为客户提供超越预期的信息化服务。</p>
- </div>
-
- <div class="footer-column">
- <h4 class="footer-title">产品服务</h4>
- <ul class="footer-links">
- <li><a href="product_totem.html">图腾平台</a></li>
- <li><a href="product_oa.html">协同办公</a></li>
- <li><a href="product_bigdata.html">大数据产品</a></li>
- <li><a href="product_portal.html">企业门户</a></li>
- <li><a href="pricing.html">服务资费</a></li>
- </ul>
- </div>
-
- <div class="footer-column">
- <h4 class="footer-title">关于公司</h4>
- <ul class="footer-links">
- <li><a href="about.html">公司简介</a></li>
- <li><a href="about_certificate.html">资质荣誉</a></li>
- <li><a href="about_member.html">团队成员</a></li>
- <li><a href="news.html">新闻动态</a></li>
- </ul>
- </div>
-
- <div class="footer-column footer-contact">
- <h4 class="footer-title">联系我们</h4>
- <p>电话:010-58733188</p>
- <p>地址:北京市海淀区盈都大厦C座4单元21E</p>
- <p>邮箱:contact@iwintrue.com</p>
- </div>
- </div>
-
- <div class="footer-bottom">
- <p>Copyright © 2015-2025 安盈创卓 京ICP备14061870号-1</p>
- <div>
- <a href="https://beian.miit.gov.cn" target="_blank">备案查询</a>
- </div>
- </div>
- </div>
- </footer>
- <script>
- // Get URL parameter
- function getQueryParam(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
- var r = window.location.search.substr(1).match(reg);
- if (r != null) return unescape(r[2]);
- return null;
- }
- // Mobile menu toggle
- function toggleMobileMenu() {
- const navLinks = document.getElementById('navLinks');
- const menuBtn = document.getElementById('mobileMenuBtn');
- navLinks.classList.toggle('active');
- menuBtn.classList.toggle('active');
- }
- document.querySelectorAll('.nav-dropdown > a').forEach(function(dropdown) {
- dropdown.addEventListener('click', function(e) {
- if (window.innerWidth <= 768) {
- e.preventDefault();
- this.parentElement.classList.toggle('active');
- }
- });
- });
- document.addEventListener('click', function(e) {
- const navLinks = document.getElementById('navLinks');
- const menuBtn = document.getElementById('mobileMenuBtn');
- if (window.innerWidth <= 768 && navLinks.classList.contains('active')) {
- if (!navLinks.contains(e.target) && !menuBtn.contains(e.target)) {
- navLinks.classList.remove('active');
- menuBtn.classList.remove('active');
- }
- }
- });
- // Navigation scroll effect
- window.addEventListener('scroll', function() {
- const nav = document.getElementById('nav');
- if (window.scrollY > 50) {
- nav.classList.add('scrolled');
- } else {
- nav.classList.remove('scrolled');
- }
- });
- // Load news detail
- function loadNewsDetail() {
- const newsDetail = document.getElementById('newsDetail');
- const articleId = getQueryParam('id');
-
- if (!articleId) {
- newsDetail.innerHTML = '<div class="news-error">参数错误</div>';
- return;
- }
- var xhr = new XMLHttpRequest();
- xhr.open('GET', '/cont/cms/getArticle/' + articleId, true);
- xhr.onreadystatechange = function() {
- if (xhr.readyState === 4) {
- if (xhr.status === 200) {
- try {
- var data = JSON.parse(xhr.responseText);
- if (data && data.title) {
- // Get image URL
- var imgUrl = '';
- if (data.mainImg) {
- if (data.mainImg.indexOf('/') > -1) {
- imgUrl = data.mainImg;
- } else {
- imgUrl = '/cont/files/showImage/' + data.mainImg;
- }
- }
- var html = '<a href="news.html" class="back-btn">';
- 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>';
- html += '返回列表';
- html += '</a>';
-
- html += '<div class="news-detail-header">';
- html += '<h1 class="news-detail-title">' + data.title + '</h1>';
- html += '<div class="news-detail-meta">';
- html += '<span>' + (data.publishTime || '') + '</span>';
- html += '</div></div>';
-
- if (imgUrl) {
- html += '<div class="news-detail-image">';
- html += '<img src="' + imgUrl + '" alt="' + data.title + '">';
- html += '</div>';
- }
-
- html += '<div class="news-detail-content">';
- html += data.content;
- html += '</div>';
-
- newsDetail.innerHTML = html;
-
- // Update page title
- document.title = data.title + ' | 安盈创卓';
- } else {
- newsDetail.innerHTML = '<div class="news-error">未找到该新闻</div>';
- }
- } catch(e) {
- console.error('Parse error:', e);
- newsDetail.innerHTML = '<div class="news-error">数据解析失败</div>';
- }
- } else {
- newsDetail.innerHTML = '<div class="news-error">请求失败: ' + xhr.status + '</div>';
- }
- }
- };
- xhr.send();
- }
- // Load news detail on page load
- loadNewsDetail();
- </script>
- </body>
- </html>
|