feat: 联调对话功能

This commit is contained in:
王天骄
2026-06-09 17:00:23 +08:00
parent 3414d0662c
commit 2192b855a1
77 changed files with 1082 additions and 487 deletions
@@ -3,7 +3,7 @@
<view class="learning-shell">
<view class="assistant-header">
<view class="header-left">
<button class="icon-button" aria-label="返回" @click="emit('go-home')">
<button class="icon-button" aria-label="返回" @click="goHome">
<view class="history-icon"></view>
</button>
<text class="page-title">AI 学习助手</text>
@@ -167,6 +167,7 @@
<script setup lang="ts">
import { nextTick, onMounted, onUnmounted, ref } from 'vue'
import { createHomeNavigator } from '../../api/navigation'
type AssistantMessage = {
id: string
@@ -181,6 +182,8 @@ const emit = defineEmits<{
(event: 'open-profile'): void
}>()
const goHome = createHomeNavigator(emit)
const quickActions = ['更新指南', '风险评估量表', '药理学详情', '病例研讨']
const pathwaySteps = [
@@ -263,10 +266,6 @@ function showToast(message: string) {
if (toastTimer) clearTimeout(toastTimer)
toastMessage.value = message
toastVisible.value = true
uni.showToast({
title: message,
icon: 'none'
})
toastTimer = setTimeout(() => {
toastVisible.value = false
}, 1800)