From c38da3abf161cf0df38eb9422f904ea2026945ac Mon Sep 17 00:00:00 2001
From: ca1e
Date: Fri, 3 Jan 2020 21:44:11 +0800
Subject: [PATCH] =?UTF-8?q?commit=20=E4=BF=AE=E6=94=B9web=E6=9C=8D?=
=?UTF-8?q?=E5=8A=A1=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3json=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E8=8E=B7=E5=8F=96=E6=A0=BC=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/src/main/assets/web/bookshelf.js | 28 +++++++++----------
app/src/main/assets/web/index.html | 1 +
.../app/ui/book/search/SearchViewModel.kt | 5 +---
3 files changed, 16 insertions(+), 18 deletions(-)
diff --git a/app/src/main/assets/web/bookshelf.js b/app/src/main/assets/web/bookshelf.js
index 22c8ff87e..c182f49fa 100644
--- a/app/src/main/assets/web/bookshelf.js
+++ b/app/src/main/assets/web/bookshelf.js
@@ -45,15 +45,15 @@ var init = () => {
books.forEach(book => {
let bookDiv = $c("div");
let img = $c("img");
- img.src = book.bookInfoBean.coverUrl || randomImg;
+ img.src = book.coverUrl || randomImg;
img.setAttribute("data-series-num", book.serialNumber);
bookDiv.appendChild(img);
bookDiv.innerHTML += `
-
`;
$('#books').appendChild(bookDiv);
});
@@ -62,19 +62,19 @@ var init = () => {
$('#allcontent').classList.add("read");
var book = books[bookImg.getAttribute("data-series-num")];
$("#info").innerHTML = `
-
- 书名: ${book.bookInfoBean.name}
- 作者: ${book.bookInfoBean.author}
- 阅读: ${book.durChapterName}
${formatTime(book.finalDate)}
- 更新: ${book.lastChapterName}
${formatTime(book.finalRefreshData)}
+ 来源: ${book.bookInfoBean.origin}
+ 书名: ${book.name}
+ 作者: ${book.author}
+ 阅读: ${book.durChapterTitle}
${formatTime(book.durChapterTime)}
+ 更新: ${book.latestChapterTitle}
${formatTime(book.latestChapterTime)}来源: ${book.origin}
来源:${book.bookInfoBean.origin}
-书名:${book.bookInfoBean.name}
-作者:${book.bookInfoBean.author}
+来源:${book.origin}
+书名:${book.name}
+作者:${book.author}
阅读章节:${book.durChapterName}
-阅读时间:${formatTime(book.finalDate)}
-最新章节:${book.lastChapterName}
-检查时间:${formatTime(book.finalRefreshData)}
- 简介:${book.bookInfoBean.introduce.trim().replace(/\n/g, "
")}
阅读时间:${formatTime(book.durChapterTime)}
+最新章节:${book.latestChapterTitle}
+检查时间:${formatTime(book.lastCheckTime)}
+ 简介:${book.intro.trim().replace(/\n/g, "
")}