<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<title>网站建设负载均衡与集群部署-思洋互动</title>
		<meta name="keywords" content="网站建设负载均衡与集群部署">
	    <meta name="description" content="在网站建设中，负载均衡（Load Balancing）与集群部署（Cluster Deployment）是提升系统可用性、扩展性和稳定性的核心技术。它们通过分散请求压力、避免单点故障，确保网站在高并发场景下仍能快速响应。以下是具体方案与实践案例：">
		<meta name="renderer" content="webkit" />
		<link href="/css/main.css?v=39" rel="stylesheet">
		<link href="/css/base.css?v=39" rel="stylesheet">
        <link href="/css/swiper-3.4.2.min.css" rel="stylesheet">
		<script type="text/javascript" src="/js/jquery.min.js"></script>
        <script type="text/javascript" src="/js/swiper-3.4.2.min.js"></script>
		<!--[if lt IE 9]>
            <script src="/js/html5shiv.min.js"></script>
            <script src="/js/respond.min.js"></script>
            <link href="/css/ie.css" rel="stylesheet">
        <![endif]-->
		<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?8914d517c927d8e794148d05e387fb17";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<link rel="canonical" href="https://www.ciya.cn/article/8131.html">
		</head>
	<body class="no-banner">
		<div class="container">
			<div class="header">
	<div class="header-top">
		<div class="w1700">
			<a href="https://www.ciya.cn/"><img src="/images/logo.png?v=2"></a>
		</div>
	</div>
	<div class="header_b">
		<header class="slide">
			<div id="navToggle" class="menu-handler">
				<span class="burger burger-1 trans"></span>
				<span class="burger burger-2 trans-fast"></span>
				<span class="burger burger-3 trans"></span>
			</div>
		</header>
	</div>
	<nav class="slide">
		<div class="w1700">
			<a class="index" href="/"></a>
			<ul>
								<li><a href="https://www.ciya.cn/case/12.html">项目案例</a></li>
								<li><a href="https://www.ciya.cn/website/9.html">网站建设</a></li>
								<li><a href="https://www.ciya.cn/marketing/10.html">网络营销</a></li>
								<li><a href="https://www.ciya.cn/media/11.html">新媒体</a></li>
								<li class="active"><a href="https://www.ciya.cn/news/16.html">动态</a></li>
								<li><a href="https://www.ciya.cn/about/8.html">关于</a></li>
								<li><a href="https://www.ciya.cn/contact/13.html">联系</a></li>
							</ul>
		</div>
	</nav>
</div>            <div class="content slide">
                <div class="position bgf1">
                    <div class="w1700">
                        <a href="https://www.ciya.cn/">首页 ></a>
                        <a href="https://www.ciya.cn/news/16.html">动态 ></a>
                        <a href="https://www.ciya.cn/news/35.html">网站知识</a>
                    </div>
                </div>
                <div class="case-type">
                    <div class="w1700">
                                                <a href="https://www.ciya.cn/news/32.html" >品牌合作</a>
                                                <a href="https://www.ciya.cn/news/31.html" >新闻动态</a>
                                                <a href="https://www.ciya.cn/news/38.html" >网站建设</a>
                                                <a href="https://www.ciya.cn/news/41.html" >网站制作</a>
                                                <a href="https://www.ciya.cn/news/40.html" >网站设计</a>
                                                <a href="https://www.ciya.cn/news/42.html" >运营推广</a>
                                                <a href="https://www.ciya.cn/news/35.html"  class="active">网站知识</a>
                                            </div>
                </div>
                <div class="padding-tb80">
                    <div class="w1700 clear">
                        <div class="fl xwxq-l">
                            <div class="noselettext">
                                <div class="xwxq-title mg-bt60 wow slideUp">
                                    <h1 class="mg-bt35">网站建设负载均衡与集群部署</h1>
                                    <span>时间：2023-11-21</span>
                                </div>
                                <div class="edit2 mg-bt60 wow slideUp">
                                                                        <p>在网站建设中，<strong>负载均衡（Load Balancing）与集群部署（Cluster Deployment）</strong>是提升系统可用性、扩展性和稳定性的核心技术。它们通过分散请求压力、避免单点故障，确保网站在高并发场景下仍能快速响应。以下是具体方案与实践案例：</p><h3><strong>一、负载均衡：智能分配请求的核心机制</strong></h3><h4><strong>1. 负载均衡的作用</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>分散请求压力</strong>：将用户请求均匀分配到多台服务器，避免单台服务器过载。</p></li><li><p><strong>提高可用性</strong>：当某台服务器故障时，自动将请求转发至其他正常服务器。</p></li><li><p><strong>优化资源利用</strong>：根据服务器性能动态分配任务，提升整体效率。</p></li></ul><h4><strong>2. 负载均衡的实现方式</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>硬件负载均衡器</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>使用专业设备（如F5 Big-IP、Cisco ACE），通过硬件加速处理高并发请求。</p></li><li><p><strong>适用场景</strong>：金融、电商等对稳定性要求极高的行业。</p></li><li><p><strong>案例</strong>：某银行系统采用F5负载均衡，使交易请求处理延迟稳定在50ms以内，故障切换时间&lt;1秒。</p></li></ul><li><p><strong>软件负载均衡器</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>基于开源软件（如Nginx、HAProxy、LVS）实现，成本低且灵活。</p></li><li><p><strong>Nginx</strong>：支持HTTP/HTTPS/TCP/UDP协议，通过反向代理实现负载均衡。</p></li><li><p><strong>HAProxy</strong>：高性能TCP/HTTP负载均衡器，支持健康检查、会话保持。</p></li><li><p><strong>LVS（Linux Virtual Server）</strong>：内核级负载均衡，支持DR（直接路由）、TUN（隧道）模式。</p></li><li><p><strong>案例</strong>：某电商网站使用Nginx负载均衡，将日均1000万次请求均匀分配至20台Web服务器，单台服务器负载降低80%。</p></li></ul><li><p><strong>云服务负载均衡</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>阿里云SLB、腾讯云CLB、AWS ELB等云服务，提供弹性扩展和自动管理。</p></li><li><p><strong>优势</strong>：无需维护硬件，按需付费，支持全球多区域部署。</p></li><li><p><strong>案例</strong>：某跨国企业通过AWS ELB实现全球流量分发，使美国、欧洲、亚洲用户访问延迟分别降低至120ms、180ms、250ms。</p></li></ul></ul><h4><strong>3. 负载均衡策略</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>轮询（Round Robin）</strong>：按顺序将请求分配至服务器，适合服务器性能相近的场景。</p></li><li><p><strong>加权轮询（Weighted Round Robin）</strong>：根据服务器性能分配权重，高性能服务器处理更多请求。</p></li><li><p><strong>最少连接（Least Connections）</strong>：将请求转发至当前连接数最少的服务器，避免过载。</p></li><li><p><strong>IP哈希（IP Hash）</strong>：根据用户IP分配固定服务器，实现会话保持（适用于需要登录的场景）。</p></li><li><p><strong>URL哈希（URL Hash）</strong>：根据请求URL分配服务器，确保相同URL的请求由同一台服务器处理。</p></li><li><p><strong>案例</strong>：某视频平台采用“最少连接+URL哈希”策略，使视频播放请求均匀分配，且同一视频的连续请求由同一服务器处理，减少卡顿。</p></li></ul><h3><strong>二、集群部署：横向扩展的架构设计</strong></h3><h4><strong>1. 集群部署的作用</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>横向扩展（Scale Out）</strong>：通过增加服务器数量提升处理能力，而非升级单台服务器性能。</p></li><li><p><strong>高可用性（High Availability）</strong>：多台服务器互为备份，故障时自动切换，确保服务不中断。</p></li><li><p><strong>负载均衡基础</strong>：集群是负载均衡的前提，负载均衡器需将请求分发至集群中的服务器。</p></li></ul><h4><strong>2. 集群部署的类型</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>Web服务器集群</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>多台Web服务器（如Nginx、Apache）部署相同应用，通过负载均衡器分发请求。</p></li><li><p><strong>案例</strong>：某新闻网站部署10台Web服务器，通过Nginx负载均衡，使首页加载时间从3秒降至0.8秒，日均PV提升3倍。</p></li></ul><li><p><strong>应用服务器集群</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>多台应用服务器（如Tomcat、Jetty）运行业务逻辑，通过负载均衡器处理动态请求。</p></li><li><p><strong>案例</strong>：某电商网站部署8台应用服务器，通过HAProxy负载均衡，使订单处理吞吐量从每秒500单提升至2000单。</p></li></ul><li><p><strong>数据库集群</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><strong>主从复制（Master-Slave）</strong>：主库写，从库读，提升读取性能。</p></li><li><p><strong>分片集群（Sharding）</strong>：将数据分散至多个数据库节点，提升写入性能。</p></li><li><p><strong>案例</strong>：某社交平台采用MySQL分片集群，将用户数据按ID哈希分片至10个数据库节点，使写入延迟从200ms降至50ms。</p></li></ul><li><p><strong>缓存集群</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>多台缓存服务器（如Redis、Memcached）组成集群，通过一致性哈希分配数据。</p></li><li><p><strong>案例</strong>：某游戏平台部署6台Redis节点，通过Redis Cluster实现数据分片，使玩家状态查询延迟从100ms降至10ms。</p></li></ul></ul><h4><strong>3. 集群部署的关键技术</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>会话保持（Session Persistence）</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>使用Cookie、IP哈希或分布式会话存储（如Redis）确保用户请求始终由同一服务器处理。</p></li><li><p><strong>案例</strong>：某在线教育平台通过Redis存储会话，使用户登录状态在集群中共享，避免频繁重登。</p></li></ul><li><p><strong>健康检查（Health Check）</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>负载均衡器定期检测服务器状态，自动剔除故障节点。</p></li><li><p><strong>案例</strong>：某金融平台通过Nginx的健康检查，在服务器宕机后10秒内自动切换流量，确保交易不受影响。</p></li></ul><li><p><strong>数据同步（Data Synchronization）</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p>数据库主从同步、缓存数据一致性保障，避免集群内数据不一致。</p></li><li><p><strong>案例</strong>：某电商网站通过MySQL GTID实现主从同步，确保订单数据在主库写入后1秒内同步至从库。</p></li></ul></ul><h3><strong>三、负载均衡与集群部署的协同实践</strong></h3><h4><strong>1. 典型架构示例</strong></h4><pre><br/></pre><pre><br/></pre><pre>用户请求&nbsp;→&nbsp;云负载均衡器（如AWS&nbsp;ELB）&nbsp;→&nbsp;Nginx集群（反向代理）&nbsp;→&nbsp;应用服务器集群（Tomcat）&nbsp;→&nbsp;数据库集群（MySQL&nbsp;Sharding）&nbsp;→&nbsp;缓存集群（Redis）</pre><ul class=" list-paddingleft-2"><li><p><strong>步骤解析</strong>：</p></li><ol class=" list-paddingleft-2"><li><p>云负载均衡器接收全球用户请求，按地域分发至最近区域的Nginx集群。</p></li><li><p>Nginx集群通过轮询策略将请求转发至应用服务器集群。</p></li><li><p>应用服务器从缓存集群读取数据，未命中时查询数据库集群。</p></li><li><p>数据库集群通过分片策略分散写入压力，主从复制提升读取性能。</p></li></ol></ul><h4><strong>2. 性能优化技巧</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>动态权重调整</strong>：根据服务器实时负载（CPU、内存、网络）动态调整权重。</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><strong>案例</strong>：某视频平台通过Nginx的<code class=" inline">least_conn</code>策略结合动态权重，使服务器负载均衡率从70%提升至95%。</p></li></ul><li><p><strong>连接池复用</strong>：应用服务器复用数据库连接池，减少连接建立开销。</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><strong>案例</strong>：某金融平台通过连接池技术，使数据库连接建立时间从50ms降至5ms。</p></li></ul><li><p><strong>压缩与缓存</strong>：在负载均衡器或Web服务器层启用Gzip压缩和浏览器缓存。</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><strong>案例</strong>：某电商网站通过Nginx的Gzip压缩，使页面传输量减少60%，加载速度提升1.5倍。</p></li></ul></ul><h3><strong>四、监控与故障排查</strong></h3><h4><strong>1. 监控工具</strong></h4><ul class=" list-paddingleft-2"><li><p><strong>Prometheus + Grafana</strong>：监控服务器CPU、内存、网络等指标，可视化展示负载情况。</p></li><li><p><strong>ELK Stack（Elasticsearch + Logstash + Kibana）</strong>：收集和分析日志，定位请求延迟原因。</p></li><li><p><strong>案例</strong>：某游戏平台通过Prometheus监控发现某台应用服务器CPU持续100%，经排查为代码漏洞，修复后服务器负载恢复正常。</p></li></ul><h4><strong>2. 故障排查流程</strong></h4><ol class=" list-paddingleft-2"><li><p><strong>检查负载均衡器状态</strong>：确认请求是否被正确分发，无丢包或错误。</p></li><li><p><strong>检查服务器健康状态</strong>：通过<code class=" inline">curl</code>或<code class=" inline">telnet</code>测试服务器响应，确认无宕机或超时。</p></li><li><p><strong>检查应用日志</strong>：定位请求处理过程中的错误（如数据库查询失败、缓存未命中）。</p></li><li><p><strong>检查网络延迟</strong>：使用<code class=" inline">ping</code>、<code class=" inline">traceroute</code>排查网络瓶颈。</p></li><li><p><strong>案例</strong>：某电商网站在促销期间出现502错误，经排查为Nginx与Tomcat之间的连接池耗尽，调整连接池大小后问题解决。</p></li></ol><h3><strong>五、总结</strong></h3><ul class=" list-paddingleft-2"><li><p><strong>负载均衡</strong>是“交通指挥官”，通过智能策略分配请求，避免单点过载。</p></li><li><p><strong>集群部署</strong>是“团队作战”，通过多台服务器协同提升处理能力和可用性。</p></li><li><p><strong>核心原则</strong>：</p></li><ol class=" list-paddingleft-2"><li><p><strong>无单点故障</strong>：所有组件（负载均衡器、服务器、数据库）均需冗余部署。</p></li><li><p><strong>弹性扩展</strong>：根据流量动态增减服务器，避免资源浪费。</p></li><li><p><strong>自动化管理</strong>：使用云服务或脚本实现自动部署、监控和故障切换。</p></li></ol><li><p><strong>实践效果</strong>：某大型网站通过负载均衡+集群部署，使系统吞吐量提升10倍，故障恢复时间从30分钟降至10秒，用户满意度提升40%。</p></li></ul><p>通过合理设计负载均衡与集群部署架构，可确保网站在高并发场景下稳定运行，为用户提供流畅的访问体验。</p>                                </div>
                            </div>
                                                        <div class="xwxq-bot bgf1 wow slideUp">
                                <div class="xwxq-fy clear">
                                    <a class="fl" href="/article/8132.html"><i></i>网站建设如何按需付费降低TCO</a>
                                    <a class="fr" href="/article/8104.html"><i></i>网站建设数据库如何优化</a>
                                </div>
                                <a class="fhlb" href="#"></a>
                            </div>
                        </div>
                        <div class="fr xwxq-r">
                            <div class="xwxq-tj-page bgf1 mg-bt40 wow slideUp">
                                <div class="xwxq-tj-warp bgfff">
                                    <div class="tjxw-title mg-bt30">
                                        <h3>最新案例</h3><span>LATEST CASES</span>
                                    </div>
                                    <div class="zxal">
                                        <div class="swiper-container">
                                            <div class="swiper-wrapper">
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/409.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214103120.jpg" alt="广州呼吸研究院"/></div>
                                                            <p>广州呼吸研究院</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/433.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214102846.jpg" alt="融创集团"/></div>
                                                            <p>融创集团</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/268.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214102923.jpg" alt="粤海集团"/></div>
                                                            <p>粤海集团</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/414.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211216/20211216115258.jpg" alt="恒大足球学校"/></div>
                                                            <p>恒大足球学校</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/477.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214102958.jpg" alt="侨鑫集团"/></div>
                                                            <p>侨鑫集团</p>
                                                        </a>
                                                    </div>
                                                                                                </div>
                                        </div>
                                        <div class="zxalDot text-center swiperDot"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="xwxq-tj-page bgf1 mg-bt40 wow slideUp">
                                <div class="xwxq-tj-warp bgfff">
                                    <div class="tjxw-title tjxw-title-line mg-bt20">
                                        <h3>热点新闻</h3><span>TOP NEWS</span>
                                    </div>
                                    <ul class="rdxw">
                                                                                <li><a href="https://www.ciya.cn/article/3559.html">1  java heap space(解决方法)</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/1222.html">2  如何在网站后台上传附件</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/1643.html">3  如何在网站后台上传PDF文件</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/1142.html">4  什么是流？</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/3543.html">5  java swing还有人用吗(swing为什么会被淘汰)</a></li>
                                                                            </ul>
                                </div>
                            </div>
                            <div class="xwxq-tj-page bgf1 wow slideUp">
                                <div class="xwxq-tj-warp bgfff">
                                    <div class="tjxw-title tjxw-title-line mg-bt20">
                                        <h3>最新动态</h3><span>NEWS</span>
                                    </div>
                                    <ul class="rdxw">
                                                                                <li><a href="https://www.ciya.cn/article/7318.html">1  商务网站的维护与更新：持续优化，保持竞争力</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7317.html">2  商务网站的社交媒体营销：扩大品牌影响力，吸引更多潜在客户</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7316.html">3  商务网站的广告投放：增加收益，提高知名度</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7315.html">4  商务网站的在线客户服务：提供优质客服，提升用户满意度</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7314.html">5  商务网站的支付系统集成：安全、便捷的交易方式</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7313.html">6  商务网站搜索引擎优化（SEO）：提升排名，增加流量</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7312.html">7  商务网站响应式设计：实现多设备兼容，提升用户体验</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7311.html">8  商务网站开发：选择合适的编程语言和技术栈</a></li>
                                                                            </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="footerbox">
	<div class="footer">
		<div class="w1700">
			<ul>
				<li>
					<span class="fttitle">思洋 · 广州总部</span>
					<div>
						<p>广州天河区珠江新城富力盈力大厦北塔2706</p>
						<p>020-38013166（网站咨询专线）</p>
					</div>
					<p>400-001-5281 （售后服务热线）</p>
				</li>
				<li>
					<span class="fttitle">思洋 · 深圳</span>
					<div>
						<p>深圳市坂田十二橡树庄园F1-7栋</p>
						<p>Site/ http://www.szciya.com </p>
						<p>E-mail/ itciya@vip.163.com</p>
					</div>
					<p>品牌服务专线：400-001-5281 </p>
				</li>
				<li>
					<span class="fttitle">思洋 · 湖南</span>
					<div>
						<p>长沙市天心区芙蓉中路三段398号新时空大厦5楼</p>
						<p>联系电话/ (+86 0731)88282200</p>
					</div>
					<p>品牌服务专线/ 400-966-8830</p>
				</li>
				<li class="lastli">
					<p class="mt10">旗下运营网站：</p>
					<div class="mt10">
						<img src="/images/ftlogo2.png">
						<img src="/images/gogo.png">
						<img src="/images/ftlogo3.png">
						<img src="/images/ftlogo4.png">
						<img src="/images/ftlogo11.png">
					</div>
				</li>
			</ul>
		</div>
	</div>
	<div class="ft_bottom">
		<div class="w1700">
			<p class="cop">Copyright © 2016 广州思洋文化传播有限公司，保留所有权利。 <a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备09033321号</a>
			</p>
		</div>
	</div>
</div>
<div class="le-box active">
	<div class="t show780">
		<a href="tel:13570966600">
			<img src="/images/ml9-1.png?v=1" alt="" class="sow i">
			<img src="/images/ml9-1.png?v=1" alt="" class="iove i">
		</a>
	</div>
	<div class="t">
		<img src="/images/ml1-1.png?v=1" alt="" class="sow i">
		<img src="/images/ml1-1.png?v=1" alt="" class="iove i">
		<div class="iov">
			<div class="img">
				<img src="/images/qr.jpg" alt="与项目经理交流">
			</div>
			<div class="h">扫描二维码<br>与项目经理交流</div>
		</div>
	</div>
	<div class="t">
		<img src="/images/ml2-1.png?v=1" alt="" class="sow i">
		<img src="/images/ml2-1.png?v=1" alt="" class="iove i">
		<div class="iov">
			<div class="img">
				<img src="/images/qq001.jpg" alt="">
			</div>
			<div class="h">扫描二维码<br>与项目经理交流</div>
		</div>
	</div>
	<!--<div class="t">-->
		<!--<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1607245872&amp;site=ciya.cn&amp;menu=yes" target="_blank">-->
			<!--<img src="/images/ml2-1.png?v=1" alt="" class="sow i">-->
			<!--<img src="/images/ml2-1.png?v=1" alt="" class="iove i">-->
		<!--</a>-->
	<!--</div>-->
	<div class="t hide780">
		<a href="https://affim.baidu.com/unique_510425/chat?siteId=19536215&userId=510425&siteToken=8914d517c927d8e794148d05e387fb17" target="_blank">
			<img src="/images/ml3-1.png?v=1" alt="" class="sow i">
			<img src="/images/ml3-1.png?v=1" alt="" class="iove i">
		</a>
	</div>
</div>
<script>
	$(window).scroll(function(){
//		if($(window).scrollTop()>200){
//			$(".le-box").addClass("active");
//		}else{
//			$(".le-box").removeClass("active");
//		}
	})
</script>
<div class="wap_fx">
	<a href="tel:13570966600" class="phone"></a>
	<a href="mqqwpa://im/chat?chat_type=wpa&uin=1607245872&version=1&src_type=web&web_src=ciya.cn" target="_blank" class="qq"></a>
	<a href="javascript:;" class="wx2"></a>
	<a class="kef986" style="background:rgba(0,0,0,.6) url(/images/ml3-1.png?v=1) no-repeat center;background-size: cover;border-radius: 4px;" href="https://p.qiao.baidu.com/cps/chat?siteId=18513940&userId=510425&siteToken=e5e1bde478969b43bf99b7703a694c0b" target="_blank"></a>
</div>
<div class="wap-wxcode">
	<div class="middle-box">
		<div class="middle-inner">
			<div class="wap-wxcode-con">
				<img src="/images/ff_ewm.jpg" alt=""/>
				<div class="wap-wxcode-bot"><span class="wxname">ciya68</span><button class="copy-btn" data-clipboard-text="ciya68">点击复制</button></div>
				<div class="gb1002"></div>
			</div>
		</div>
	</div>
</div>
<input id="hide" type="hidden">
<script src="/js/clipboard.min.js"></script>
<script>
	$(function(){
		$(".wx2").click(function(){
			$(".wap-wxcode").show();
		});
		$(".gb1002").click(function(){
			$(".wap-wxcode").hide();
		});
		var copyBtn=new ClipboardJS('.copy-btn');
		copyBtn.on("success",function(e){
			// 复制成功
			// alert(e.text);
			showMessage('已成功复制微信号','success',2000)
			e.clearSelection();
		});
		copyBtn.on("error",function(e){
			//复制失败；
			showMessage('复制微信号失败','error',2000)
			console.log( e.action )
		});
		function showMessage(message,type,time) {
			let str = ''
			switch (type) {
				case 'success':
					str = '<div class="success-message" style="width: 100%;height: 50px;background-color: #030026;font-size:17px;text-align: center;color:#fff;position: fixed;left: 0%;bottom: 0%;line-height: 50px;z-index: 9999">\n' +
							'    <span class="mes-text">'+message+'</span></div>'
					break;
				case 'error':
					str = '<div class="error-message" style="width: 100%;height: 50px;background-color: #030026;font-size:17px;text-align: center;color: #fff;position: fixed;left: 0%;bottom: 0%;line-height: 50px;z-index: 9999">\n' +
							'    <span class="mes-text">'+message+'</span></div>'
			}
			$('body').append(str)
			setTimeout(function () {
				$('.'+type+'-message').remove()
			},time)
		}


		var ua = navigator.userAgent.toLowerCase();
		var isWeixin = ua.indexOf('micromessenger')!= -1;
		if(isWeixin){
			$(".kef986").hide();
		}

	})
</script>
            </div>
        </div>
		<script type="text/javascript" src="/js/trunk.js?v=2"></script>
        <script>
            var zxal=null;
            var len=$(".zxal .swiper-slide").length;
            if(len>1){
                zxal = new Swiper('.zxal .swiper-container',{
                    speed:600,
                    loop:true,
                    autoplay : 5000,
                    autoplayDisableOnInteraction : false,
                    pagination : '.zxalDot',
                    paginationClickable :true,
                })
            }else{
                $(".zxalDot").hide();
            }
        </script>
	</body>
</html>

