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 @@ + + + + + +