1151 lines
46 KiB
HTML
Raw Normal View History

2025-04-17 10:14:18 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<title>龙翔项目管理有限公司 </title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 禁止百度转码 -->
<meta http-equiv="Cache-Control" content="no-siteapp">
<!-- uc强制竖屏 -->
<meta name="screen-orientation" content="portrait">
<!-- QQ强制竖屏 -->
<meta name="x5-orientation" content="portrait">
<title>{dreamer-cms:global name="title"/}</title>
<meta name="Keywords" content="{dreamer-cms:global name=" keywords"/}" />
<meta name="Description" content="{dreamer-cms:global name=" describe"/}" />
<link rel="stylesheet" href="{dreamer-cms:template /}css/iconfont/iconfont.css">
<link rel="stylesheet" href="{dreamer-cms:template /}css/reset.css">
<link rel="stylesheet" href="{dreamer-cms:template /}css/animate.css">
<link rel="stylesheet" href="{dreamer-cms:template /}css/style.css">
<link rel="stylesheet" href="{dreamer-cms:template /}scripts/theme/default/layer.css">
<script src="{dreamer-cms:template /}scripts/jquery-1.11.3.min.js"></script>
<script src="{dreamer-cms:template /}scripts/jquery.SuperSlide.2.1.1.js"></script>
<script src="{dreamer-cms:template /}scripts/js.js"></script>
<script src="{dreamer-cms:template /}scripts/layer.js"></script>
<style>
.hero-section {
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1605152276897-4f618f831968?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
background-size: cover;
background-position: center;
}
.news-container {
display: flex;
height: 500px;
}
.news-image {
flex: 1;
height: 100%;
overflow: hidden;
position: relative;
}
.news-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.news-list {
flex: 1;
height: 100%;
overflow-y: auto;
background: white;
position: relative;
}
.news-item {
padding: 16px;
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
}
.news-item:hover {
background: #f8fafc;
}
.divider {
width: 1px;
background-color: #e5e7eb;
}
.page-item {
display: inline-block;
margin: 0 2px;
}
.page-link {
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
}
.page-link:hover {
background-color: #f1f5f9;
}
.page-link.active {
background-color: #3b82f6;
color: white;
}
.pagination-container {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: white;
padding: 12px;
border-top: 1px solid #e5e7eb;
display: flex;
justify-content: center;
}
.view-details {
display: inline-flex;
align-items: center;
color: #3b82f6;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
white-space: nowrap;
}
.view-details:hover {
color: #2563eb;
text-decoration: underline;
}
.view-details i {
margin-left: 4px;
font-size: 0.75rem;
}
.service-card {
transition: all 0.3s ease;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.timeline-item:not(:last-child)::after {
content: '';
position: absolute;
left: 50%;
bottom: -20px;
transform: translateX(-50%);
width: 2px;
height: 20px;
background-color: #e5e7eb;
}
.carousel {
position: relative;
height: 500px;
overflow: hidden;
}
.carousel-inner {
display: flex;
transition: transform 0.5s ease;
height: 100%;
}
.carousel-item {
min-width: 100%;
height: 100%;
position: relative;
}
.carousel-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.carousel-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 30px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
color: white;
}
.carousel-control {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
cursor: pointer;
z-index: 10;
}
.carousel-control.prev {
left: 20px;
}
.carousel-control.next {
right: 20px;
}
.carousel-indicators {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
z-index: 10;
}
.carousel-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
}
.carousel-indicator.active {
background: white;
}
</style>
</head>
<body class="font-sans text-gray-800">
<!-- 导航栏 -->
{dreamer-cms:include file='inc/header1.html'/}
<!-- 轮播图 -->
<section class="carousel">
<!-- 加载状态 -->
<div id="carousel-loading" class="loading">
<div class="loading-spinner"></div>
</div>
<!-- 轮播内容 -->
<div id="carousel-inner" class="carousel-inner hidden">
<!-- 轮播项将通过JavaScript动态添加 -->
</div>
<!-- 控制按钮 -->
<div class="carousel-control prev" id="carousel-prev">
<i class="fas fa-chevron-left"></i>
</div>
<div class="carousel-control next" id="carousel-next">
<i class="fas fa-chevron-right"></i>
</div>
<!-- 指示器 -->
<div class="carousel-indicators" id="carousel-indicators">
<!-- 指示器将通过JavaScript动态添加 -->
</div>
</section>
<!-- 新闻动态 - 放在轮播图下方 -->
<section class="py-16 bg-gray-50">
<div class="container mx-auto px-6">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold mb-4">新闻动态</h2>
<div class="w-20 h-1 bg-blue-600 mx-auto mb-6"></div>
<p class="text-gray-600 max-w-3xl mx-auto">了解我们的最新动态和行业资讯</p>
</div>
<div class="news-container bg-white rounded-lg shadow-md overflow-hidden">
<!-- 左侧新闻图片 -->
{dreamer-cms:list typeid="6j0r9qzq" pagenum="1" pagesize="1" cascade="true" sortBy="create_time" sortWay="desc"}
<div class="news-image">
<img src="[field:litpic/]" alt="新闻图片">
<div class="absolute bottom-0 left-0 right-0 p-6 bg-gradient-to-t from-black to-transparent text-white">
<div class="text-sm text-gray-300 mb-2">
<span>[field:createtime function="format('yyyy-MM-dd HH:mm:ss')" /]</span>
<!-- <span class="mx-2">|</span>
<span>公司新闻</span> -->
</div>
<h3 class="text-xl font-bold mb-3">[field:title/]</h3>
<a href="[field:arcurl/]" class="view-details">
阅读更多 <i class="fas fa-arrow-right"></i>
</a>
</div>
</div>
{/dreamer-cms:list}
<!-- 分割线 -->
<div class="divider"></div>
<!-- 右侧新闻列表 -->
<div class="news-list">
<div id="news-list-content">
<!-- News items will be dynamically inserted here -->
</div>
<div class="pagination-container">
<nav>
<ul class="pagination flex" id="pagination">
<!-- Pagination will be dynamically inserted here -->
</ul>
</nav>
</div>
</div>
</div>
</div>
</section>
<!-- 关于我们 -->
<section class="py-20">
<div class="container mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">关于我们</h2>
<div class="w-20 h-1 bg-blue-600 mx-auto mb-6"></div>
<p class="text-gray-600 max-w-3xl mx-auto">龙翔项目管理有限公司
成立于2005年是一家专业从事工程咨询、项目管理、造价咨询等服务的综合性咨询企业</p>
</div>
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-10 md:mb-0 md:pr-10">
<img src="https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="关于我们" class="rounded-lg shadow-xl">
</div>
<div class="md:w-1/2">
<h3 class="text-2xl font-bold mb-6">我们的使命与愿景</h3>
<p class="text-gray-600 mb-6">我们致力于通过专业咨询服务推动工程建设行业高质量发展,帮助客户实现项目价值最大化。我们的愿景是成为国内领先的工程咨询企业。</p>
<div class="mb-8">
<div class="flex items-start mb-4">
<div class="bg-blue-100 p-2 rounded-full mr-4">
<i class="fas fa-check text-blue-600"></i>
</div>
<div>
<h4 class="font-bold mb-1">20年行业经验</h4>
<p class="text-gray-600">深耕工程咨询行业20年积累了丰富的项目经验</p>
</div>
</div>
<div class="flex items-start mb-4">
<div class="bg-blue-100 p-2 rounded-full mr-4">
<i class="fas fa-check text-blue-600"></i>
</div>
<div>
<h4 class="font-bold mb-1">300+客户信赖</h4>
<p class="text-gray-600">服务超过300家企业客户获得一致好评</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-100 p-2 rounded-full mr-4">
<i class="fas fa-check text-blue-600"></i>
</div>
<div>
<h4 class="font-bold mb-1">80+专业团队</h4>
<p class="text-gray-600">拥有80多名注册咨询工程师、造价工程师等专业人才</p>
</div>
</div>
</div>
<!-- <button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition duration-300">了解更多</button> -->
</div>
</div>
</div>
</section>
<!-- 服务项目 -->
<section class="py-20 bg-gray-50">
<div class="container mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">我们的服务</h2>
<div class="w-20 h-1 bg-blue-600 mx-auto mb-6"></div>
<p class="text-gray-600 max-w-3xl mx-auto">我们提供全方位的工程咨询服务,助力项目顺利实施</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="service-card bg-white p-8 rounded-lg shadow-md">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
<i class="fas fa-project-diagram text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-4">全过程工程咨询</h3>
<p class="text-gray-600 mb-6">提供从项目前期策划到竣工验收的全过程咨询服务</p>
<!-- <a href="#" class="text-blue-600 font-medium flex items-center">
了解更多 <i class="fas fa-arrow-right ml-2 text-sm"></i>
</a> -->
</div>
<div class="service-card bg-white p-8 rounded-lg shadow-md">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
<i class="fas fa-tasks text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-4">项目管理服务</h3>
<p class="text-gray-600 mb-6">专业的项目管理团队,确保项目按计划顺利实施</p>
<!-- <a href="#" class="text-blue-600 font-medium flex items-center">
了解更多 <i class="fas fa-arrow-right ml-2 text-sm"></i>
</a> -->
</div>
<div class="service-card bg-white p-8 rounded-lg shadow-md">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
<i class="fas fa-calculator text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-4">工程造价咨询</h3>
<p class="text-gray-600 mb-6">专业的造价控制服务,优化项目投资效益</p>
<!-- <a href="#" class="text-blue-600 font-medium flex items-center">
了解更多 <i class="fas fa-arrow-right ml-2 text-sm"></i>
</a> -->
</div>
<div class="service-card bg-white p-8 rounded-lg shadow-md">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
<i class="fas fa-file-contract text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-4">工程监理服务</h3>
<p class="text-gray-600 mb-6">专业的工程监理团队,确保工程质量达标</p>
<!-- <a href="#" class="text-blue-600 font-medium flex items-center">
了解更多 <i class="fas fa-arrow-right ml-2 text-sm"></i>
</a> -->
</div>
<div class="service-card bg-white p-8 rounded-lg shadow-md">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
<i class="fas fa-search text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-4">工程评估审计</h3>
<p class="text-gray-600 mb-6">专业的工程评估与审计服务,确保项目合规性</p>
<!-- <a href="#" class="text-blue-600 font-medium flex items-center">
了解更多 <i class="fas fa-arrow-right ml-2 text-sm"></i>
</a> -->
</div>
<div class="service-card bg-white p-8 rounded-lg shadow-md">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
<i class="fas fa-building text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-4">BIM技术咨询</h3>
<p class="text-gray-600 mb-6">专业的BIM技术应用服务提升项目管理效率</p>
<!-- <a href="#" class="text-blue-600 font-medium flex items-center">
了解更多 <i class="fas fa-arrow-right ml-2 text-sm"></i>
</a> -->
</div>
</div>
</div>
</section>
<!-- 发展历程 -->
<section class="py-20">
<div class="container mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">发展历程</h2>
<div class="w-20 h-1 bg-blue-600 mx-auto mb-6"></div>
<p class="text-gray-600 max-w-3xl mx-auto">见证我们的成长与蜕变</p>
</div>
<div class="relative">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="timeline-item relative">
<div class="bg-white p-6 rounded-lg shadow-md">
<div
class="bg-blue-600 w-12 h-12 rounded-full flex items-center justify-center text-white font-bold text-xl mb-4 mx-auto">
2005</div>
<h3 class="text-xl font-bold mb-3 text-center">公司成立</h3>
<p class="text-gray-600 text-center">龙翔工程咨询有限公司在青岛正式成立</p>
</div>
</div>
<div class="timeline-item relative">
<div class="bg-white p-6 rounded-lg shadow-md">
<div
class="bg-blue-600 w-12 h-12 rounded-full flex items-center justify-center text-white font-bold text-xl mb-4 mx-auto">
2008</div>
<h3 class="text-xl font-bold mb-3 text-center">资质升级</h3>
<p class="text-gray-600 text-center">获得甲级工程咨询资质,业务范围扩大</p>
</div>
</div>
<!-- <div class="timeline-item relative">
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="bg-blue-600 w-12 h-12 rounded-full flex items-center justify-center text-white font-bold text-xl mb-4 mx-auto">2012</div>
<h3 class="text-xl font-bold mb-3 text-center">全国布局</h3>
<p class="text-gray-600 text-center">在上海、广州设立分公司,开启全国布局</p>
</div>
</div> -->
<div class="timeline-item relative">
<div class="bg-white p-6 rounded-lg shadow-md">
<div
class="bg-blue-600 w-12 h-12 rounded-full flex items-center justify-center text-white font-bold text-xl mb-4 mx-auto">
2015</div>
<h3 class="text-xl font-bold mb-3 text-center">业务拓展</h3>
<p class="text-gray-600 text-center">新增工程造价和工程监理业务</p>
</div>
</div>
<div class="timeline-item relative">
<div class="bg-white p-6 rounded-lg shadow-md">
<div
class="bg-blue-600 w-12 h-12 rounded-full flex items-center justify-center text-white font-bold text-xl mb-4 mx-auto">
2018</div>
<h3 class="text-xl font-bold mb-3 text-center">技术升级</h3>
<p class="text-gray-600 text-center">引入BIM技术提升咨询服务能力</p>
</div>
</div>
<!-- <div class="timeline-item relative">
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="bg-blue-600 w-12 h-12 rounded-full flex items-center justify-center text-white font-bold text-xl mb-4 mx-auto">2023</div>
<h3 class="text-xl font-bold mb-3 text-center">数字化转型</h3>
<p class="text-gray-600 text-center">启动数字化转型,打造智慧工程咨询平台</p>
</div>
</div> -->
</div>
</div>
</div>
</section>
<!-- 客户评价 -->
<!-- <section class="py-20 bg-gray-50">
<div class="container mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">客户评价</h2>
<div class="w-20 h-1 bg-blue-600 mx-auto mb-6"></div>
<p class="text-gray-600 max-w-3xl mx-auto">听听我们的客户怎么说</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-8 rounded-lg shadow-md">
<div class="flex items-center mb-6">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="客户头像" class="w-16 h-16 rounded-full mr-4">
<div>
<h4 class="font-bold">张先生</h4>
<p class="text-gray-500 text-sm">某建筑公司项目经理</p>
</div>
</div>
<p class="text-gray-600 italic">"宏远的工程咨询服务非常专业,帮助我们解决了项目前期策划中的诸多难题,确保了项目顺利实施。"</p>
<div class="flex mt-4 text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
<div class="bg-white p-8 rounded-lg shadow-md">
<div class="flex items-center mb-6">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="客户头像" class="w-16 h-16 rounded-full mr-4">
<div>
<h4 class="font-bold">李女士</h4>
<p class="text-gray-500 text-sm">某房地产公司工程总监</p>
</div>
</div>
<p class="text-gray-600 italic">"他们的造价咨询服务非常精准帮助我们有效控制了项目成本节省了约15%的投资。"</p>
<div class="flex mt-4 text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
<div class="bg-white p-8 rounded-lg shadow-md">
<div class="flex items-center mb-6">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="客户头像" class="w-16 h-16 rounded-full mr-4">
<div>
<h4 class="font-bold">王先生</h4>
<p class="text-gray-500 text-sm">某市政工程公司总经理</p>
</div>
</div>
<p class="text-gray-600 italic">"项目管理服务非常到位,团队专业素质高,确保了我们的重点项目按时高质量完成。"</p>
<div class="flex mt-4 text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
</div>
</div>
</div>
</section> -->
<!-- 联系我们 -->
<!-- <section class="py-20">
<div class="container mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">联系我们</h2>
<div class="w-20 h-1 bg-blue-600 mx-auto mb-6"></div>
<p class="text-gray-600 max-w-3xl mx-auto">随时为您提供专业咨询和服务</p>
</div>
<div class="flex flex-col md:flex-row">
<div class="md:w-1/2 mb-10 md:mb-0 md:pr-10">
<div class="bg-white p-8 rounded-lg shadow-md">
<h3 class="text-2xl font-bold mb-6">联系方式</h3>
<div class="space-y-6">
<div class="flex items-start">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i class="fas fa-map-marker-alt text-blue-600"></i>
</div>
<div>
<h4 class="font-bold mb-1">地址</h4>
<p class="text-gray-600">北京市海淀区中关村南大街5号宏远大厦8层</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i class="fas fa-phone-alt text-blue-600"></i>
</div>
<div>
<h4 class="font-bold mb-1">电话</h4>
<p class="text-gray-600">010-12345678</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i class="fas fa-envelope text-blue-600"></i>
</div>
<div>
<h4 class="font-bold mb-1">邮箱</h4>
<p class="text-gray-600">info@hygc.com</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i class="fas fa-clock text-blue-600"></i>
</div>
<div>
<h4 class="font-bold mb-1">工作时间</h4>
<p class="text-gray-600">周一至周五: 8:30 - 17:30</p>
</div>
</div>
</div>
<div class="mt-8">
<h4 class="font-bold mb-4">关注我们</h4>
<div class="flex space-x-4">
<a href="#" class="bg-blue-100 w-10 h-10 rounded-full flex items-center justify-center text-blue-600 hover:bg-blue-600 hover:text-white transition duration-300">
<i class="fab fa-weixin"></i>
</a>
<a href="#" class="bg-blue-100 w-10 h-10 rounded-full flex items-center justify-center text-blue-600 hover:bg-blue-600 hover:text-white transition duration-300">
<i class="fab fa-weibo"></i>
</a>
<a href="#" class="bg-blue-100 w-10 h-10 rounded-full flex items-center justify-center text-blue-600 hover:bg-blue-600 hover:text-white transition duration-300">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="#" class="bg-blue-100 w-10 h-10 rounded-full flex items-center justify-center text-blue-600 hover:bg-blue-600 hover:text-white transition duration-300">
<i class="fab fa-github"></i>
</a>
</div>
</div>
</div>
</div>
<div class="md:w-1/2">
<div class="bg-white p-8 rounded-lg shadow-md">
<h3 class="text-2xl font-bold mb-6">发送消息</h3>
<form>
<div class="mb-6">
<label for="name" class="block text-gray-700 font-medium mb-2">姓名</label>
<input type="text" id="name" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入您的姓名">
</div>
<div class="mb-6">
<label for="email" class="block text-gray-700 font-medium mb-2">邮箱</label>
<input type="email" id="email" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入您的邮箱">
</div>
<div class="mb-6">
<label for="phone" class="block text-gray-700 font-medium mb-2">电话</label>
<input type="tel" id="phone" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入您的电话">
</div>
<div class="mb-6">
<label for="message" class="block text-gray-700 font-medium mb-2">消息</label>
<textarea id="message" rows="5" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 focus:border-transparent" placeholder="请输入您的消息"></textarea>
</div>
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-lg font-medium transition duration-300">发送消息</button>
</form>
</div>
</div>
</div>
</div>
</section> -->
{dreamer-cms:include file="inc/footer.html" /}
<!-- 页脚 -->
<!-- <footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-6">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">关于宏远</h3>
<p class="text-gray-400 mb-4">宏远工程咨询有限公司成立于2005年是一家专业从事工程咨询、项目管理、造价咨询等服务的综合性咨询企业。</p>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
</div>
</div>
<div>
<h3 class="text-xl font-bold mb-4">快速链接</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">首页</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">关于我们</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">工程咨询</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">项目管理</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">案例展示</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">联系我们</a></li>
</ul>
</div>
<div>
<h3 class="text-xl font-bold mb-4">服务项目</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">全过程工程咨询</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">项目管理服务</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">工程造价咨询</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">工程监理服务</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">工程评估审计</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">BIM技术咨询</a></li>
</ul>
</div>
<div>
<h3 class="text-xl font-bold mb-4">联系我们</h3>
<ul class="space-y-2">
<li class="flex items-start">
<i class="fas fa-map-marker-alt text-gray-400 mt-1 mr-2"></i>
<span class="text-gray-400">北京市海淀区中关村南大街5号宏远大厦8层</span>
</li>
<li class="flex items-start">
<i class="fas fa-phone-alt text-gray-400 mt-1 mr-2"></i>
<span class="text-gray-400">010-12345678</span>
</li>
<li class="flex items-start">
<i class="fas fa-envelope text-gray-400 mt-1 mr-2"></i>
<span class="text-gray-400">info@hygc.com</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400">
<p>© 2023 宏远工程咨询有限公司. 保留所有权利.</p>
</div>
</div>
</footer> -->
<script>
// var user = [[{dreamer-cms:list typeid="6j0r9qzq" pagenum="1" pagesize="1" cascade="true"/}]];
// Sample news data for engineering consulting company
const newsData = [
// {
// date: "2023-05-28",
// category: "行业动态",
// title: "2023年工程咨询行业发展论坛在京举行"
// },
// {
// date: "2023-05-10",
// category: "技术前沿",
// title: "BIM技术在大型工程项目中的应用研讨会圆满结束"
// },
// {
// date: "2023-04-22",
// category: "公司新闻",
// title: "我司荣获2023年度优秀工程咨询企业称号"
// },
// {
// date: "2023-03-15",
// category: "行业动态",
// title: "2023年第一季度工程咨询行业发展报告发布"
// },
// {
// date: "2023-02-28",
// category: "技术前沿",
// title: "新型建筑材料在工程中的应用研讨会成功举办"
// },
// {
// date: "2023-01-15",
// category: "行业动态",
// title: "2023年工程咨询行业发展趋势分析"
// },
// {
// date: "2022-12-10",
// category: "公司新闻",
// title: "我司与某大型建筑集团达成战略合作协议"
// },
// {
// date: "2022-11-25",
// category: "技术前沿",
// title: "绿色建筑技术应用研讨会成功举办"
// },
// {
// date: "2022-10-18",
// category: "行业动态",
// title: "2022年第三季度工程咨询行业发展报告发布"
// },
// {
// date: "2022-09-05",
// category: "公司新闻",
// title: "我司成功举办2022年度技术交流会"
// }
];
// Pagination variables
const itemsPerPage = 5;
let currentPage = 1;
// 从接口获取新闻数据
async function fetchNewsData() {
try {
// 显示加载状态
document.getElementById('news-list-content').innerHTML = `
<div class="loading">
<div class="loading-spinner"></div>
</div>
`;
// 实际项目中替换为你的真实API地址
const response = await fetch('/getIndexNews', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
// 如果需要认证,可以添加认证头
// 'Authorization': 'Bearer your_token_here'
}
});
if (!response.ok) {
throw new Error('网络响应不正常');
}
const data = await response.json();
// 假设API返回的数据格式为
// {
// success: true,
// data: [
// { date: "2023-06-15", category: "公司新闻", title: "新闻标题1" },
// { date: "2023-06-10", category: "行业动态", title: "新闻标题2" },
// // 更多新闻...
// ]
// }
if (data.code==200) {
return data.data;
} else {
throw new Error(data.message || '获取新闻数据失败');
}
} catch (error) {
console.error('获取新闻数据失败:', error);
// 显示错误信息
document.getElementById('news-list-content').innerHTML = `
<div class="p-8 text-center text-red-500">
<i class="fas fa-exclamation-triangle text-2xl mb-2"></i>
<p>加载新闻失败: ${error.message}</p>
<button onclick="fetchNewsDataAndDisplay()" class="mt-4 px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700">
重试
</button>
</div>
`;
// 返回空数组或默认数据
return [];
}
}
// 获取新闻数据并显示
async function fetchNewsDataAndDisplay() {
const newsData = await fetchNewsData();
// 如果获取数据成功,初始化分页和显示
if (newsData.length > 0) {
// 初始化分页和显示
displayNewsItems(newsData);
setupPagination(newsData);
} else {
// 如果没有数据,显示提示信息
document.getElementById('news-list-content').innerHTML = `
<div class="p-8 text-center text-gray-500">
<i class="fas fa-info-circle text-2xl mb-2"></i>
<p>暂无新闻数据</p>
</div>
`;
}
}
let currentNewsData = [];
// const newsData =await fetchNewsData();
// Function to display news items for current page
function displayNewsItems(newsData) {
const newsListContent = document.getElementById('news-list-content');
newsListContent.innerHTML = '';
currentNewsData = newsData;
const startIndex = (currentPage - 1) * itemsPerPage;
const endIndex = Math.min(startIndex + itemsPerPage, newsData.length);
const paginatedData = newsData.slice(startIndex, endIndex);
// <span class="mx-2">|</span>
// <span>${item.title}</span>
paginatedData.forEach(item => {
const newsItem = document.createElement('div');
newsItem.className = 'news-item';
newsItem.innerHTML = `
<div class="flex justify-between items-center">
<div class="flex-1 min-w-0">
<div class="text-sm text-gray-500 mb-1">
<span>${item.createTime}</span>
</div>
<h3 class="text-lg font-medium truncate">${item.title}</h3>
</div>
<div class="ml-4 flex-shrink-0">
<a href="article/${item.id}" class="view-details">
查看详情 <i class="fas fa-arrow-right"></i>
</a>
</div>
</div>
`;
newsListContent.appendChild(newsItem);
});
}
// Function to setup pagination
function setupPagination(newsData) {
const pagination = document.getElementById('pagination');
pagination.innerHTML = '';
const pageCount = Math.ceil(newsData.length / itemsPerPage);
// Previous button
const prevLi = document.createElement('li');
prevLi.className = 'page-item';
prevLi.innerHTML = `
<a class="page-link ${currentPage === 1 ? 'disabled' : ''}" onclick="changePage(${currentPage - 1})">
<i class="fas fa-chevron-left"></i>
</a>
`;
pagination.appendChild(prevLi);
// Page numbers
for (let i = 1; i <= pageCount; i++) {
const li = document.createElement('li');
li.className = 'page-item';
li.innerHTML = `
<a class="page-link ${i === currentPage ? 'active' : ''}" onclick="changePage(${i})">${i}</a>
`;
pagination.appendChild(li);
}
// Next button
const nextLi = document.createElement('li');
nextLi.className = 'page-item';
nextLi.innerHTML = `
<a class="page-link ${currentPage === pageCount ? 'disabled' : ''}" onclick="changePage(${currentPage + 1})">
<i class="fas fa-chevron-right"></i>
</a>
`;
pagination.appendChild(nextLi);
}
// Function to change page
function changePage(page) {
if (page < 1 || page > Math.ceil(currentNewsData.length / itemsPerPage)) return;
currentPage = page;
displayNewsItems(currentNewsData);
setupPagination(currentNewsData);
// Scroll to top of news list
document.getElementById('news-list-content').scrollTop = 0;
}
// 轮播图功能
// 模拟从后台获取轮播图数据
function fetchCarouselData() {
// 这里模拟一个API请求实际项目中应该是fetch或axios请求真实API
return new Promise((resolve) => {
setTimeout(() => {
resolve({
success: true,
data: [
{
id: 1,
imageUrl: "/resources/uploads/20250409/1909858615077371904.png",
title: "专业工程咨询服务",
description: "提供全过程工程咨询解决方案,助力项目成功",
link: "#"
},
{
id: 2,
imageUrl: "/resources/uploads/20250411/1910576872591773696.png",
title: "专业项目管理服务",
description: "科学管理,确保项目按时按质完成",
link: "#"
},
{
id: 3,
imageUrl: "https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80",
title: "工程造价咨询服务",
description: "精准造价控制,优化项目投资",
link: "#"
},
{
id: 4,
imageUrl: "https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80",
title: "工程监理服务",
description: "专业监理团队,确保工程质量",
link: "#"
}
]
});
}, 200); // 模拟网络延迟
});
}
// 初始化轮播图
async function initCarousel() {
try {
// 显示加载状态
document.getElementById('carousel-loading').classList.remove('hidden');
// 从后台获取数据
const response = await fetchCarouselData();
if (response.success) {
const carouselData = response.data;
// 渲染轮播图
renderCarousel(carouselData);
// 隐藏加载状态,显示轮播图
document.getElementById('carousel-loading').classList.add('hidden');
document.getElementById('carousel-inner').classList.remove('hidden');
// 初始化轮播图功能
initCarouselFunctionality();
}
} catch (error) {
console.error('获取轮播图数据失败:', error);
// 可以在这里添加错误处理,比如显示错误信息或默认内容
document.getElementById('carousel-loading').innerHTML =
'<p class="text-red-500">加载轮播图失败,请刷新页面重试</p>';
}
}
// 渲染轮播图内容
function renderCarousel(data) {
const carouselInner = document.getElementById('carousel-inner');
const indicatorsContainer = document.getElementById('carousel-indicators');
// 清空现有内容
carouselInner.innerHTML = '';
indicatorsContainer.innerHTML = '';
// 添加轮播项
data.forEach((item, index) => {
const isActive = index === 0 ? 'active' : '';
// 创建轮播项
const carouselItem = document.createElement('div');
carouselItem.className = `carousel-item ${isActive}`;
carouselItem.innerHTML = `
<img src="${item.imageUrl}" alt="${item.title}">
<div class="carousel-caption">
<h2 class="text-3xl font-bold mb-2">${item.title}</h2>
<p class="text-lg">${item.description}</p>
</div>
`;
// 这段原本在div里 <a href="${item.link}" class="inline-block mt-4 px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition duration-300">了解更多</a> -->
carouselInner.appendChild(carouselItem);
// 创建指示器
const indicator = document.createElement('div');
indicator.className = `carousel-indicator ${isActive}`;
indicator.dataset.index = index;
indicatorsContainer.appendChild(indicator);
});
}
// 初始化轮播图功能
function initCarouselFunctionality() {
const carousel = document.querySelector('.carousel-inner');
const items = document.querySelectorAll('.carousel-item');
const indicators = document.querySelectorAll('.carousel-indicator');
const prevBtn = document.getElementById('carousel-prev');
const nextBtn = document.getElementById('carousel-next');
let currentIndex = 0;
const itemCount = items.length;
let slideInterval;
function updateCarousel() {
carousel.style.transform = `translateX(-${currentIndex * 100}%)`;
// 更新指示器
indicators.forEach((indicator, index) => {
if (index === currentIndex) {
indicator.classList.add('active');
} else {
indicator.classList.remove('active');
}
});
}
function nextSlide() {
currentIndex = (currentIndex + 1) % itemCount;
updateCarousel();
}
function prevSlide() {
currentIndex = (currentIndex - 1 + itemCount) % itemCount;
updateCarousel();
}
// 自动轮播
function startAutoSlide() {
slideInterval = setInterval(nextSlide, 5000);
}
// 停止自动轮播
function stopAutoSlide() {
clearInterval(slideInterval);
}
// 事件监听
nextBtn.addEventListener('click', () => {
stopAutoSlide();
nextSlide();
startAutoSlide();
});
prevBtn.addEventListener('click', () => {
stopAutoSlide();
prevSlide();
startAutoSlide();
});
indicators.forEach((indicator) => {
indicator.addEventListener('click', () => {
stopAutoSlide();
currentIndex = parseInt(indicator.dataset.index);
updateCarousel();
startAutoSlide();
});
});
// 鼠标悬停时暂停自动轮播
carousel.addEventListener('mouseenter', stopAutoSlide);
carousel.addEventListener('mouseleave', startAutoSlide);
// 开始自动轮播
startAutoSlide();
}
// 初始化页面
document.addEventListener('DOMContentLoaded', function () {
// 初始化轮播图
initCarousel();
// 初始化新闻列表
// displayNewsItems();
// setupPagination();
// 初始化新闻列表 - 从API获取数据
fetchNewsDataAndDisplay();
});
</script>
</body>
{dreamer-cms:include file="inc/service.html" /}
</html>