This commit is contained in:
Default
2025-04-15 21:16:14 +08:00
parent 694d5fd14c
commit d19ea97481
47 changed files with 907 additions and 769 deletions

View File

@@ -76,19 +76,19 @@
{volist name="arrRecommendEndNovel" id="Novel" key="key"}
{$arrGRM[$key]|raw}
<li>
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[og_novel_pin_yin]"/}'
title="{$Novel.og_novel_book_name ?? ''}">
<img src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.og_novel_book_name ?? ''}">
<a href='{$strPcPath}{site:nurl n_id="$Novel[n_id]" n_py="$Novel[n_name_pinyin]"/}'
title="{$Novel.n_name ?? ''}">
<img src="{$Novel.n_cover_path ?? ''}" alt="{$Novel.n_name ?? ''}">
</a>
<p>
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->og_novel_pin_yin"/}'>
<span class="bookName other">{$Novel.og_novel_book_name ?? ''}</span>
<a href='{$strPcPath}{site:nurl n_id="$Novel->n_id" n_py="$Novel->n_name_pinyin"/}'>
<span class="bookName other">{$Novel.n_name ?? ''}</span>
</a>
<a href='{$strPcPath}{site:souurl key="$Novel[og_novel_author]" p="1"/}'>
<span class="bookStatus other">{$Novel->og_novel_author ?? ''}</span>
<a href='{$strPcPath}{site:souurl key="$Novel[n_author]" p="1"/}'>
<span class="bookStatus other">{$Novel->n_author ?? ''}</span>
</a>
<span class="bookBrief">
{$Novel.og_description ?? ''}</span>
{$Novel.n_description ?? ''}</span>
</p>
</li>
{/volist}
@@ -125,31 +125,31 @@
const DomBookshelfContainer = document.getElementById('bookshelf-ul');
DomBookshelfContainer.innerHTML = ''
arrBookshelf.forEach(book => {
let strNovelUrl = formatNovelUrl(book.og_novel_pin_yin, book.n_id)
let strNovelChapterUrl = formatNovelChapterUrl(book.og_novel_pin_yin, book.n_id, book.c_sort_num)
let strSearchUrl = formatSearchUrl(book.og_novel_author, 1)
let strNovelUrl = formatNovelUrl(book.n_name_pinyin, book.n_id)
let strNovelChapterUrl = formatNovelChapterUrl(book.n_name_pinyin, book.n_id, book.c_sort_num)
let strSearchUrl = formatSearchUrl(book.n_author, 1)
const bookElement = document.createElement('li');
if (isMobile()) {
bookElement.innerHTML = `
<a href="${strNovelUrl}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<a href="${strNovelUrl}" alt="${book.n_name}" title="${book.n_name}">
<img src="${book.n_cover_path}">
</a>
<p>
<a href="${strNovelUrl}" >
<span class="bookName">${book.og_novel_book_name}</span>
<span class="bookName">${book.n_name}</span>
</a>
<span class="bookStatus">
<b class="authorSt"><em>${book.og_novel_status}</em>
<b class="authorSt"><em>${book.n_status}</em>
<a href='${strSearchUrl}'>
<em class="none">${book.og_novel_author}</em>
<em class="none">${book.n_author}</em>
</a>
</b>
<b class="authorSt chapterSt">
<a href="${strNovelChapterUrl}" >
<em class="ct">${book.c_name}</em>
</a>
<em class="time">${book.og_novel_update_time}</em></b>
<em class="time">${book.n_update_time}</em></b>
</span>
<a href="${strNovelChapterUrl}" >
<i class="goon">阅读</i>
@@ -158,24 +158,24 @@
`;
} else {
bookElement.innerHTML = `
<a href="${strPcPath}${strNovelUrl}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<a href="${strPcPath}${strNovelUrl}" alt="${book.n_name}" title="${book.n_name}">
<img src="${book.n_cover_path}">
</a>
<p>
<a href="${strPcPath}${strNovelUrl}" >
<span class="bookName">${book.og_novel_book_name}</span>
<span class="bookName">${book.n_name}</span>
</a>
<span class="bookStatus">
<b class="authorSt"><em>${book.og_novel_status}</em>
<b class="authorSt"><em>${book.n_status}</em>
<a href='${strPcPath}${strSearchUrl}'>
<em class="none">${book.og_novel_author}</em>
<em class="none">${book.n_author}</em>
</a>
</b>
<b class="authorSt chapterSt">
<a href="${strPcPath}${strNovelChapterUrl}" >
<em class="ct">${book.c_name}</em>
</a>
<em class="time">${book.og_novel_update_time}</em></b>
<em class="time">${book.n_update_time}</em></b>
</span>
<a href="${strPcPath}${strNovelChapterUrl}" >
<i class="goon">阅读</i>
@@ -203,30 +203,30 @@
const DomBookshelfContainer = document.getElementById('history-ul');
DomBookshelfContainer.innerHTML = ''
arrBookshelf.forEach(book => {
let strNovelUrl = formatNovelUrl(book.og_novel_pin_yin, book.n_id)
let strNovelChapterUrl = formatNovelChapterUrl(book.og_novel_pin_yin, book.n_id, book.c_sort_num)
let strSearchUrl = formatSearchUrl(book.og_novel_author, 1)
let strNovelUrl = formatNovelUrl(book.n_name_pinyin, book.n_id)
let strNovelChapterUrl = formatNovelChapterUrl(book.n_name_pinyin, book.n_id, book.c_sort_num)
let strSearchUrl = formatSearchUrl(book.n_author, 1)
const bookElement = document.createElement('li');
if (isMobile()) {
bookElement.innerHTML = `
<a href="${strNovelUrl}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<a href="${strNovelUrl}" alt="${book.n_name}" title="${book.n_name}">
<img src="${book.n_cover_path}">
</a>
<p>
<a href="${strNovelUrl}" >
<span class="bookName">${book.og_novel_book_name}</span>
<span class="bookName">${book.n_name}</span>
</a>
<span class="bookStatus">
<b class="authorSt"><em>${book.og_novel_status}</em>
<b class="authorSt"><em>${book.n_status}</em>
<a href='${strSearchUrl}'>
<em class="none">${book.og_novel_author}</em>
<em class="none">${book.n_author}</em>
</a>
</b>
<b class="authorSt chapterSt">
<a href="${strNovelChapterUrl}" >
<em class="ct">${book.c_name}</em>
</a>
<em class="time">${book.og_novel_update_time}</em></b>
<em class="time">${book.n_update_time}</em></b>
</span>
<a href="${strNovelChapterUrl}" >
<i class="goon">阅读</i>
@@ -235,24 +235,24 @@
`;
} else {
bookElement.innerHTML = `
<a href="${strPcPath}${strNovelUrl}" alt="${book.og_novel_book_name}" title="${book.og_novel_book_name}">
<a href="${strPcPath}${strNovelUrl}" alt="${book.n_name}" title="${book.n_name}">
<img src="${book.n_cover_path}">
</a>
<p>
<a href="${strPcPath}${strNovelUrl}" >
<span class="bookName">${book.og_novel_book_name}</span>
<span class="bookName">${book.n_name}</span>
</a>
<span class="bookStatus">
<b class="authorSt"><em>${book.og_novel_status}</em>
<b class="authorSt"><em>${book.n_status}</em>
<a href='${strSearchUrl}'>
<em class="none">${book.og_novel_author}</em>
<em class="none">${book.n_author}</em>
</a>
</b>
<b class="authorSt chapterSt">
<a href="${strPcPath}${strNovelChapterUrl}" >
<em class="ct">${book.c_name}</em>
</a>
<em class="time">${book.og_novel_update_time}</em></b>
<em class="time">${book.n_update_time}</em></b>
</span>
<a href="${strPcPath}${strNovelChapterUrl}" >
<i class="goon">阅读</i>