mdi-bullhorn
@@ -46,7 +46,7 @@
-
+
已加载:{{ rawData[value].lastId }},加载更多
@@ -149,6 +149,7 @@ async function firstLoad(key: NewsKey, refresh: boolean = false): Promise
rawData.value[key].lastId = 0;
}
showLoading.start(`正在获取${gameName}${rawData.value[key].name}数据...`);
+ document.documentElement.scrollTo({ top: 0, behavior: "smooth" });
const getData = await Mys.Painter.getNewsList(gid, NewsType[key]);
rawData.value[key].isLast = getData.is_last;
rawData.value[key].lastId = getData.list.length;
@@ -207,7 +208,7 @@ async function searchPost(): Promise {
font-family: var(--font-title);
}
-.news-top-btn {
+.post-news-btn {
height: 40px;
margin-left: 15px;
background: var(--btn-bg-1);
@@ -215,7 +216,7 @@ async function searchPost(): Promise {
font-family: var(--font-title);
}
-.dark .news-top-btn {
+.dark .post-news-btn {
border: 1px solid var(--common-shadow-2);
}
diff --git a/src/pages/common/PostForum.vue b/src/pages/common/PostForum.vue
index 98ab90dd..4ab7ba19 100644
--- a/src/pages/common/PostForum.vue
+++ b/src/pages/common/PostForum.vue
@@ -45,7 +45,7 @@
@click:append="searchPost"
@keyup.enter="searchPost"
/>
-
+
mdi-refresh
刷新
@@ -59,6 +59,11 @@
+
+
+ 已加载:{{ posts.length }},加载更多
+
+