no message

This commit is contained in:
wangdongbo 2026-02-12 15:06:26 +08:00
parent 0683f8e510
commit 8a4357614f
2 changed files with 68 additions and 90 deletions

View File

@ -1,4 +1,5 @@
<template>
<full-page :customScroll="empty">
<view class="medical-case-form">
<view class="form-container">
<!-- 动态渲染表单字段 -->
@ -9,7 +10,6 @@
:class="{ required: field.required }"
>
<view class="item-label">{{ field.label }}</view>
<!-- 日期选择器 -->
<picker
v-if="field.type === 'date'"
@ -52,12 +52,14 @@
</view>
</view>
</view>
</full-page>
</template>
<script setup>
import { ref, computed, onMounted } from "vue";
import { storeToRefs } from "pinia";
import useAccountStore from "@/store/account";
import FullPage from "@/components/full-page.vue";
import api from "@/utils/api.js";
const caseType = ref("");
const formData = ref({});
@ -185,7 +187,7 @@ const FIELD_CONFIG = {
label: FIELD_LABELS.examination,
type: "textarea",
required: false,
}
},
],
physicalExaminationTemplate: [
{
@ -198,7 +200,7 @@ const FIELD_CONFIG = {
key: "inspectSummary",
label: FIELD_LABELS.inspectSummary,
type: "textarea",
required: false,
required: true,
},
{
key: "positiveFind",
@ -212,7 +214,7 @@ const FIELD_CONFIG = {
key: "consultationDate",
label: FIELD_LABELS.consultationDate,
type: "date",
required: false,
required: true,
},
{
key: "chiefComplaint",
@ -230,7 +232,7 @@ const FIELD_CONFIG = {
key: "pastMedicalHistory",
label: FIELD_LABELS.pastMedicalHistory,
type: "textarea",
required: true,
required: false,
},
],
};

View File

@ -6,28 +6,21 @@ $text-color-sub: #999;
$primary-color: #0877F1;
.chat-page {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
height: 100vh;
background-color: #f5f5f5;
overflow: hidden;
}
/* 患者信息栏样式 - 固定在顶部 */
/* 患者信息栏样式 */
.patient-info-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
position: relative;
background: #fff;
border-bottom: 1rpx solid #f0f0f0;
padding: 20rpx 32rpx;
z-index: 10;
flex-shrink: 0;
flex-shrink: 0; /* 防止被压缩 */
}
.patient-info-content {
@ -91,14 +84,10 @@ $primary-color: #0877F1;
}
.chat-content {
position: fixed;
top: 100rpx; /* 患者信息栏高度,根据实际调整 */
left: 0;
right: 0;
bottom: 200rpx; /* 输入框高度,根据实际调整 */
flex: 1;
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
min-height: 0;
}
.chat-content-compressed {
@ -363,31 +352,19 @@ $primary-color: #0877F1;
}
.input-section {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #fff;
border-top: 1rpx solid #e0e0e0;
position: relative;
z-index: 200;
padding-bottom: 40rpx;
flex-shrink: 0;
transform: translateZ(0); /* 开启硬件加速,提升性能 */
display: flex;
flex-direction: column;
}
.ai-assistant-slot {
width: 100%;
background: #fff;
}
.input-toolbar {
display: flex;
align-items: center;
padding: 12rpx 20rpx;
padding-bottom: 60rpx;
padding: 16rpx 20rpx;
gap: 12rpx;
border-top: 1rpx solid #e0e0e0;
background: #fff;
}
.voice-toggle-btn {
@ -510,8 +487,7 @@ $primary-color: #0877F1;
justify-content: flex-start;
background: #fff;
border-top: 1rpx solid #eee;
padding: 20rpx 0 20rpx 60rpx;
padding-bottom: 60rpx;
padding: 20rpx 0 40rpx 60rpx;
gap: 40rpx 50rpx;
flex-wrap: wrap;
background-color: #f5f5f5;
@ -541,7 +517,7 @@ $primary-color: #0877F1;
background-color: white;
border-top: 1rpx solid #e0e0e0;
padding: 16rpx;
margin-bottom: 60rpx;
margin-bottom: 40rpx;
display: flex;
align-items: center;
justify-content: space-between;
@ -686,7 +662,7 @@ $primary-color: #0877F1;
width: 100%;
max-height: 80vh;
padding: 20rpx;
padding-bottom: 80rpx;
padding-bottom: calc(20rpx + 40rpx);
position: relative;
box-sizing: border-box;
margin: 0;
@ -818,7 +794,7 @@ $primary-color: #0877F1;
background-color: white;
width: auto;
padding: 32rpx 20rpx 48rpx 20rpx;
padding-bottom: 108rpx;
padding-bottom: calc(48rpx + 40rpx);
text-align: center;
margin: 0 auto;
position: relative;