feat: 联调登录+对话

This commit is contained in:
王天骄
2026-06-05 15:27:29 +08:00
parent 69c6a2969c
commit d962ab98f5
55 changed files with 526 additions and 93 deletions
+5 -2
View File
@@ -2,7 +2,7 @@
<MatchingPage
v-if="showMatchingPage"
@open-settings="emit('open-settings')"
@open-profile="emit('open-profile')"
@open-profile="openProfile"
@go-home="showMatchingPage = false"
/>
<view v-else class="home-page">
@@ -12,7 +12,7 @@
<view class="settings-icon"></view>
</button>
<view class="top-spacer"></view>
<button class="icon-button" aria-label="个人中心" @click="emit('open-profile')">
<button class="icon-button" aria-label="个人中心" @click="openProfile">
<view class="account-icon"></view>
</button>
</view>
@@ -49,6 +49,7 @@
<script setup lang="ts">
import { onMounted, onUnmounted, reactive, ref } from 'vue'
import { fetchHomeSummary, startTrainingSession, type HomeSummary } from '../../api/home'
import { createProfileOpener } from '../../api/navigation'
import MatchingPage from '../matching/matching.vue'
const emit = defineEmits<{
@@ -56,6 +57,8 @@ const emit = defineEmits<{
(event: 'open-profile'): void
}>()
const openProfile = createProfileOpener(emit)
const summary = reactive<HomeSummary>({
greeting: '下午好,医生。',
highlight: '让我们继续提升您的临床思维能力吧。',