/** * created by jiapingping on 2017/09/27. */ if(document.body.scrollwidth > 768){ if (!(/msie [6|7|8|9]/i.test(navigator.useragent))){ new wow().init(); }; } //wow交互动画 //首页 (function ($) { $(".index_wx").click(function () { layer.open({ type: 1, shade: [0.67, '#000'], title:false, shadeclose:true, area:"auto", closebtn: 1, boolean:true, anim: 5, content: $(".xz_tc1"), //这里content是一个普通的string }); }); // 搜索弹窗 $(".index_search img").click(function () { $(".index_search_popover").show(); }) $('.index_close img').click(function () { $(".index_search_popover").hide(); }) // 响应式 头部导航 var control = {menubol: true, menutime: true, empty: ''}; var a = 0; $(".menu-btn").on('click', function () { if (control.menutime) { control.menutime = false; if (control.menubol) { $(".menu-btn > span:nth-child(1)").removeclass('span1-1').addclass('span1'); $(".menu-btn > span:nth-child(2)").hide(); $(".menu-btn > span:nth-child(3)").removeclass('span3-1').addclass('span3'); $(".right-menu").addclass("right-menu1"); } else { menuback() } control.menubol = !control.menubol; settimeout(function () { control.menutime = !control.menutime }, 400) } }); function menuback() { $(".menu-btn > span:nth-child(1)").removeclass('span1').addclass('span1-1'); $(".menu-btn > span:nth-child(3)").removeclass('span3').addclass('span3-1'); $(".right-menu").removeclass("right-menu1"); settimeout(function () { $(".menu-btn > span:nth-child(2)").show() }, 400) } $(".menu-ul>li>a").click(function () { $(this).next(".new-ul2").slidetoggle(); }); })(jquery); //首页结束 $(function () { //修改兼容ie8 $(".index_nav_ul li").mouseenter(function () { $(this).find(".tag_nav").stop().slidedown(); }) $(".index_nav_ul li").mouseleave(function () { $(this).find(".tag_nav").stop().slideup(); }) //走进集团介绍 concept 轮播 $(".run_concept_main .swiper-container").height(220); var myswiper2 = new swiper('.run_concept_main .swiper-container', { pagination : '.run_concept_main .pagination', paginationclickable :true, loop:true, autoplaydisableoninteraction: false, }) $(".foot_bt_a").click(function () { $(".foot_tag_on").stop().fadetoggle(); }) }); (function ($) { $(".tc1").click(function () { var _data = $(this).attr("data-img"); var _title = $(this).attr("data-title").split(";"); var data_p = _data.split(";") console.log(data_p); var _html=''; var unde; $(data_p).each(function (index,obj) { unde = _title[index]; if(unde == undefined){ unde = ''; } _html+=' ' + '
'+ ''+ '
'+ unde +'
'; }); $("#tc_main").html(_html); layer.open({ type: 1, shade: [0.67, '#000'], title:false, area: ['100%', '100%'], closebtn: 0, boolean:true, anim: 5, content: $(".tc"), //这里content是一个普通的string success: function(layero, index){ $(".layui-layer").css({"background":"rgba(0,0,0,0.71)"}); var myswiper = new swiper('.tc .swiper-container',{ autoplay : 5000,//可选选项,自动滑动 }) $('#btn3').click(function(){ myswiper.swipeprev(); }) $('#btn4').click(function(){ myswiper.swipenext(); }) $(".close_one img").click(function () { layer.closeall(); myswiper.removeallslides(); //移除全部 }) } }); }) })(jquery);