$(function () { //当点击跳转链接后,回到页面顶部位置 let timer = null; $('#backTop').click(function () { $('body,html').animate({ scrollTop: 0 }, 500); return false; }); $('#wechatCodeShow,#closeCode').click(function () { $('.wechatCode').toggle(); }); // $('.slideMenu').hover(function () { // clearInterval(timer) // $('.slideMenuBox').height('180') // },function(){ // timer = setTimeout(()=>{ // $('.slideMenuBox').height('0') // },500) // }) // $('.slideMenuBox').hover(function () { // clearInterval(timer) // },function(){ // timer = setTimeout(()=>{ // $('.slideMenuBox').height('0') // },500) // }) // $(window).scroll(function() { // let scrollTop = $(document).scrollTop() // // let header = $(".w-header") // // 头部的动态变化 // if (scrollTop > 50) { // $(".topHeader").css("height", "50px"); // $(".nav-list .nav-item .link").css("font-size", "14px"); // $(".topHeader .btn").css({height:'32px',width:'120','border-width':'1px','font-size':"14px"}); // $('.logo img').css('width','143px') // } else { // $(".topHeader").css("height", "86px"); // $(".nav-list .nav-item .link").css("font-size", "16px"); // $(".topHeader .btn").css({height:'40px',width:'120px','border-width':'2px','font-size':"16px"}); // $('.logo img').css('width','240px') // } // // scrollTop >= 80 ? header.removeClass("transparent") : header.addClass("transparent") // }) // $(document).scrollTop() >= 80 ? header.removeClass("transparent") : header.addClass("transparent") $('.serviceTab .tabItem').mouseover(function () { let index = $('.serviceTab .tabItem').index(this); $(this).addClass('active').siblings().removeClass('active'); let src = `//cdn.byai.com/static/official-website/service/tu${index + 1}.png`; $('.serviceTabImg').attr('src', src); }); $('.iconchuangkou-guanbi').click(function () { $('.form').hide(); }); $('.qr-code-trigger').click(function () { // H5的二维码 $('.form').css('display', 'flex'); }); // $('.m_menu').click(function (event) { // console.log('崔丽丽'); // $('.hyzBlh').toggle(); // event.stopPropagation(); // }); $('.m_menu') .off('click') .on('click', function (event) { console.log('崔丽丽'); $('.hyzBlh').toggle(); event.stopPropagation(); }); });