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 + "
  • " + v + "
  • "; }); $(val.requiredlist).each(function (i, v) { rzyq = rzyq + "
  • " + v + "
  • "; }); $("#gw").append('
  • '+ '

    '+val.name+'

    '+ '
    '+ '
    '+ '工作地点薪资待遇工作经验学历水平职位类型
    '+ '
    '+val.workaddr+''+val.salary+''+val.experience+''+val.education+''+val.type+'
    '+ '
      岗位职责:
      '+gwzz+'
    '+ '
      任职资格:
      '+rzyq+'
  • ' ); }) //人才招聘点击下拉 $('.information').eq(0).addclass('block'); $('#gw').eq(0).children().children().eq(0).children().eq(1).children().addclass('icon-jiantoushang'); $('.ryuan').click(function () { // var next = $(this).next(); $(this).next().slidetoggle(); $(this).find('.ryuan-right>i').toggleclass('icon-jiantoushang') }); } }); } function banner(){ $.ajax({ type:'get', url : url()+'/about/getbanner', success:function(data){ // console.log(data); // console.log($(".banner")); var imgurl = data.data; $(".banner").attr('style','background:url('+imgurl+') no-repeat;background-size: cover;'); }, error:function(){ $(".banner").attr('style','background:url(../images/aboutusbg.png) no-repeat;background-size: cover;'); } }); } banner(); //滚动条事件 $(window).on('scroll', function(){ var scrolltop = document.documentelement.scrolltop || document.body.scrolltop; if(scrolltop >= 600){ $('.matech').addclass('animated bounceinright') }; if(scrolltop >= 900){ $('.history').addclass('animated bounceinleft') } if(scrolltop >= 300){ $('.relationnum').addclass('animated bounceinright') } }) $('.telephone1>span').eq(0).addclass('addcolor') $('.telephone1 span').click(function(){ var i=$(this).index(); $(".change>div").eq(i).show().siblings().hide(); $(".address>iframe").eq(i).show().siblings().hide(); $(this).addclass('addcolor').siblings().removeclass('addcolor') })