From 7c415b16f55e3cd792f21e414073b3e8143bdeaa Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Mon, 7 Nov 2022 13:58:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AA=92=E4=BD=93=E6=8A=A5=E9=81=93=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/web/js/script.js | 6 ++++++ view/public/news_second.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/static/web/js/script.js b/public/static/web/js/script.js index 72bd1d4..db3cda8 100644 --- a/public/static/web/js/script.js +++ b/public/static/web/js/script.js @@ -151,6 +151,12 @@ $(function(){ window.location.href = $(this).data('url'); } }) + }else{ + $('.news-nav>a').click(function(){ + if(!$(this).hasClass('active')){ + window.location.href = $(this).data('url'); + } + }) } // 尾部导航 diff --git a/view/public/news_second.html b/view/public/news_second.html index 8b6d822..deccbe0 100644 --- a/view/public/news_second.html +++ b/view/public/news_second.html @@ -1,6 +1,6 @@
{foreach $childrenCate as $childrenItem} - {$childrenItem['title']} + {$childrenItem['title']} {/foreach}
\ No newline at end of file