|
@@ -87,9 +87,10 @@ const toggleDrawer = () => {
|
|
|
drawerVisible.value = !drawerVisible.value
|
|
drawerVisible.value = !drawerVisible.value
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// 返回上一页
|
|
// 返回上一页
|
|
|
const goBack = () => {
|
|
const goBack = () => {
|
|
|
- router.go(-1)
|
|
|
|
|
|
|
+ router.push('/home')
|
|
|
}
|
|
}
|
|
|
// 引入
|
|
// 引入
|
|
|
import NumberPeople00 from '@/assets/images/xiaozhi.png'
|
|
import NumberPeople00 from '@/assets/images/xiaozhi.png'
|
|
@@ -115,13 +116,13 @@ const navigateToAIQuestions = person => {
|
|
|
path: '/ai-questions',
|
|
path: '/ai-questions',
|
|
|
query: { id: person.id, name: person.name, image: person.image, message: person.message }
|
|
query: { id: person.id, name: person.name, image: person.image, message: person.message }
|
|
|
});
|
|
});
|
|
|
-};
|
|
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// 跳转智能问答
|
|
// 跳转智能问答
|
|
|
-const navigateToAI = (group) => {
|
|
|
|
|
|
|
+const navigateToAI = (group) => {
|
|
|
if (group.title === "智能问答") {
|
|
if (group.title === "智能问答") {
|
|
|
let person = { id: 10, name: '小智', image: NumberPeople00, message: '您好,我是您的AI智能助手小智,我会尽力回答您的问题或提供有用的建议!!!!' };
|
|
let person = { id: 10, name: '小智', image: NumberPeople00, message: '您好,我是您的AI智能助手小智,我会尽力回答您的问题或提供有用的建议!!!!' };
|
|
|
- router.push({
|
|
|
|
|
|
|
+ router.push({
|
|
|
// 跳转问答页面
|
|
// 跳转问答页面
|
|
|
path: '/ai-questions',
|
|
path: '/ai-questions',
|
|
|
query: { id: person.id, name: person.name, image: person.image, message: person.message }
|
|
query: { id: person.id, name: person.name, image: person.image, message: person.message }
|
|
@@ -130,6 +131,9 @@ const navigateToAI = (group) => {
|
|
|
if (group.title === "智能绘画") {
|
|
if (group.title === "智能绘画") {
|
|
|
router.push('/ai-painting')
|
|
router.push('/ai-painting')
|
|
|
}
|
|
}
|
|
|
|
|
+ if (group.title === '数字人老师') {
|
|
|
|
|
+ router.push('/ai-laboratory') // 添加跳转到AI实验室的逻辑
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 渲染侧边栏
|
|
// 渲染侧边栏
|
|
@@ -179,7 +183,7 @@ const groupList = ref([
|
|
|
to bottom,
|
|
to bottom,
|
|
|
#e2ddfc,
|
|
#e2ddfc,
|
|
|
#f1effd
|
|
#f1effd
|
|
|
- ); /* 设置悬停、聚焦、点击状态下的背景色 */
|
|
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.icon-expand {
|
|
.icon-expand {
|
|
@@ -187,7 +191,7 @@ const groupList = ref([
|
|
|
height: rpx(30);
|
|
height: rpx(30);
|
|
|
z-index: 9999;
|
|
z-index: 9999;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- cursor: pointer; // 添加鼠标指针样式
|
|
|
|
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
}
|
|
|
.icon-expand .el-icon {
|
|
.icon-expand .el-icon {
|
|
|
font-size: rpx(15);
|
|
font-size: rpx(15);
|
|
@@ -230,30 +234,37 @@ const groupList = ref([
|
|
|
color: white;
|
|
color: white;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.el-menu ::v-deep(.el-menu-item:hover),
|
|
|
|
|
-.el-menu ::v-deep(.el-menu-item:focus),
|
|
|
|
|
-.el-menu ::v-deep(.el-menu-item:active){
|
|
|
|
|
|
|
+.el-menu ::v-deep(.el-menu-item:hover){
|
|
|
background: linear-gradient(
|
|
background: linear-gradient(
|
|
|
to bottom,
|
|
to bottom,
|
|
|
#ffefb0,
|
|
#ffefb0,
|
|
|
#ffcc00
|
|
#ffcc00
|
|
|
- ); /* 设置悬停、聚焦、点击状态下的背景色 */
|
|
|
|
|
|
|
+ );
|
|
|
|
|
+ box-shadow: 0 8px 8px rgb(0, 0, 0, 0.3);
|
|
|
|
|
+ color: black;
|
|
|
|
|
+ font-size: rpx(8);
|
|
|
|
|
+}
|
|
|
|
|
+.el-menu-vertical-demo .el-menu-item.is-active {
|
|
|
|
|
+ background: linear-gradient(
|
|
|
|
|
+ to bottom,
|
|
|
|
|
+ #ffefb0,
|
|
|
|
|
+ #ffcc00
|
|
|
|
|
+ );
|
|
|
box-shadow: 0 8px 8px rgb(0, 0, 0, 0.3);
|
|
box-shadow: 0 8px 8px rgb(0, 0, 0, 0.3);
|
|
|
color: black;
|
|
color: black;
|
|
|
font-size: rpx(8);
|
|
font-size: rpx(8);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
// 右侧数字人内容
|
|
// 右侧数字人内容
|
|
|
.number-people {
|
|
.number-people {
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- flex-direction: column; /* 子元素上下排列 */
|
|
|
|
|
|
|
+ flex-direction: column;
|
|
|
background: linear-gradient(
|
|
background: linear-gradient(
|
|
|
to bottom,
|
|
to bottom,
|
|
|
#e2ddfc,
|
|
#e2ddfc,
|
|
|
#f1effd
|
|
#f1effd
|
|
|
- ); /* 设置悬停、聚焦、点击状态下的背景色 */
|
|
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
// 标题样式
|
|
// 标题样式
|
|
|
.title-box {
|
|
.title-box {
|