feat: 联调登录+对话
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
v-if="showScenarioPage"
|
||||
:case-item="selectedCase"
|
||||
@open-settings="emit('open-settings')"
|
||||
@open-profile="emit('open-profile')"
|
||||
@open-profile="openProfile"
|
||||
@go-home="emit('go-home')"
|
||||
/>
|
||||
<TeachingPage
|
||||
v-else-if="showTeachingPage"
|
||||
:case-item="selectedCase"
|
||||
@open-settings="emit('open-settings')"
|
||||
@open-profile="emit('open-profile')"
|
||||
@open-profile="openProfile"
|
||||
@go-home="emit('go-home')"
|
||||
/>
|
||||
<view v-else class="cases-page">
|
||||
@@ -23,7 +23,7 @@
|
||||
<view class="home-icon"></view>
|
||||
</button>
|
||||
<view class="header-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>
|
||||
@@ -85,6 +85,7 @@
|
||||
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { fetchCaseList, type CaseMode, type ClinicalCase } from '../../api/cases'
|
||||
import { createProfileOpener } from '../../api/navigation'
|
||||
import ScenarioPage from '../scenario/scenario.vue'
|
||||
import TeachingPage from '../teaching/teaching.vue'
|
||||
|
||||
@@ -94,6 +95,8 @@ const emit = defineEmits<{
|
||||
(event: 'go-home'): void
|
||||
}>()
|
||||
|
||||
const openProfile = createProfileOpener(emit)
|
||||
|
||||
const cases = ref<ClinicalCase[]>([])
|
||||
const keyword = ref('')
|
||||
const toastMessage = ref('')
|
||||
|
||||
Reference in New Issue
Block a user