feat:作业纸

This commit is contained in:
R524809
2026-10-23 16:53:22 +08:00
parent fe1074e3f0
commit 98dc338848
14 changed files with 757 additions and 247 deletions
+13
View File
@@ -279,6 +279,19 @@ Page({
this.setData({ heroSwiperCurrent: e.detail.current });
},
/** 指示点与手势共用 swiper current,单张内容不自动轮播。 */
onTapHeroDot(e: WechatMiniprogram.TouchEvent) {
const index = Number(e.currentTarget.dataset.index);
if (
this.data.loading ||
!Number.isInteger(index) ||
index < 0 ||
index >= this.data.featuredItems.length
)
return;
this.setData({ heroSwiperCurrent: index });
},
onTabChange(e: WechatMiniprogram.CustomEvent) {
const id = e.detail.id as string | undefined;
if (!id) return;