1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-16 23:22:20 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

后台表单控件渲染功能初步完成;关于从导航栏挪到页脚;分类首页和分类详情后台分离

This commit is contained in:
2022-04-02 20:02:21 +08:00
parent 8635e5dbac
commit 3320d7a90a
12 changed files with 494 additions and 53 deletions

View File

@@ -12,6 +12,8 @@
<a target="_blank" href="https://github.com/bookshelfplus/bookshelfplus"><img src="/assets/image/svg/github.svg" style="height: 1.08em; vertical-align: middle;"/><span style="vertical-align: middle; margin-left: 3px;">GitHub</span></a>
<br>
<a href="/status">网站状态检测</a>
·
<a class="narrowHide" href="/about">关于</a>
</small>
</p>
</div>

View File

@@ -9,9 +9,8 @@
<div class="grid-item exnarrowHide" style="text-align: right; color: white;">
<a class="home narrowHide" href="/">首页</a>
<a href="/search">搜索</a>
<a href="/category">分类</a>
<a class="narrowHide" href="/about">关于</a>
<a class="narrowHide" href="/login">登录</a>
<a class="narrowHide" href="/category">分类</a>
<a href="/login">登录</a>
</div>
<div class="grid-item"></div>
</div>
@@ -29,13 +28,13 @@
}
//其他页面
console.log("page:", page);
// console.log("page:", page);
$("a").toArray().forEach(element => {
var linkRoute = element.getAttribute("href").split('/').filter(s=>!!s);
console.log(element.href, linkRoute);
// console.log(element.href, linkRoute);
if(linkRoute.length > 0) {
var linkPage = linkRoute[linkRoute.length-1];
console.log(element, linkPage);
// console.log(element, linkPage);
if(page == linkPage) {
$(element).addClass("active");
return;