From 2062123edddf8f74ff35786a4a0dbea511a54dbf Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Sat, 14 Oct 2023 10:06:16 +0800 Subject: [PATCH] =?UTF-8?q?perf(mobile):=20=E5=8E=BB=E9=99=A4=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E7=BD=91=E7=AB=99=E5=BA=95=E9=83=A8=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E9=97=B4=E9=9A=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/mobile/book/book_content.html | 199 +++++++++--------- .../templates/mobile/book/book_ranking.html | 51 ++--- .../templates/mobile/common/css.html | 7 + .../templates/mobile/common/footer.html | 3 +- .../resources/templates/mobile/pay/index.html | 34 +-- .../templates/mobile/user/favorites.html | 45 ++-- .../templates/mobile/user/read_history.html | 5 + .../templates/mobile/user/userinfo.html | 2 +- 8 files changed, 190 insertions(+), 156 deletions(-) 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 c601880..d884013 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 @@ -12,18 +12,19 @@ th:content="${book.bookName}+'最新更新章节免费在线阅读TXT下载'"> -
@@ -160,6 +161,11 @@ text-align: center; } + #footer { + padding-top: 10px; + line-height: 43px; + } + @@ -167,88 +173,93 @@
- + - + - + - + - + - + -
+
-
- - -
- -
- - -
-
- - -

- 关灯 - 护眼     - 字体: -

- - -
-
-
-

     -

-
-
-
此章为VIP章节,需要订阅后才能继续阅读
- 价格:
- 购买 -
-
- 上一章 - 目录 - 下一章 +

+ 关灯 + 护眼     + 字体: +

+
-
+ 上一章 + 目录 + 下一章 +
+ +
+
+
+

     +

+
+
+
此章为VIP章节,需要订阅后才能继续阅读
+ 价格:
+ 购买 + +
+
+ + 上一章 + 目录 + 下一章 + +
@@ -265,15 +276,13 @@ var ipad = ua.match(/(iPad).*OS\s([\d_]+)/), - isIphone =!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/), + isIphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/), isAndroid = ua.match(/(Android)\s+([\d.]+)/), isMobile = isIphone || isAndroid; - - - \ No newline at end of file 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 bd43e17..1a938b3 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 @@ -61,6 +61,11 @@ width: 130px; height: 180px; } + + #footer { + padding-top: 10px; + line-height: 43px; + } @@ -128,18 +133,16 @@ var sortBy = getQueryVariable("sortBy"); var keyword = getQueryVariable("keyword"); - if(keyword != false){ + if (keyword != false) { $("#title").val(decodeURI(keyword)); - }else{ + } else { keyword = ""; } + search(1, 20); - search(1,20); - - function search(curr,limit) { - + function search(curr, limit) { var searchData = {}; @@ -149,21 +152,21 @@ keyword = $("#title").val(); - if(catId != false){ + if (catId != false) { searchData.catId = catId; } - if(bookStatus != false){ + if (bookStatus != false) { searchData.bookStatus = bookStatus; } - if(sortBy != false){ + if (sortBy != false) { searchData.sort = sortBy; - }else if(!keyword){ + } else if (!keyword) { sortBy = "last_index_update_time"; } - if(keyword){ + if (keyword) { searchData.keyword = keyword; } @@ -184,31 +187,31 @@ book.bookDesc = book.bookDesc.substring(0,end); }*/ - if(book.bookDesc){ - book.bookDesc = book.bookDesc.replace(/<[^>]+>/g,"").replace(/\s+/g,"").replace(/ /g,""); + if (book.bookDesc) { + book.bookDesc = book.bookDesc.replace(/<[^>]+>/g, "").replace(/\s+/g, "").replace(/ /g, ""); } bookListHtml += ("
\n" + - " \n" + + " \n" + "
\n" + " \n" + + " src=\"" + book.picUrl + "\"/>\n" + "\n" + "
\n" + "
\n" + "
\n" + - " \n" + - "
"+book.bookName+"
\n" + + "
\n" + + "
" + book.bookName + "
\n" + "
\n" + "
\n" + - " \n" + - "
作者:"+book.authorName+"
\n" + + "
\n" + + "
作者:" + book.authorName + "
\n" + "
\n" + - "
类别:"+book.catName+"
\n" + - "
状态:"+(book.bookStatus==0?'连载':'完结')+"
\n" + - "
更新:"+book.lastIndexUpdateTime.substr(0,11)+"\n" + + "
类别:" + book.catName + "
\n" + + "
状态:" + (book.bookStatus == 0 ? '连载' : '完结') + "
\n" + + "
更新:" + book.lastIndexUpdateTime.substr(0, 11) + "\n" + "
\n" + - "
简介:"+(book.bookDesc?(book.bookDesc.length>15?(book.bookDesc.substr(0,15)+"..."):book.bookDesc):book.bookDesc)+"
\n" + + "
简介:" + (book.bookDesc ? (book.bookDesc.length > 15 ? (book.bookDesc.substr(0, 15) + "...") : book.bookDesc) : book.bookDesc) + "
\n" + "\n" + "\n" + "
\n" + @@ -304,8 +307,6 @@ - \ No newline at end of file diff --git a/novel-front/src/main/resources/templates/mobile/user/favorites.html b/novel-front/src/main/resources/templates/mobile/user/favorites.html index aba0bda..d4de323 100644 --- a/novel-front/src/main/resources/templates/mobile/user/favorites.html +++ b/novel-front/src/main/resources/templates/mobile/user/favorites.html @@ -61,6 +61,11 @@ width: 130px; height: 180px; } + + #footer { + padding-top: 10px; + line-height: 43px; + } @@ -90,13 +95,13 @@
-
+
-
+
-
+
@@ -108,17 +113,17 @@