diff --git a/novel-front/src/main/resources/templates/book/book_content.html b/novel-front/src/main/resources/templates/book/book_content.html index ef5c303..ec9505e 100644 --- a/novel-front/src/main/resources/templates/book/book_content.html +++ b/novel-front/src/main/resources/templates/book/book_content.html @@ -292,6 +292,9 @@ } } + + $.post("/book/addVisitCount", {"bookId": $("#bookId").val()}, function () { + }); diff --git a/novel-front/src/main/resources/templates/mobile/book/book_content.html b/novel-front/src/main/resources/templates/mobile/book/book_content.html index afee37f..d8095b2 100644 --- a/novel-front/src/main/resources/templates/mobile/book/book_content.html +++ b/novel-front/src/main/resources/templates/mobile/book/book_content.html @@ -175,8 +175,6 @@
@@ -318,7 +316,8 @@ } } - + $.post("/book/addVisitCount", {"bookId": $("#bookIdHidden").val()}, function () { + }); 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 9219929..e5b1496 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 @@ -292,7 +292,6 @@ - $.get("/book/addVisitCount",{"bookId":$("#bookIdHidden").val()},function(){}); function toMyCollect(){ var token = localStorage.getItem("token"); @@ -350,6 +349,9 @@ function searchBooks(keyword) { window.location.href = "/book/book_ranking.html?keyword=" + encodeURI(keyword); } + + $.post("/book/addVisitCount", {"bookId": $("#bookIdHidden").val()}, function () { + }); diff --git a/novel-front/src/main/resources/templates/mobile/book/book_ranking.html b/novel-front/src/main/resources/templates/mobile/book/book_ranking.html index 123f9d5..65e106b 100644 --- a/novel-front/src/main/resources/templates/mobile/book/book_ranking.html +++ b/novel-front/src/main/resources/templates/mobile/book/book_ranking.html @@ -196,7 +196,7 @@ " \n" + "
"+book.bookName+"
\n" + "
\n" + - "
"+book.score+"分
\n" + + "
\n" + " \n" + "
作者:"+book.authorName+"
\n" + "
\n" + diff --git a/novel-front/src/main/resources/templates/mobile/index.html b/novel-front/src/main/resources/templates/mobile/index.html index 948b3f8..5275fea 100644 --- a/novel-front/src/main/resources/templates/mobile/index.html +++ b/novel-front/src/main/resources/templates/mobile/index.html @@ -81,14 +81,14 @@
  • 排行
    -
    全部小说
    -
    玄幻小说
    -
    修真小说
    -
    都市小说
    -
    历史小说
    -
    网游小说
    -
    科幻小说
    -
    女频小说
    +
    全部小说
    +
    玄幻小说
    +
    修真小说
    +
    都市小说
    +
    历史小说
    +
    网游小说
    +
    科幻小说
    +
    女频小说
  • 书架
  • @@ -116,14 +116,14 @@
  • 小说排行
    -
    全部小说
    -
    玄幻小说
    -
    修真小说
    -
    都市小说
    -
    历史小说
    -
    网游小说
    -
    科幻小说
    -
    女频小说
    +
    全部小说
    +
    玄幻小说
    +
    修真小说
    +
    都市小说
    +
    历史小说
    +
    网游小说
    +
    科幻小说
    +
    女频小说
  • @@ -291,7 +291,7 @@ " \n" + "
    \n" + "
    "+hotRecBook.score+"分
    \n" + + " class=\"layui-col-xs2 layui-col-sm2 layui-col-md2 layui-col-lg2\">\n" + " \n" + " "); }