diff --git a/src/components/t-pool.vue b/src/components/t-pool.vue
new file mode 100644
index 00000000..839466dd
--- /dev/null
+++ b/src/components/t-pool.vue
@@ -0,0 +1,204 @@
+
+
+
+ 限时祈愿
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![cover]()
+
+
+
+
![character]()
+
+
+
+ {{ poolTimeGet[pool.post_id] }}
+
+
+
+
+
+ mdi-calendar-clock
+ {{ pool.time.start }}~{{ pool.time.end }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/t-position.vue b/src/components/t-position.vue
index c39d75e9..f7fcf39c 100644
--- a/src/components/t-position.vue
+++ b/src/components/t-position.vue
@@ -4,7 +4,10 @@
近期活动
-
+
+
+
+
// vue
import { ref, onMounted } from "vue";
+import TLoading from "./t-loading.vue";
import { useRouter } from "vue-router";
// utils
import { createTGWindow } from "../utils/TGWindow";
@@ -57,6 +61,8 @@ import { Map } from "../interface/Base";
// loading
const loading = ref(true as boolean);
+const loadingTitle = ref("正在加载近期活动");
+const loadingEmpty = ref(false as boolean);
// 数据
const positionCards = ref([] as PositionCard[]);
@@ -66,7 +72,15 @@ const router = useRouter();
onMounted(async () => {
try {
+ loadingTitle.value = "正在获取近期活动数据";
const positionData = await MysOper.Position.get();
+ if (!positionData) {
+ loadingEmpty.value = true;
+ loadingTitle.value = "暂无近期活动";
+ return;
+ }
+ loadingEmpty.value = false;
+ loadingTitle.value = "正在渲染近期活动";
positionCards.value = MysOper.Position.card(positionData);
positionCards.value.forEach(card => {
positionTimeGet.value[card.post_id] = getLastPositionTime(card.time.end_stamp - Date.now());
@@ -105,13 +119,13 @@ async function toPost(card: PositionCard) {
},
}).href;
// 打开新窗口
- createTGWindow(path, "祈愿", card.title, 960, 720, false);
+ createTGWindow(path, "近期活动", card.title, 960, 720, false);
}
diff --git a/src/pages/Home.vue b/src/pages/Home.vue
index c9e8e3c8..4280b79c 100644
--- a/src/pages/Home.vue
+++ b/src/pages/Home.vue
@@ -1,203 +1,10 @@
-
-
-
-
-
-
- 暂无卡池信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![cover]()
-
-
-
-
![character]()
-
-
-
- {{ poolTimeGet[pool.post_id] }}
-
-
-
-
- {{ pool.subtitle }}
-
-
- mdi-calendar-clock
- {{ pool.time.start }}~{{ pool.time.end }}
-
-
-
-
-
-
+
+
-
-