From 9b70e9139c94d2d7f195523ef4b8acc90dc125e7 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Wed, 12 Nov 2025 14:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 55c56764..eb7c6fac 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -75,7 +75,7 @@ -
+ @@ -1004,26 +1004,7 @@ export default { const currentElement = this.guidanceElements[this.currentStep - 1]; if (currentElement) { - const rect = currentElement.getBoundingClientRect(); - this.highlightStyle = { - top: `${rect.top}px`, - left: `${rect.left}px`, - width: `${rect.width}px`, - height: `${rect.height}px`, - }; - - // 滚动到可见区域 currentElement.scrollIntoView({ behavior: 'smooth', block: 'center' }); - // // 特殊处理录播课标签位置,避免被遮挡 - if (this.courseInfo.type === 20 && this.currentStep === 1) { - console.info('-- 特殊处理录播课标签位置 -- ') - this.highlightStyle = { - top: `252.513px`, - left: `${rect.left}px`, - width: `${rect.width}px`, - height: `${rect.height}px`, - }; - } } }, // 下一步 @@ -2002,7 +1983,9 @@ export default { max-width: 500px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); z-index: 10000; - top: 0%; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .guidance-title {