|
|
@@ -53,7 +53,7 @@
|
|
|
<div class="inner-box left-box">
|
|
|
<div class="box-icon" @click="goBack">
|
|
|
<el-icon class="left-icon"><ArrowLeftBold /></el-icon>
|
|
|
- {{ pageTitle }}
|
|
|
+ {{ pageTitle}}
|
|
|
</div>
|
|
|
<div class="dropdown-box">
|
|
|
<!-- 下拉菜单 -->
|
|
|
@@ -201,10 +201,17 @@ const courseTitles = computed(() => {
|
|
|
return Array.from({ length: 8 }, (_, i) => getCourseTitle(i + 1))
|
|
|
})
|
|
|
|
|
|
+ // 首页点击渲染后的页面title
|
|
|
+const pageTitle = ref('')
|
|
|
onMounted(() => {
|
|
|
fetchCtTypes()
|
|
|
+ const title = router.currentRoute.value.query.title
|
|
|
+ if (title) {
|
|
|
+ pageTitle.value = title
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
+
|
|
|
import { Message } from '@/utils/message/Message.js'
|
|
|
|
|
|
// 搜索框
|
|
|
@@ -216,6 +223,8 @@ const filteredTitles = computed(() => {
|
|
|
}
|
|
|
return courseTitles.filter(title => title.includes(SearchInput.value))
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
// 添加按钮显示状态
|
|
|
const buttonVisible = ref(false)
|
|
|
|
|
|
@@ -223,8 +232,6 @@ const goBack = () => {
|
|
|
router.go(-1) // 返回上一页
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
const goToAIExperience = outlineData => {
|
|
|
|
|
|
if (outlineData.ctTypeSort === 2) {
|
|
|
@@ -239,16 +246,6 @@ const goToAIExperience = outlineData => {
|
|
|
Message().notifyWarning(localStorage.getItem('userName') === "aiTest" ? '您的账号并未开放此课程!' : '演示版未开放此课程!', true)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-// 首页点击渲染后的页面title
|
|
|
-const pageTitle = ref('')
|
|
|
-onMounted(() => {
|
|
|
- const title = router.currentRoute.value.query.title
|
|
|
- if (title) {
|
|
|
- pageTitle.value = title
|
|
|
- }
|
|
|
-})
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -441,7 +438,7 @@ onMounted(() => {
|
|
|
flex: 0.6;
|
|
|
display: flex; // 添加 flex 布局
|
|
|
align-items: center; // 垂直居中
|
|
|
- color: bl; // 设置图标颜色为白色
|
|
|
+ color: black; // 设置图标颜色为白色
|
|
|
padding-left: rpx(15);
|
|
|
font-size: rpx(10); // 设置图标大小,可按需调整
|
|
|
cursor: pointer; // 添加鼠标指针样式
|