if(getquerystring('index')){ var indexid = getquerystring('index'); $('.aboutustab li').children().removeclass("active") $('.aboutustab li').eq(indexid).children().addclass('active') $('.page').eq(indexid).addclass("show").siblings().removeclass("show"); } //选项卡 $('.aboutustab li').on('click', function () { var index = $(this).index(); $('.aboutustab li').children().removeclass("active") $(this).children().addclass('active') location.href='#totop'; $('.page').eq(index).addclass("show").siblings().removeclass("show"); // console.log(index)//0,1,2,3,4 if (index == '3' && $(this).attr('flag') == 1) { getposition(); $(this).attr('flag',0); }else{ return false; } }); $(window).scroll(function(){ var kaydirma_cubugu = $(document).scrolltop(); console.log(kaydirma_cubugu) if(kaydirma_cubugu >= 300){ $('.aboutustab').attr('style','position: fixed; margin-top: 0px;') } if(kaydirma_cubugu <= 350){ $('.aboutustab').attr('style','position: absolute; top: 50px;') } }) function briefintroduction() { //公司简介 var myswiper = new swiper(".teamwork", { autoplay: 3000, // autoplay: { disableoninteraction: false }, // speed: 1000, autoplaydisableoninteraction: true, //用户操作swiper之后,是否禁止autoplay loop: true, observer:true, observeparents:true, // pagination: ".swiper-pagination", // 如果需要分页器 // paginationclickable: true, //点击分页器是否会切换 prevbutton: ".swiper-button-prev", nextbutton: ".swiper-button-next", }); } // briefintroduction() function culture() {//企业文化 // $('.swp_text').css('display','none'); //var swiper = new swiper('#course', { //autoplay: 4000, // pagination: '.swiper-pagination', //paginationclickable: true, // loop: true, //observer:true, // observeparents:true, // prevbutton: ".swiper-button-prev", // nextbutton: ".swiper-button-next", // spacebetween: 30, // effect: 'fade' // paginationbulletrender: function (swiper, index, classname) { // return '' + (2019-index) + ''; // }, //}); //$('.year0 .swiper-slide ').eq(0).children('swp_text').show() //$('.swp_text').addclass('animated bounceindown') var view = document.getelementbyid('course'); horwheel(view); } culture() function getposition() { // 获取岗位信息 $.ajax({ type: 'get', url: url() + "/about/getposition", success: function (datas) { var data = datas.data; $(data).each(function (index, val) { var gwzz = ''; var rzyq = ''; $(val.responsibilitylist).each(function (i, v) { gwzz = gwzz + "