diff --git a/src/assets/images/midterm/前期准备引导1.png b/src/assets/images/midterm/前期准备引导1.png new file mode 100644 index 0000000..b7619fb Binary files /dev/null and b/src/assets/images/midterm/前期准备引导1.png differ diff --git a/src/views/midterm-shooting/equipment/index.vue b/src/views/midterm-shooting/equipment/index.vue index 7eb9111..979376b 100644 --- a/src/views/midterm-shooting/equipment/index.vue +++ b/src/views/midterm-shooting/equipment/index.vue @@ -24,7 +24,8 @@ - + --> + + + + @@ -41,21 +53,28 @@ import { getBackgroundImage, IMAGE_PATHS } from '@/utils' import { GuideSteps, GuideStepsItem } from '@/components/Guide' -import { ref } from 'vue' +import { ref, computed } from 'vue' +const steps = [ + { id: 'step1', content: '先认识 Vlog:点击右侧「1.vlog初识」继续' }, + { id: 'step2', content: '这是主要内容区域的边框' } +] +const stepIndex = ref(0) const hiddenbar = ref() const hiddenbarclick = () => { hiddenbar.value = !hiddenbar.value } - -const handleComplete = () => { - console.log('引导完成') +interface SimpleStep { + id: string + content: string } - -const handleSkip = () => { - console.log('跳过引导') +const handleStepChange = (_step: SimpleStep | null, index: number) => { + stepIndex.value = index } +const currentHighlight = computed(() => + stepIndex.value === 0 ? '.img-switch-item--vlog' : '.work-border' +) - diff --git a/src/views/prepare/index.vue b/src/views/prepare/index.vue index a9cc586..7345c5e 100644 --- a/src/views/prepare/index.vue +++ b/src/views/prepare/index.vue @@ -112,13 +112,18 @@ const handleStepChangeGui = (_step: SimpleStep | null, index: number) => { :highlight-padding="12" :highlight-radius="20" @step-change="handleStepChangeGui" - /> + > + + + +