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 @@ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ 小说列表 +
+ +
+
+ +
+
+ +
+ +
+
+ +
+
+ +
+
+
+

小说筛选

+
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+ + +
+ + +
+ + +
+
+ + + + +
+ + + + + + \ No newline at end of file diff --git a/novel-front/src/main/resources/templates/mobile/index.html b/novel-front/src/main/resources/templates/mobile/index.html index 799ca61..af59ebd 100644 --- a/novel-front/src/main/resources/templates/mobile/index.html +++ b/novel-front/src/main/resources/templates/mobile/index.html @@ -281,12 +281,12 @@ function moreNewBooks(event) { - window.location.href = "/book/book_ranking.html?sortBy=last_index_update_time"; + window.location.href = "/book/bookclass.html?sortBy=last_index_update_time"; } function searchBooks() { var keywords = $("#title").val(); - window.location.href = "/book/book_ranking.html?keyword=" + encodeURI(keywords); + window.location.href = "/book/bookclass.html?keyword=" + encodeURI(keywords); } function toMyCollect() {