feat: 新增控笔练习,增加首页公告

This commit is contained in:
R524809
2026-05-29 10:21:39 +08:00
parent 2f0c4ab591
commit a6e8f4df02
28 changed files with 1045 additions and 672 deletions
+8
View File
@@ -6,6 +6,7 @@ import {
} from '../../utils/index';
import {
HOME_DAILY_CHECKIN_ITEMS,
HOME_NOTICES,
createEmptyHomeDataset,
type HomeDisplayItem,
type HomeDisplaySection,
@@ -190,6 +191,7 @@ Page({
hotRecommends: SKELETON_HOT,
dailyCheckinItems: HOME_DAILY_CHECKIN_ITEMS.map(toItemView),
sections: [] as HomeDisplaySectionView[],
notices: HOME_NOTICES,
loading: true,
},
@@ -295,6 +297,12 @@ Page({
navigateByPath(path, title);
},
onTapNotice(e: WechatMiniprogram.TouchEvent) {
const path = e.currentTarget.dataset.path as string | undefined;
if (!path) return;
navigateByPath(path);
},
onTapCard(e: WechatMiniprogram.CustomEvent) {
const detail = (e.detail || {}) as { title?: string; path?: string };
const path =