From 915bbc9fbf0c93c7f4840da131478c8f52e7f240 Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Wed, 12 Jan 2022 16:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B40112?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/javascript.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/javascript.js b/js/javascript.js index d9aa417..149d5da 100644 --- a/js/javascript.js +++ b/js/javascript.js @@ -77,11 +77,16 @@ jQuery(function($){ // 加入我们 $(".join-class li").eq(0).addClass("cur"); $(".join-list li").eq(0).addClass("cur"); + $(".join-list li.cur .join-list-item").eq(0).addClass("active"); $('.join-item li').click(function() { $(".join-item li").eq($(this).index()).addClass("active").siblings().removeClass('active'); $(".join-class li").eq($(this).index()).addClass("cur").siblings().removeClass('cur'); $(".join-list li").eq($(this).index()).addClass("cur").siblings().removeClass('cur'); }); + $('.join-class li.cur span').click(function() { + $(".join-class li.cur span").eq($(this).index()).addClass("active").siblings().removeClass('active'); + $(".join-list li.cur .join-list-item").eq($(this).index()).addClass("active").siblings().removeClass('active'); + }); // 资质展示