feat: 完成首页修改

This commit is contained in:
R524809
2026-04-30 18:02:11 +08:00
parent 44182d011d
commit 50394154f7
3 changed files with 89 additions and 54 deletions
+5
View File
@@ -145,6 +145,7 @@ Page({
activeTab: 'all',
ageBands: [] as HomeAgeBandView[],
activeAgeBand: '3-4' as AgeBandKey,
heroSwiperCurrent: 0,
featuredItems: SKELETON_FEATURED,
hotRecommends: SKELETON_HOT,
sections: [] as HomeDisplaySectionView[],
@@ -197,6 +198,10 @@ Page({
// ── Tab & Navigation ──
onHeroSwiperChange(e: WechatMiniprogram.SwiperChange) {
this.setData({ heroSwiperCurrent: e.detail.current });
},
onTabChange(e: WechatMiniprogram.CustomEvent) {
const id = e.detail.id as string | undefined;
if (!id) return;