diff --git a/src/pages/U2/u2.tsx b/src/pages/U2/u2.tsx index 3e29f05..63d651c 100644 --- a/src/pages/U2/u2.tsx +++ b/src/pages/U2/u2.tsx @@ -124,21 +124,6 @@ const U2: React.FC = () => { } }; - // 根据 gender_name 和姓名生成问候称呼:取姓名第一个字 + (先生|女士) - const getGreeting = () => { - // 在加载中或没有姓名时不返回欢迎语,避免先渲染空的问候 - if (loading || !patientInfo?.name) return ""; - const name = patientInfo.name.trim(); - const firstChar = name ? name.charAt(0) : ""; - const genderName = (patientInfo?.gender_name || "").trim(); - let title = ""; - if (genderName === "男") title = "先生"; - else if (genderName === "女") title = "女士"; - return `尊敬的${ - firstChar ? `${firstChar}${title}` : title - },请确认您的个人信息:`; - }; - // 返回头像地址:使用 gender_name 字段("女" 显示女性头像),忽略 photo_path const getAvatarSrc = () => { const genderName = (patientInfo?.gender_name || "").trim(); @@ -171,7 +156,7 @@ const U2: React.FC = () => { return (