From 287812fea5211450fc81d801d21317ac06943746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A4=A9=E9=AA=84?= <5307576@qq.com> Date: Wed, 3 Jun 2026 16:01:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E4=BD=93=E6=A0=BC?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/auth.ts | 8 +- api/chat.ts | 3 +- manifest.json | 2 +- pages/chat/chat.vue | 479 +++++++++++++++++++++++++++++++++++++++++++- vite.config.ts | 3 +- 5 files changed, 488 insertions(+), 7 deletions(-) diff --git a/api/auth.ts b/api/auth.ts index 65920a5..de7012d 100644 --- a/api/auth.ts +++ b/api/auth.ts @@ -1,4 +1,8 @@ -const apiBaseUrl = 'http://127.0.0.1:8000/api' +let apiBaseUrl = 'http://192.168.2.76:8000/api' + +// #ifdef H5 +apiBaseUrl = '/backend-api' +// #endif export const API_BASE_URL = apiBaseUrl @@ -14,6 +18,8 @@ export type SendCodeResponse = { export type LoginCodePayload = { phone: string code: string + institution_code: string + institution_name: string } export type BackendUser = { diff --git a/api/chat.ts b/api/chat.ts index a06733e..c9f5cbd 100644 --- a/api/chat.ts +++ b/api/chat.ts @@ -34,7 +34,8 @@ const defaultCase: ClinicalCase = { department: '心血管内科', scene: '住院部', caseNo: '1006004', - tone: 'orange' + tone: 'orange', + mode: 'training' } export function createMockChatSession(caseItem?: ClinicalCase | null): Promise { diff --git a/manifest.json b/manifest.json index bba0c34..4d1491d 100644 --- a/manifest.json +++ b/manifest.json @@ -72,7 +72,7 @@ "devServer" : { "proxy" : { "/backend-api" : { - "target" : "http://127.0.0.1:8000", + "target" : "http://192.168.2.76:8000", "changeOrigin" : true, "pathRewrite" : { "^/backend-api" : "/api" diff --git a/pages/chat/chat.vue b/pages/chat/chat.vue index 4ca8952..cacc521 100644 --- a/pages/chat/chat.vue +++ b/pages/chat/chat.vue @@ -88,8 +88,8 @@ - - + + @@ -108,6 +108,85 @@ + + + + 录入体格检查 + + + + + + 体温 + + + + + 心率 + + 次/分 + + + 呼吸 + + 次/分 + + + 血氧 + + % + + + + + 血压 + + mmHg + + + 意识/面色 + + + + 心肺/腹部查体 + + + + 其他发现 + + + + + + + + + + + + + + 选择辅助检查 + + + + + + + + {{ toastMessage }} @@ -115,7 +194,7 @@