线上修改
parent
eeff1d0a36
commit
84c4de3292
|
@ -2643,6 +2643,7 @@ img {
|
|||
position: fixed;
|
||||
right: -100%;
|
||||
top: 55px;
|
||||
display: block;
|
||||
border-top: 1px solid #ececec;
|
||||
width: 100%;
|
||||
height: calc(100% - 52px);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1764,6 +1764,7 @@ $pc-width:1220px;
|
|||
position: fixed;
|
||||
right: -100%;
|
||||
top: 55px;
|
||||
display: block;
|
||||
border-top: 1px solid #ececec;
|
||||
width: 100%;
|
||||
height: calc(100% - 52px);
|
||||
|
|
|
@ -9,10 +9,41 @@ var wow = new WOW({
|
|||
wow.init();
|
||||
|
||||
$(function(){
|
||||
let url = window.location.href;
|
||||
let lastChar = url.slice(-1);
|
||||
let result = url.includes("about");
|
||||
console.log(lastChar,result); // 输出:最后一个字符
|
||||
if(result && lastChar == 'l') {
|
||||
$(".info a").eq(0).addClass("on").siblings().removeClass("on");
|
||||
$(".inner-navInfo a").eq(0).addClass("curr").siblings().removeClass("curr");
|
||||
}
|
||||
$(".info a").eq(lastChar-1).addClass("on").siblings().removeClass("on");
|
||||
$(".inner-navInfo a").eq(lastChar-1).addClass("curr").siblings().removeClass("curr");
|
||||
|
||||
var heightChu = $(".header").height() + 10;
|
||||
var hashUrl = window.location.hash;
|
||||
console.log(hashUrl)
|
||||
if(hashUrl) {
|
||||
$("html, body").animate({
|
||||
scrollTop: $(hashUrl).offset().top - heightChu + "px"
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
// 走进产投点击
|
||||
$(".listcur.info a").click(function(){
|
||||
$(this).addClass("on").siblings().removeClass("on");
|
||||
var index = $(this).index();
|
||||
$(".inner-nav2 a").eq(index).addClass("curr").siblings().removeClass("curr");
|
||||
$(".inner-navInfo a").eq(index).addClass("curr").siblings().removeClass("curr");
|
||||
$(".menu").removeClass("is-active");
|
||||
$(".right-boxs").find(".nav").removeClass('inshow');
|
||||
$(".right-boxs").find(".form").removeClass('form-show');
|
||||
var height = $(".header").height() + 10;
|
||||
var hash = $(this).attr("href").substring(11);
|
||||
console.log(hash)
|
||||
$("html, body").animate({
|
||||
scrollTop: $(hash).offset().top - height + "px"
|
||||
}, 1000);
|
||||
return false;
|
||||
})
|
||||
|
||||
$(".hamburger").click(function(){
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<section class="inner-nav2 mt30">
|
||||
<section class="inner-nav2 mt30 inner-navInfo">
|
||||
<div class="wrap">
|
||||
<a href="#into1" class="curr">集团简介</a>
|
||||
<a href="#into2">集团领导</a>
|
||||
|
@ -201,12 +201,13 @@
|
|||
},
|
||||
});
|
||||
|
||||
$(".inner-nav2 a").click(function() {
|
||||
$(".inner-navInfo a").click(function() {
|
||||
$(this).addClass("curr").siblings().removeClass("curr");
|
||||
var index = $(this).index();
|
||||
$(".listcur.info a").eq(index).addClass("on").siblings().removeClass("on");
|
||||
var height = $(".header").height() + 10;
|
||||
$("html, body").animate({
|
||||
scrollTop: $($(this).attr("href")).offset().top - 130 + "px"
|
||||
scrollTop: $($(this).attr("href")).offset().top - height + "px"
|
||||
}, 1000);
|
||||
return false;
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<script src="__STATIC__/web/js/jquery.SuperSlide.2.1.1.js"></script>
|
||||
<!-- Swiper JS -->
|
||||
<script src="__STATIC__/web/js/swiper.min.js"></script>
|
||||
<script src="__STATIC__/web/js/style.js?1.0"></script>
|
||||
<script src="__STATIC__/web/js/style.js?3.0"></script>
|
||||
<script>
|
||||
//极速模式提示信息-最简练的判断方式
|
||||
if (navigator.userAgent.indexOf(".NET") > -1) {
|
||||
|
|
Loading…
Reference in New Issue