diff --git a/page-douban.php b/page-douban.php
index a2c34d4..8dea53f 100644
--- a/page-douban.php
+++ b/page-douban.php
@@ -42,14 +42,12 @@ class APIHandler {
this.token = token;
this._create();
}
-
on(event, selector, handler) {
const elements = document.querySelectorAll(selector);
elements.forEach(element => {
element.addEventListener(event, handler);
});
}
-
_fetchGenres() {
document.querySelector(".db--genres").innerHTML = "";
fetch(`${this.baseAPI}genres?token=${this.token}&type=${this.type}`)
@@ -61,7 +59,6 @@ class APIHandler {
}
});
}
-
_handleGenreClick() {
this.on("click", ".db--genreItem", event => {
const target = event.currentTarget;
@@ -85,14 +82,12 @@ class APIHandler {
this._fetchData();
});
}
-
_renderGenre() {
document.querySelector(".db--genres").innerHTML = this.genre_list.map(genre =>
`
${genre.name}`
).join("");
this._handleGenreClick();
}
-
_fetchData() {
fetch(`${this.baseAPI}faves?token=${this.token}&type=${this.type}&paged=${this.paged}&genre=${JSON.stringify(this.genre)}`)
.then(response => response.json())
@@ -127,7 +122,6 @@ class APIHandler {
}
return result;
}, {});
-
let html = ``;
for (let key in result) {
const date = key.split("-");
@@ -156,7 +150,6 @@ class APIHandler {
}
document.querySelector(".db--list").innerHTML = html;
}
-
_renderListTemplate() {
document.querySelector(".db--list").innerHTML = this.subjects.map(subject =>
`
@@ -173,7 +166,6 @@ class APIHandler {
`
).join("");
}
-
_handleScroll() {
window.addEventListener("scroll", () => {
const scrollY = window.scrollY || window.pageYOffset;
@@ -185,7 +177,6 @@ class APIHandler {
}
});
}
-
_handleNavClick() {
this.on("click", ".db--navItem", event => {
if (event.currentTarget.classList.contains("current")) return;
@@ -207,7 +198,6 @@ class APIHandler {
this._fetchData();
});
}
-
_create() {
if (document.querySelector(".db--container")) {
const container = document.querySelector(".db--container");
@@ -273,7 +263,6 @@ class APIHandler {
});
}
}
-
_fetchCollection(collection) {
const style = collection.dataset.style ? collection.dataset.style : "card";
fetch(`${this.baseAPI}v1/movies?type=${collection.dataset.type}&paged=1&genre=&start_time=${collection.dataset.start}&end_time=${collection.dataset.end}`)
@@ -339,7 +328,6 @@ class APIHandler {
});
}
}
-
// 在页面加载完成后实例化APIHandler类
document.addEventListener("DOMContentLoaded", () => {
const token = "options->doubanID() ?>"; // 替换为你的API令牌
diff --git a/page-goods.php b/page-goods.php
new file mode 100644
index 0000000..1030597
--- /dev/null
+++ b/page-goods.php
@@ -0,0 +1,54 @@
+
+need('header.php'); ?>
+
+
title() ?>
+
content(); ?>
+
+
+
+need('footer.php'); ?>
+
diff --git a/page-links.php b/page-links.php
index bd46892..023b8a2 100644
--- a/page-links.php
+++ b/page-links.php
@@ -9,9 +9,8 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
-
content(); ?>
@@ -30,5 +29,4 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
-
-need('footer.php'); ?>
+need('footer.php'); ?>
\ No newline at end of file
diff --git a/page-memos.php b/page-memos.php
index f2598f3..1643ae2 100644
--- a/page-memos.php
+++ b/page-memos.php
@@ -9,7 +9,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
`;
});
-
document.getElementById('talk').innerHTML = html;
})
.catch(error => {
console.error('Error:', error);
// 这里可以添加一些用户提示错误发生的 HTML 更新
});
-
// 页面内容格式化
function Format(item) {
let date = getTime(new Date(item.createdTs * 1000).toString()),
@@ -144,7 +142,6 @@ div p a {
grid-template-columns: repeat(2, 1fr); /* 修改为两列 */
}
}
-
/* 当屏幕宽度小于400px时 */
@media (max-width: 400px) {
.resimg {
diff --git a/page-tags.php b/page-tags.php
index c2fdc53..7bba9b7 100644
--- a/page-tags.php
+++ b/page-tags.php
@@ -9,6 +9,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
widget('Widget_Metas_Tag_Cloud', 'sort=mid&ignoreZeroCount=1&desc=0')->to($tags); ?>
@@ -24,6 +25,5 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
-
need('footer.php'); ?>
\ No newline at end of file
diff --git a/page.php b/page.php
index 085a626..3828bda 100644
--- a/page.php
+++ b/page.php
@@ -8,7 +8,6 @@
content(); ?>
-
allow('comment')): ?>
need('comments.php'); ?>
diff --git a/post.php b/post.php
index 528920e..d2e2d4f 100644
--- a/post.php
+++ b/post.php
@@ -133,12 +133,12 @@
options->showrelated): ?>
need('related.php'); ?>
-
- allow('comment')): ?>
- need('comments.php'); ?>
-
-
-options->twikoo(); ?>
+
+ options->twikoo): ?>
+ options->twikoo(); ?>
+
+ need('comments.php'); ?>
+