feat: 完成首页修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user