forked from zhongyidian/super_video
feat: 完善访谈与vlog模块页面,重组设备与图片公共资源,新增音频管理与一班对接工具
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
c4c9be9d35
commit
fc9633f371
159 files changed
+4823
-2535
No files matched your search
@@ -22,7 +22,20 @@ const playing = ref(false)
|
||||
const status = ref(false)
|
||||
|
||||
//引导步骤
|
||||
const steps = ref([
|
||||
const ideaSteps = [
|
||||
{
|
||||
id: 'idea-step1',
|
||||
content: '一条优秀的 Vlog,往往不是记录"大事",而是认真记录生活里的小事。',
|
||||
audioSrc: getPublicPath('audio/py_2_004.MP3')
|
||||
},
|
||||
{
|
||||
id: 'idea-step2',
|
||||
content: '试着把刚才学到的方法用起来,你会发现,原来平凡的日子里,也藏着许多值得被记录的瞬间。',
|
||||
audioSrc: getPublicPath('audio/py_2_005.MP3')
|
||||
}
|
||||
]
|
||||
|
||||
const steps = ref<{ id: string; content: string; audioSrc?: string }[]>([
|
||||
{
|
||||
id: 'step1',
|
||||
content: '试着用这些方法记录身边的小事,你会发现,原来平凡的日子里有这么多值得捕捉的瞬间。'
|
||||
@@ -83,13 +96,13 @@ const handleVideoChange = () => {
|
||||
currentVideoIndex.value++
|
||||
currentNavigationStep.value = currentVideoIndex.value
|
||||
} else {
|
||||
status.value = true
|
||||
steps.value = [
|
||||
{
|
||||
id: 'step1',
|
||||
content: '恭喜你,已完成专业剖析的学习,点击【查看脚本】回顾视频脚本吧!'
|
||||
}
|
||||
]
|
||||
// status.value = true
|
||||
// steps.value = [
|
||||
// {
|
||||
// id: 'step1',
|
||||
// content: '恭喜你,已完成专业剖析的学习,点击【查看脚本】回顾视频脚本吧!'
|
||||
// }
|
||||
// ]
|
||||
return
|
||||
}
|
||||
nextTick(() => {
|
||||
@@ -99,6 +112,14 @@ const handleVideoChange = () => {
|
||||
}
|
||||
|
||||
const handleClose = () => {
|
||||
if (key.value === 'idea') {
|
||||
if (vlog.vlogUnlockProgress === 0) vlog.setVlogUnlockProgress(1)
|
||||
router.push({
|
||||
name: 'Vlog',
|
||||
query: { guide: 'return' }
|
||||
})
|
||||
return
|
||||
}
|
||||
router.back()
|
||||
}
|
||||
|
||||
@@ -106,10 +127,6 @@ const image = computed(() => route.query.image as string)
|
||||
const key = computed(() => route.query.key as string)
|
||||
const label = computed(() => route.query.label as string)
|
||||
|
||||
const handleClick = () => {}
|
||||
|
||||
const handlePlay = () => {}
|
||||
|
||||
// 示例:简单锚点配置(可按需替换为真实题目数据)
|
||||
// const anchors = ref([
|
||||
// {
|
||||
@@ -130,12 +147,7 @@ const handleComplete = () => {
|
||||
if (key.value === 'profession') {
|
||||
if (!vlog.isVlogUnlock) vlog.setIsVlogUnlock(true)
|
||||
router.push({
|
||||
name: 'Work'
|
||||
})
|
||||
} else {
|
||||
if (vlog.vlogUnlockProgress == 0) vlog.setVlogUnlockProgress(1)
|
||||
router.push({
|
||||
name: 'Vlog'
|
||||
name: 'VlogWork'
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -155,6 +167,7 @@ const handleStepNavigationClose = () => {
|
||||
|
||||
onMounted(() => {
|
||||
if (key.value === 'idea') {
|
||||
steps.value = ideaSteps
|
||||
status.value = true
|
||||
}
|
||||
})
|
||||
@@ -212,7 +225,6 @@ onMounted(() => {
|
||||
:controls="true"
|
||||
:hideNativeControls="true"
|
||||
:anchors="[]"
|
||||
@play="handlePlay"
|
||||
@ended="onEnded"
|
||||
>
|
||||
<!-- <template #anchor="{ anchor, resume, unmute }">
|
||||
|
||||
Reference in new issue
Block a user