From e2cc9a9ebf41c0e7f97b7b43f654a409f6fa6f51 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Tue, 13 Oct 2026 11:00:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(mobile):=20=E5=AE=8C=E5=96=84=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E7=AB=AF=E5=B0=8F=E8=AF=B4=E6=A3=80=E7=B4=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../novel/controller/page/PageController.java | 2 +- .../templates/mobile/book/book_detail.html | 4 +- .../templates/mobile/book/bookclass.html | 463 ++++++++++++++++++ .../resources/templates/mobile/index.html | 4 +- 4 files changed, 468 insertions(+), 5 deletions(-) create mode 100644 novel-front/src/main/resources/templates/mobile/book/bookclass.html diff --git a/novel-front/src/main/java/com/java2nb/novel/controller/page/PageController.java b/novel-front/src/main/java/com/java2nb/novel/controller/page/PageController.java index 3c2eeba..2b67db3 100644 --- a/novel-front/src/main/java/com/java2nb/novel/controller/page/PageController.java +++ b/novel-front/src/main/java/com/java2nb/novel/controller/page/PageController.java @@ -153,7 +153,7 @@ public class PageController extends BaseController { */ @RequestMapping("book/bookclass.html") public String bookClass() { - return "book/bookclass"; + return ThreadLocalUtil.getTemplateDir() + "book/bookclass"; } /** diff --git a/novel-front/src/main/resources/templates/mobile/book/book_detail.html b/novel-front/src/main/resources/templates/mobile/book/book_detail.html index 824d863..574662d 100644 --- a/novel-front/src/main/resources/templates/mobile/book/book_detail.html +++ b/novel-front/src/main/resources/templates/mobile/book/book_detail.html @@ -141,7 +141,7 @@ - +
@@ -350,7 +350,7 @@ } function searchBooks(keyword) { - window.location.href = "/book/book_ranking.html?keyword=" + encodeURI(keyword); + window.location.href = "/book/bookclass.html?keyword=" + encodeURI(keyword); } $.post("/book/addVisitCount", {"bookId": $("#bookIdHidden").val()}, function () { diff --git a/novel-front/src/main/resources/templates/mobile/book/bookclass.html b/novel-front/src/main/resources/templates/mobile/book/bookclass.html new file mode 100644 index 0000000..44f8800 --- /dev/null +++ b/novel-front/src/main/resources/templates/mobile/book/bookclass.html @@ -0,0 +1,463 @@ + + + + + +