master
大帅比 2023-08-02 07:23:38 +00:00
parent df814604b5
commit 84911ff018
2 changed files with 102 additions and 97 deletions

View File

@ -1,95 +1,100 @@
// WOw插件初始化 // WOw插件初始化
var wow = new WOW({ var wow = new WOW({
boxClass: 'wow', boxClass: 'wow',
animateClass: 'animated', animateClass: 'animated',
offset: 80, offset: 80,
mobile: true, mobile: true,
live: true, live: true,
}); });
wow.init(); wow.init();
$(function(){ $(function(){
$(".hamburger").click(function(){ $(".listcur a").click(function(){
$(this).toggleClass("is-active"); $(this).addClass("on").siblings().removeClass("on");
$(this).siblings(".right-boxs").find(".nav").toggleClass('inshow'); })
$(this).siblings(".right-boxs").find(".form").toggleClass('form-show');
}); $(".hamburger").click(function(){
$(this).toggleClass("is-active");
$(window).scroll(function() { $(this).siblings(".right-boxs").find(".nav").toggleClass('inshow');
if($(window).scrollTop() > 200) { $(this).siblings(".right-boxs").find(".form").toggleClass('form-show');
$('.header').addClass("fixed-header"); });
} else {
$('.header').removeClass("fixed-header"); $(window).scroll(function() {
} if($(window).scrollTop() > 200) {
}) $('.header').addClass("fixed-header");
} else {
$(".header .nav .nLi h3").mouseenter(function(event) { $('.header').removeClass("fixed-header");
$(this).siblings('.listcur').show(); }
}); })
$(".header .nav .nLi").mouseleave(function(event) { $(".header .nav .nLi h3").mouseenter(function(event) {
$(this).find(".listcur").hide(); $(this).siblings('.listcur').show();
}); });
// banner
$(".header .nav .nLi").mouseleave(function(event) {
var swiper1 = new Swiper('.banner .swiper-container', { $(this).find(".listcur").hide();
speed:1000, });
loop:true, // banner
autoplay: {
delay: 5000, var swiper1 = new Swiper('.banner .swiper-container', {
stopOnLastSlide: false, speed:1000,
disableOnInteraction: true, loop:true,
}, autoplay: {
navigation: { delay: 5000,
nextEl: '.button-next', stopOnLastSlide: false,
prevEl: '.button-prev', disableOnInteraction: true,
}, },
pagination: { navigation: {
el: '.swiper-pagination', nextEl: '.button-next',
clickable: true, prevEl: '.button-prev',
}, },
}); pagination: {
el: '.swiper-pagination',
//当banner图片大于1张时候运行 clickable: true,
var bannerbox = $(".banner").find(".swiper-slide").length; },
if(bannerbox == 1){ });
$(".banner").find('.swiper-container').addClass("swiper-no-swiping");
$(".banner").find(".swiper-pagination").hide(); //当banner图片大于1张时候运行
$(".banner").find(".btn-next").hide(); var bannerbox = $(".banner").find(".swiper-slide").length;
$(".banner").find(".btn-prev").hide(); if(bannerbox == 1){
} $(".banner").find('.swiper-container').addClass("swiper-no-swiping");
$(".banner").find(".swiper-pagination").hide();
jQuery(".index-locate").slide({ $(".banner").find(".btn-next").hide();
titCell:".hd li", $(".banner").find(".btn-prev").hide();
mainCell: ".bd", }
});
jQuery(".index-locate").slide({
jQuery(".business-content .list").slide({ titCell:".hd li",
titCell:".hd li", mainCell: ".bd",
mainCell: ".bd", });
effect:"fold"
}); jQuery(".business-content .list").slide({
titCell:".hd li",
// 右侧悬浮栏 mainCell: ".bd",
$(window).scroll(function() { effect:"fold"
if($(window).scrollTop() > 400) { });
$('.back').fadeIn();
$(".header").addClass("fixed-header") // 右侧悬浮栏
} else { $(window).scroll(function() {
$('.back').fadeOut(); if($(window).scrollTop() > 400) {
$(".header").removeClass("fixed-header") $('.back').fadeIn();
} $(".header").addClass("fixed-header")
}) } else {
$(".back").click(function(){ $('.back').fadeOut();
$('body,html').animate({scrollTop:0},1000); $(".header").removeClass("fixed-header")
return false; }
}); })
$(".back").click(function(){
$("body").on('click','.talent-top',function(){ $('body,html').animate({scrollTop:0},1000);
$(this).siblings(".talent-bottom").slideToggle(); return false;
$(this).parents(".boxs").siblings().find(".talent-bottom").slideUp(); });
})
}) $("body").on('click','.talent-top',function(){
$(this).siblings(".talent-bottom").slideToggle();
$(this).parents(".boxs").siblings().find(".talent-bottom").slideUp();
})
})

View File

@ -12,7 +12,7 @@
<li class="nLi {if $Request.controller == 'About'}curr{/if}"> <li class="nLi {if $Request.controller == 'About'}curr{/if}">
<h3><a href="/about.html">走进产投</a></h3> <h3><a href="/about.html">走进产投</a></h3>
<!-- 二级菜单 --> <!-- 二级菜单 -->
<div class="listcur"> <div class="listcur info">
<a href="/about.html#into1">集团简介</a> <a href="/about.html#into1">集团简介</a>
<a href="/about.html#into2">集团领导</a> <a href="/about.html#into2">集团领导</a>
<a href="/about.html#into3">发展战略</a> <a href="/about.html#into3">发展战略</a>
@ -76,4 +76,4 @@
<div class="hamburger-inner"></div> <div class="hamburger-inner"></div>
</div> </div>
</div> </div>
</section> </section>