fix: avator ,pve

This commit is contained in:
zzc
2026-01-23 09:44:42 +08:00
parent adde98c05c
commit accbc888bc
2 changed files with 124 additions and 6 deletions

View File

@@ -139,9 +139,25 @@ const updateCountdown = () => {
};
const todayDate = ref("");
const dailyGreeting = ref(
const dailyGreeting = ref("");
const inspirationList = [
"岁岁常欢愉,年年皆胜意。愿你新的一年,多喜乐,长安宁。",
);
"新的一年,愿日子如熹光,温柔又安详。你我赤诚且勇敢,欣喜也在望。",
"祝你:百事无忌,平安喜乐。万事胜意,得偿所愿。",
"凡是过往皆为序章。愿2026年烟火向星辰所愿皆成真。",
"愿新的一年,仍有阳光满路,温暖如初。",
"辞暮尔尔,烟火年年。朝朝暮暮,岁岁平安。",
"愿你即使单枪匹马,也能勇敢无畏。新的一年,万事尽可期待。",
"所求皆如愿,所行化坦途。多喜乐,长安宁。",
"愿你手握山河,且行且歌。新年快乐,万事大吉。",
"长路浩浩荡荡,万物尽可期待。祝你新年好运。",
"何其有幸,年岁并进。新的一年,愿你快乐,不止新年。",
"愿新年,胜旧年。无病无灾,岁岁平安。",
"烟火起,照人间,举杯敬此年。烟花落,看人间,家家户户皆团圆。",
"家人闲坐,灯火可亲。新年伊始,喜乐安宁。",
"愿今年所有的遗憾,都是明年惊喜的铺垫。",
];
const copyGreeting = () => {
uni.setClipboardData({
@@ -163,6 +179,15 @@ onMounted(() => {
updateCountdown();
const date = new Date();
todayDate.value = `${date.getMonth() + 1}${date.getDate()}`;
// Daily Inspiration Logic
const startOfYear = new Date(date.getFullYear(), 0, 0);
const diff = date - startOfYear;
const oneDay = 1000 * 60 * 60 * 24;
const dayOfYear = Math.floor(diff / oneDay);
const index = dayOfYear % inspirationList.length;
dailyGreeting.value = inspirationList[index];
});
const features = ref([