/*! For qywg */ $(function(){ $(".index_yxjs_wrap_z li").click(function(){ var tmpIndex = $(this).index(); $(".index_yxjs_wrap_z li").removeClass("cur").find(".jb").hide(); $(this).addClass("cur").find(".jb").show(); $(".yxjs_info").hide().eq(tmpIndex).show(); }); $(".qywh_tit_nav .pyramid-cell").click(function(){ var tmpIndex = $(this).index(); var tmpid = $(this).attr('data-myid'); var tmpselector = ".standard-detail[data-mycon="+tmpid+"]" //alert(tmpid); $(".qywh_tit_nav .pyramid-cell").children('polyline').attr('class',''); $(".qywh_tit_nav .pyramid-cell").children('rect').attr('class',''); $(this).children('polyline').attr('class','active'); $(this).children('rect').attr('class','active'); $(".standard-detail").hide(); $(tmpselector).show(); }); $(".group li").click(function(){ var tmpIndex = $(this).index(); var tmpid = $(this).attr('data-mmyid'); var tmpselectorpic = ".img-container picture[data-pic="+tmpid+"]" var tmpselectorcont = ".img-container .card-intro-item[data-cont="+tmpid+"]" //alert(tmpIndex); $(".group li").removeClass("active"); $(this).addClass("active"); //$(".img-container").hide().eq(tmpIndex).show().children('picture').attr('class','img img-active'); //$(".img-container").hide().eq(tmpIndex).show().children('.card-intro-item').attr('class','card-intro-item card-intro card-intro-item-active'); $(".img-container").children('picture').attr('class','img'); $(".img-container").children('.card-intro-item').attr('class','card-intro-item card-intro'); $(tmpselectorpic).attr('class','img img-active'); $(tmpselectorcont).attr('class','card-intro-item card-intro card-intro-item-active'); //$(".img-container").show(); }); $(".round-container div").click(function(){ var tmpIndex = $(this).index(); //alert(tmpIndex); $(".round-container div").removeClass("active-progress"); $(this).addClass("active-progress"); $(".diy_mo_wrap .current-slide").attr('class','current-slide'); $(".diy_mo_wrap .current-slide").eq(tmpIndex).attr('class','current-slide show-current-slide'); }); $(".pyramid-row div").click(function(){ var tmpIndex = $(this).index(); var tmpmoid = $(this).attr('data-mymoid'); var tmpselector = ".standard-detail[data-mycon="+tmpmoid+"]" //alert(tmpIndex); $(".pyramid-row div").removeClass("pyramid-item-active"); $(this).addClass("pyramid-item-active"); $(".standard-detail").hide(); $(tmpselector).show(); }); });