123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport"
- content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
- <meta name="renderer" content="webkit">
- <meta name="keywords" content="{$site.keywords}" />
- <meta name="description" content="{$site.description}" />
- <title>{:__lang('Home')} - {$site.site_name}</title>
- <link rel="shortcut icon" href="{$site.logo|cdnurl}">
- <link rel="stylesheet" type="text/css" href="__CDN__/assets/addons/material/css/reset.css">
- <link rel="stylesheet" type="text/css" href="__CDN__/assets/addons/material/css/style.css">
- <link rel="stylesheet" type="text/css" href="__CDN__/assets/addons/material/css/swiper.min.css">
- <link rel="stylesheet" type="text/css" href="__CDN__/assets/addons/material/css/animate.min.css">
- <link rel="stylesheet" type="text/css" href="__CDN__/assets/addons/material/css/media.css">
- <script type="text/javascript" src="__CDN__/assets/addons/material/js/jquery.min.js"></script>
- <script type="text/javascript" src="__CDN__/assets/addons/material/js/swiper.min.js"></script>
- <script type="text/javascript" src="__CDN__/assets/addons/material/js/swiper.animate1.0.3.min.js"></script>
- <script type="text/javascript" src="__CDN__/assets/addons/material/js/wow.js"></script>
- <script type="text/javascript" src="__CDN__/assets/addons/material/js/jquery.counterup.min.js"></script>
- <script type="text/javascript" src="__CDN__/assets/addons/material/js/jquery.waypoints.min.js"></script>
- <script type="text/javascript" src="__CDN__/assets/addons/material/js/javascript.js"></script>
- <style>
- .banner {
- width: 100%;
- height: 560px;
- position: relative;
- overflow: hidden;
- }
- .banner-bg {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- filter: brightness(0.7);
- }
- .swiper-slide {
- position: relative;
- width: 100%;
- height: 100%;
- }
- .banner-content {
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- color: #fff;
- text-align: center;
- z-index: 10;
- width: 100%;
- max-width: 900px;
- padding: 0 20px;
- }
- .banner-content h2 {
- font-size: 64px;
- font-weight: bold;
- color: #FFFFFF;
- letter-spacing: 2px;
- text-align: center;
- font-style: normal;
- margin-bottom: 30px;
- }
- .banner-content p {
- font-weight: 500;
- font-size: 30px;
- color: #FFFFFF;
- line-height: 44px;
- letter-spacing: 1px;
- margin-bottom: 10px;
- }
- .banner-content span {
- font-weight: 400;
- font-size: 16px;
- color: #FFFFFF;
- opacity: 0.85;
- }
- .banner .swiper-pagination {
- position: absolute;
- left: 50%;
- bottom: 20px;
- transform: translateX(-50%);
- z-index: 20;
- width: auto;
- display: flex;
- gap: 12px;
- align-items: center;
- justify-content: center;
- pointer-events: auto;
- }
- .banner .swiper-pagination-bullet {
- width: 20px;
- height: 4px;
- background: #FFFFFF;
- border-radius: 5px;
- opacity: 0.5;
- margin: 0 4px;
- transition: opacity 0.3s, background 0.3s;
- }
- .banner .swiper-pagination-bullet-active {
- opacity: 1;
- background: #fff;
- }
- /* 公司简介样式 */
- .company-profile {
- max-width: 1200px;
- margin: 80px auto 0;
- }
- .profile-header {
- margin-bottom: 40px;
- }
- .en-title {
- font-weight: 400;
- font-size: 30px;
- color: #737980;
- line-height: 44px;
- letter-spacing: 1px;
- margin-bottom: 5px;
- }
- .cn-title {
- font-size: 32px;
- color: #333;
- font-weight: 500;
- margin-top: 0;
- }
- .profile-content {
- position: relative;
- /* 添加这一行 */
- display: flex;
- align-items: stretch;
- margin-bottom: 80px;
- }
- .profile-left {
- flex: 1;
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- }
- .profile-text {
- flex: 1;
- padding-right: 40px;
- }
- .profile-text p {
- font-size: 16px;
- line-height: 1.8;
- color: #333;
- margin-bottom: 20px;
- text-align: justify;
- }
- .profile-more-btn {
- display: inline-block;
- width: 138px;
- height: 44px;
- background: #d32f0f;
- font-weight: 500;
- font-size: 14px;
- color: #FFFFFF;
- line-height: 20px;
- /* text-align: justified; */
- text-align: center;
- /* 竖直居中 */
- /* vertical-align: middle; */
- padding: 12px 40px;
- border-radius: 4px;
- margin-top: 30px;
- font-weight: 500;
- transition: background 0.2s;
- box-sizing: border-box;
- cursor: pointer;
- }
- .profile-more-btn:hover {
- background: #b71c1c;
- }
- .profile-image {
- width: 540px;
- flex-shrink: 0;
- overflow: hidden;
- display: flex;
- align-items: stretch;
- }
- .profile-image img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- }
- /* 公司数据样式 */
- .company-data {
- width: 890px;
- height: 110px;
- background-color: #fff;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
- position: absolute;
- bottom: 40px;
- }
- .data-box {
- display: flex;
- justify-content: space-between;
- align-items: stretch;
- height: 100%;
- }
- .data-item {
- flex: 1 1 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: relative;
- height: 110px;
- }
- .data-item:not(:last-child)::after {
- content: '';
- position: absolute;
- right: 0;
- top: 25%;
- height: 50%;
- width: 1px;
- background-color: #cfd2d6;
- }
- .data-number-unit {
- display: flex;
- align-items: flex-end;
- justify-content: center;
- }
- .data-item h3 {
- font-weight: 500;
- font-size: 40px;
- color: #DF0100;
- margin: 0;
- line-height: 1;
- }
- .data-unit {
- font-weight: 400;
- font-size: 12px;
- color: #8A9199;
- margin-left: 4px;
- margin-bottom: 2px;
- }
- .data-title {
- font-weight: 400;
- font-size: 12px;
- color: #737980;
- /* margin-top: 8px; */
- }
- /* 新闻中心样式 */
- .news-center-section {
- width: 100%;
- height: 932px;
- background: url('images/index/background.jpg') center center no-repeat;
- background-size: cover;
- position: relative;
- padding: 0;
- box-sizing: border-box;
- }
- .news-center-inner {
- max-width: 1200px;
- margin: 0 auto;
- /* 可选:让内容垂直居中 */
- /* height: 100%; display: flex; flex-direction: column; justify-content: center; */
- }
- .news-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-end;
- padding: 80px 0 80px 0;
- /* 左右padding去掉,交给外层容器控制 */
- }
- .news-more {
- font-weight: 400;
- font-size: 14px;
- color: #737980;
- line-height: 20px;
- transition: color 0.2s;
- }
- .news-more:hover {
- color: #ff3366;
- }
- .news-list {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 15px 30px;
- max-width: 1200px;
- margin: 0 auto;
- }
- .news-item {
- width: 100%;
- min-width: 0;
- background: #fff;
- border-radius: 8px;
- overflow: hidden;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
- display: flex;
- flex-direction: column;
- transition: box-shadow 0.2s;
- }
- .news-item:hover {
- box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
- }
- .news-item img {
- width: 380px;
- height: 240px;
- object-fit: cover;
- display: block;
- margin: 0 auto;
- }
- /* 新闻信息区域样式 */
- .news-info {
- padding: 15px;
- display: flex;
- align-items: center;
- /* 确保元素垂直居中 */
- }
- /* 日期样式 */
- .news-date {
- display: flex;
- flex-direction: column;
- /* 垂直排列 */
- align-items: center;
- /* 水平居中 */
- padding-right: 20px;
- /* 右侧间距20px */
- position: relative;
- /* 为伪元素定位 */
- min-width: 70px;
- /* 设置最小宽度 */
- flex-shrink: 0;
- /* 防止日期区域被压缩 */
- text-align: center;
- /* 文本居中 */
- }
- /* 添加竖线 */
- .news-date::after {
- content: '';
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 1px;
- height: 70%;
- /* 竖线高度为容器高度的70% */
- background-color: #e5e5e5;
- }
- /* 日期数字 */
- .date-day {
- font-size: 16px;
- font-weight: bold;
- color: #333;
- line-height: 1.2;
- display: block;
- /* 确保是块级元素 */
- margin-bottom: 5px;
- /* 添加底部间距 */
- }
- /* 年份 */
- .date-year {
- font-size: 14px;
- color: #999;
- line-height: 1.2;
- display: block;
- /* 确保是块级元素 */
- }
- /* 标题样式 */
- .news-title {
- margin: 0;
- padding-left: 20px;
- /* 左侧间距20px */
- font-size: 16px;
- line-height: 1.5;
- color: #333;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- flex: 1;
- /* 让标题占据剩余空间 */
- }
- .message-section {
- max-width: 1200px;
- margin: 80px auto 0;
- padding-bottom: 80px;
- }
- .message-header {
- text-align: center;
- margin-bottom: 40px;
- }
- .message-header .en-title {
- font-size: 32px;
- color: #888;
- letter-spacing: 2px;
- margin-bottom: 8px;
- }
- .message-header .cn-title {
- font-size: 32px;
- font-weight: bold;
- color: #222;
- }
- .message-form {
- width: 100%;
- }
- .form-row {
- display: flex;
- justify-content: space-between;
- margin-bottom: 32px;
- }
- .form-group {
- flex: 1;
- display: flex;
- flex-direction: column;
- margin-right: 32px;
- }
- .form-group:last-child {
- margin-right: 0;
- }
- .form-group label {
- font-size: 16px;
- color: #222;
- margin-bottom: 10px;
- font-weight: 500;
- }
- .required {
- color: #d32f0f;
- margin-right: 2px;
- }
- .form-group input,
- .form-group textarea {
- background: #f6f8f7;
- border: none;
- border-radius: 2px;
- font-size: 16px;
- padding: 16px 18px;
- color: #333;
- outline: none;
- resize: none;
- transition: border 0.2s;
- }
- .form-group input:focus,
- .form-group textarea:focus {
- border: 1px solid #d32f0f;
- background: #fff;
- }
- .form-group input {
- height: 48px;
- }
- .form-group textarea {
- min-height: 100px;
- max-height: 200px;
- }
- .form-group-full {
- flex: 1 1 100%;
- margin-right: 0;
- }
- .form-row-btn {
- justify-content: center;
- }
- .submit-btn {
- width: 160px;
- height: 48px;
- background: #d32f0f;
- color: #fff;
- font-size: 18px;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-weight: 500;
- transition: background 0.2s;
- }
- .submit-btn:hover {
- background: #b71c1c;
- }
- </style>
- </head>
- <body>
- <!-- 头部 -->
- {include file="header" /}
- <!-- Banner区域 -->
- <section class="banner">
- <div class="banner swiper">
- <div class="swiper-wrapper">
- {volist name="banner" id="v" key="k"}
- <div class="swiper-slide">
- <img src="{$v.pc_image|cdnurl}" class="banner-bg" alt="banner1">
- <div class="banner-content">
- <h2 swiper-animate-effect="fadeInLeft" swiper-animate-duration="1s" swiper-animate-delay="0.3s">
- {$v.bigfont}</h2>
- <p swiper-animate-effect="fadeInLeft" swiper-animate-duration="1s" swiper-animate-delay="0.6s">
- {$v.font}</p>
- <span>{$v.tip}</span>
- </div>
- </div>
- {/volist}
- <!-- 可继续添加更多slide -->
- </div>
- <!-- 分页器和导航按钮 -->
- <div class="swiper-pagination"></div>
- <!-- <div class="swiper-button-prev"></div>
- <div class="swiper-button-next"></div> -->
- </div>
- </section>
- {if $product_show == '1'}
- {/if}
- {if $about_show == '1'}
- <!-- 公司简介 -->
- <div class="company-profile">
- <div class="profile-content">
- <div class="profile-left">
- <div class="profile-header wow fadeInUp" data-wow-delay="0.3s">
- <h2 class="en-title">COMPANY PROFILE</h2>
- <h2 class="cn-title">公司简介</h2>
- </div>
- <div class="profile-text wow fadeInUp" data-wow-delay="0.5s">
- {$home.introduction}
- </div>
- <a href="{:addon_url('wwh/column/index', [':diyname'=>'about'])}" class="profile-more-btn">了解更多</a>
- </div>
- <div class="profile-image">
- <img src={$home.image|cdnurl} alt="公司大楼">
- </div>
- </div>
- </div>
- {/if}
- {if $cases_show == '1'}
- {/if}
- {if $partner_show == '1'}
- {/if}
- {if $news_show == '1'}
- <div class="news-center-section">
- <div class="news-center-inner">
- <div class="news-header wow fadeInUp" data-wow-delay="0.3s">
- <div>
- <div class="en-title">PRODUCT CLASSIFICATION</div>
- <div class="cn-title">新闻中心</div>
- </div>
- <a href="{:addon_url('wwh/column/index',[':diyname'=>'news'])}" target="_blank">MORE ></a>
- </div>
- <div class="news-list">
- <!-- 新闻卡片,循环输出 -->
- {volist name="news" id="v"}
- <a class="wow fadeInUp" data-wow-delay="0.5s"
- href="{:addon_url('wwh/archives/index', [':diyname'=>$navId[$v.column_id]['diyname'], ':id'=>$v.id])}">
- <div class="news-item">
- <img src="{$v.rec_image|cdnurl}" alt="新闻图片">
- <div class="news-info">
- <div class="news-date">
- <span class="date-day">{$v.time|date='m-d',###}</span>
- <span class="date-year">{$v.time|date='Y',###}</span>
- </div>
- <div class="news-title">
- <h3>{$v.title}</h3>
- </div>
- </div>
- </div>
- </a>
- {/volist}
- <!-- 继续添加新闻项... -->
- </div>
- </div>
- </div>
- {/if}
- <!-- 在线留言 -->
- <div class="message-section wow fadeInUp" data-wow-delay="0.3s">
- <div class="message-header">
- <div class="en-title">ONLINE MESSAGE</div>
- <div class="cn-title">给我们留言</div>
- </div>
- <form class="message-form" id="message">
- <div class="form-row">
- <div class="form-group">
- <label><span class="required">*</span>联系人:</label>
- <input type="text" id="realname" name="realname" placeholder="请输入您的姓名">
- </div>
- <div class="form-group">
- <label><span class="required">*</span>电话:</label>
- <input type="text" id="tel" name="tel" placeholder="请输入您的电话">
- </div>
- <div class="form-group">
- <label><span class="required">*</span>邮箱:</label>
- <input type="email" id="email" name="email" placeholder="请输入您的邮箱">
- </div>
- </div>
- <div class="form-row">
- <div class="form-group form-group-full">
- <label><span class="required">*</span>留言板:</label>
- <textarea id="content" name="content" placeholder="请输入您的留言"></textarea>
- </div>
- </div>
- {:token()}
- <div class="form-row form-row-btn">
- <button type="submit" class="submit-btn">确定提交</button>
- </div>
- </form>
- </div>
- <!-- 底部 -->
- {include file="footer" /}
- <script src="__CDN__/assets/addons/material/js/layer/layer.js"></script>
- <script type="text/javascript">
- $(function () {
- var mySwiper = new Swiper('.banner', {
- loop: true,
- autoplay: {
- delay: 4000,
- disableOnInteraction: false,
- },
- pagination: {
- el: '.swiper-pagination',
- clickable: true,
- },
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
- effect: 'fade',
- fadeEffect: {
- crossFade: true,
- },
- on:{
- init: function(){
- swiperAnimateCache(this); //隐藏动画元素
- swiperAnimate(this); //初始化完成开始动画
- },
- slideChangeTransitionEnd: function(){
- swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
- }
- }
- });
- // var full_height=$(window).height();
- // $('.index-banner-swiper').height(full_height);
- // $('.index-banner-swiper .swiper-slide .img .pic .img-block').height(full_height);
- // $('.index-banner-swiper .swiper-slide .img .mpic .img-block').height(full_height);
- // var swiper1 = new Swiper('.index-banner-swiper',{
- // slidesPerView: 1,
- // spaceBetween: 0,
- // effect: 'fade',
- // autoplay: {delay: 8000,stopOnLastSlide: false,disableOnInteraction: true,},
- // pagination: {
- // el: '.banner-pagination',
- // type: 'fraction',
- // renderFraction: function (currentClass, totalClass) { return '<span class="' + currentClass + '"></span>' + '<span class="' + totalClass + '"></span>';},
- // formatFractionCurrent: function (number) {switch(number){case 1:myNum='01';break;case 2:myNum='02';break;case 3:myNum='03';break;case 4:myNum='04';break;case 5:myNum='05';case 6:myNum='06';case 7:myNum='07';break;case 8:myNum='08';break;case 9:myNum='09';break;default:myNum= number}return myNum; },
- // formatFractionTotal: function (number) {switch(number){case 1:myNum='01';break;case 2:myNum='02';break;case 3:myNum='03';break;case 4:myNum='04';break;case 5:myNum='05';case 6:myNum='06';case 7:myNum='07';break;case 8:myNum='08';break;case 9:myNum='09';break;default:myNum= number}return myNum; },
- // },
- // navigation: {
- // nextEl: '.swiper-index-next',
- // prevEl: '.swiper-index-prev',
- // },
- // on:{
- // init: function(){
- // swiperAnimateCache(this); //隐藏动画元素
- // swiperAnimate(this); //初始化完成开始动画
- // },
- // slideChangeTransitionEnd: function(){
- // swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
- // }
- // }
- // });
- });
- // 提交留言
- $(".message-form").on("submit", function (e) {
- e.preventDefault(); // 阻止表单默认提交
- var realname = $.trim($("#realname").val());
- var tel = $.trim($("#tel").val());
- var email = $.trim($("#email").val());
- var content = $.trim($("#content").val());
- // var verify = $.trim($("#verify").val()); // 如果有验证码
- // 校验
- if (!realname) { showError('请输入您的姓名'); return false; }
- if (!tel) { showError('请输入您的电话'); return false; }
- if (!/^1[3-9]\d{9}$/.test(tel)) { showError('请输入正确的手机号'); return false; }
- if (!email) { showError('请输入您的邮箱'); return false; }
- if (!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(email)) { showError('请输入正确的邮箱'); return false; }
- if (!content) { showError('请输入您的留言'); return false; }
- // if(!verify){showError('请输入验证码');return false;}
- var form = document.getElementById("message");
- var formdata = new FormData(form);
- $(".submit-btn").prop('disabled', true);
- $.ajax({
- url: "{:addon_url('wwh/index/message')}",
- type: "POST",
- data: formdata,
- cache: false,
- contentType: false,
- processData: false,
- dataType: "json",
- complete: function () {
- $(".submit-btn").prop('disabled', false);
- },
- success: function (response) {
- if (response.code === 1) {
- layer.alert(response.msg, {
- icon: 1,
- end: function () {
- window.location.reload();
- }
- });
- } else {
- showError(response.msg);
- // fleshVerify(); // 如果有验证码
- }
- },
- error: function () {
- showError('网络错误,请重试');
- // fleshVerify(); // 如果有验证码
- }
- });
- function showError(msg) {
- layer.alert(msg, {
- skin: 'layui-layer-lan',
- closeBtn: 0,
- title: "提示:",
- icon: 2,
- anim: 2,
- end: function () {
- window.location.reload();
- }
- });
- }
- return false;
- });
- </script>
- </body>
- </html>
|