// JavaScript Document $(function(){ var r=navigator.userAgent; if(r.indexOf('QQ')!=-1){ $('.quan').removeClass('animate'); } window.onresize=size; size(); function size(){ $('.zg_box').height($(window).height()); $('.zg_tree').height($(window).height()); }; $('.qclk span').on('click',function(){ $('.tmbg').show(); $('.tank').hide(); $('.qclk').removeClass('zindex'); $(this).parent('.qclk').addClass('zindex'); $(this).siblings('.tank').show(); }); $('.tmbg').click(function(){ $(this).hide(); $('.tank').hide(); }); $('.big').click(function(){ $('.big').addClass('animate'); $(this).removeClass('animate'); $('.smbtn ').addClass('animate'); }); $('.big1 ').click(function(){ $('.small').show(); $('.big img').hide(); $('.qclk').hide(); $('.small3').show(); $(this).siblings('.red').show(); $(this).find('img').show(); }); $('.big2 ').click(function(){ $('.small').show(); $('.big img').hide(); $('.qclk').hide(); $('.small3').show(); $(this).siblings('.green').show(); $(this).find('img').show(); }); $('.smbtn ').click(function(){ $('.small').show(); $('.big img').hide(); $('.qclk').hide(); $('.small3').show(); $(this).siblings('.green').show(); $('.big2 ').find('img').show(); $('.smbtn').removeClass('animate'); $('.big2').removeClass('animate'); }); $('.big3 ').click(function(){ $('.small').hide(); $('.big img').hide(); $('.qclk').hide(); //$('.small3').show(); $(this).siblings('.orange').show(); $(this).find('img').show(); }); $('.big4 ').click(function(){ $('.small').hide(); $('.big img').hide(); $('.qclk').hide(); //$('.small3').show(); $(this).siblings('.blue').show(); $(this).find('img').show(); }); $('.tank .close').click(function(){ $(this).parent('.tank').hide(); $('.tmbg').hide(); }); }); //系统类型 function getChecktype2(obj,str){ var zwcode = 'gj'; var zwyear = '2017'; var value = obj.value; if(value==''){ $.dialog.tips('请选择系统类型!',1,'error.gif'); } $.ajax({ type:"post", url:"//zw.offcn.com/show.php?r=Country/Index/checktype2", data:{'zwcode':zwcode,'zwyear':zwyear,'value':value,'str':str}, dataType:'jsonp', jsonp:"callback", success:function(result){ if(str=='areaname'){ $('#check_type_id').html(result); $('#check_bumen_id').html(''); $('#check_zhiwei_id').html(''); }else if(str=='type'){ $('#check_bumen_id').html(result); $('#check_zhiwei_id').html(''); }else if(str=='bumen'){ $('#check_zhiwei_id').html(result); } } }); }