$(function(){
  pageTo('.p-solution .psolution-item')//解决方案--点击跳转对应内页
  pageTo('.pservice .pservice-item')//核心服务--点击跳转对应内页
  pageTo('.pcase .pcase-item')//经典案例--点击跳转对应内页
  // 经典案例 切换
  $('.pcase-region span').click(function(){
    $(this).addClass('on').siblings().removeClass('on')
    var ind = $(this).index()
    $('.pcase-tabs .pcase-box').eq(ind).addClass('on').siblings().removeClass('on')
  })
  if($(window).width()<1000){
    $('.pservice-item-left  .common-more ').removeClass('pservice-more')
  }

  // 中卡招聘
  $('tbody tr').click(function(){
    if($(this).hasClass('on')){
        $(this).removeClass('on')
        // $(this).next('.tab-contents').slideUp('slow')
      }else{
        $(this).addClass('on');
        // $(this).next('.tab-contents').slideDown('slow')
      }
    $('tbody tr').not(this).removeClass('on')
  })

 
})

function pageTo(classname){
  $(classname).click(function(){
    var aurl = $(this).data('url')
    location.href= aurl
  })
}