作者 anyv
1 个管道 的构建 通过 耗费 0 秒

搜索页

... ... @@ -37,7 +37,7 @@
<!-- 搜索导航 -->
<div class="se_nav">
<ul>
<li>综合</li>
<li class="se_navactvie">综合</li>
<li>销量
<img src="__TMPL__/public/assets/images/24.png" alt="">
</li>
... ... @@ -69,6 +69,21 @@
<div class="in_what">—— 已经到底了哦 ——</div>
</div>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script>
$('.cl_nav ul li').click(function() {
$(this).addClass('cl_navActive').siblings().removeClass('cl_navActive');
})
$('.se_nav ul li').click(function() {
$(this).addClass('se_navactvie').siblings().removeClass('se_navactvie');
$(this).addClass('se_navactvie').siblings().children('img').attr('src', '__TMPL__/public/assets/images/s1.png')
if ($(this).children('img').attr('src') == "__TMPL__/public/assets/images/s1.png") {
$(this).children('img').attr('src', '__TMPL__/public/assets/images/s2.png')
} else {
$(this).children('img').attr('src', '__TMPL__/public/assets/images/s1.png')
}
})
</script>
</body>
</html>
\ No newline at end of file
... ...