feat: 对接各个视频数据

This commit is contained in:
zhongyidian committed 2025-12-30 19:42:47 +08:00
1 parent 6103453e32
commit 6ab98c4764
339 files changed
+17316 -1531

No files matched your search

+14 -17
View File
@@ -68,33 +68,28 @@ const onPrevModule = () => {
// 分类选择(保持原交互)
const onCategorySelect = (categoryName: string) => {
handleCategoryClick(categoryName)
sideStatus.value = false
// 如果已解锁(status=true),则不隐藏侧边栏;否则隐藏
sideStatus.value = status.value ? true : false
showSubIcons.value = false
selectedPrimaryIcon.value = null
}
// 返回按钮相关
const handleBackToMain = () => {
selectedCategory.value = ''
sideStatus.value = true
showSubIcons.value = false
selectedPrimaryIcon.value = null
}
const backButtonTooltip = computed(() => {
if (showSubIcons.value) return '返回上一步'
return selectedCategory.value ? '返回主视图' : '退出页面'
})
const handleClose = () => {
if (showSubIcons.value) {
showSubIcons.value = false
selectedPrimaryIcon.value = null
return
}
if (selectedCategory.value) {
handleBackToMain()
} else {
router.back()
}
// if (showSubIcons.value) {
// showSubIcons.value = false
// selectedPrimaryIcon.value = null
// return
// }
// if (selectedCategory.value) {
// handleBackToMain()
// } else {
router.back()
// }
}
// 知识卡片(本地维护)
@@ -276,10 +271,12 @@ const handleIconClick = (icon: string) => {
cursor: pointer;
align-items: flex-end;
}
.module-vertical .module-text {
writing-mode: vertical-rl;
text-orientation: upright;
}
.module-vertical .module-percent {
transform: translateY(6px);
}