×
在线咨询
18919605935
2190043115
-
返回顶部
-
400 800 7668
-
18919605935
2190043115
- 集团官方小程序
关于2022年PG电子官方网站 “元旦”放假通知
2021-12-30
阅读次数: 7462
li>a", function (e) {
console.log(233);
e.stopPropagation();
$(this).parent().siblings().find("ul").hide()
$(this).next().slideToggle(200)
})
$(".footer").mouseleave(function () {
$(this).find(".foot_list .container").css('height', '0')
$(this).find(".foot_list .hover_btn .iconfont").removeClass("icon-arrow").addClass("icon-icon")
})
$(".footer .foot_list .hover_btn").mouseenter(function () {
$(this).find(".iconfont").removeClass("icon-icon").addClass("icon-arrow")
$(this).next(".container").css('height', '280px')
})
$(window).scroll(function () {
if ($(window).scrollTop() > 2) {
$('.head').css({
'background-color': '#fff',
'box-shadow': '1px 0 10px 1px #bbb',
});
} else {
$('.head').css({
'background-color': 'transparent',
'box-shadow': 'none',
});
}
});
$('.shousuo1').click(function () {
var key = $('input[name="key1"]').val();
if ('' == key) {
layer.alert('搜索要害词不可为空');
return false;
}
$('#h_search').submit();
// console.log(key);
})
// 侧边导航
var sideIcon = ``
$(".side-nav .icon").click(function () {
$(this).next().show()
$(this).hide()
// $(this).remove()
})
$(".side-nav .con .close-btn").click(function () {
// $(this).parents(".side-nav").prepend(sideIcon)
$(this).parents(".con").hide()
$(this).parents(".con").prev().show()
})
// 悬浮窗口
$(".yb_conct").hover(function () {
// console.log(55625252);
$(".yb_conct").css("right", "5px");
$(".yb_bar .yb_ercode").css('height', '200px');
}, function () {
$(".yb_conct").css("right", "-127px");
$(".yb_bar .yb_ercode").css('height', '53px');
});
// 返回顶部
$('.yb_bar .yb_top').click(function () {
if($(window).scrollTop()>0){
// $(window).scrollTop(0)
$("body,html").animate(
{
scrollTop: 0
},
600
);
}
// var href = window.location.href;
// var lastBit = href.substring(href.lastIndexOf('/') + 1).match(/[^\/]*$/)[0];
// if ((lastBit == 'index.html') || (lastBit == '') ) {
// $('.head').css({
// 'background-color': 'transparent',
// 'box-shadow': 'none',
// });
// } else {
// $("body,html").animate(
// {
// scrollTop: 0
// },
// 200
// );
// }
})
$(".side-nav .foot .fl").mouseover(function () {
$(this).children(".weixin").show()
})
$(".side-nav .foot .fl").mouseout(function () {
$(this).children(".weixin").hide()
})