From bdd2ba278e8cd946ab25c35d745f68ee287bc403 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Wed, 24 Sep 2025 11:37:39 +0800 Subject: [PATCH] =?UTF-8?q?9.24=E4=B8=8A=E5=8D=88=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 6 + components/tabBar/tabBar.vue | 7 +- pages/index/index.vue | 9 +- pages_app/groupEdit/groupEdit.vue | 2 +- pages_app/patientDetail/patientDetail.vue | 120 +++++++++++++++--- .../conversation-item-last-msg-content.vue | 8 +- pages_app/patientMsg/patientMsg.vue | 7 +- pages_chat/chat/message/message-input.vue | 13 +- pages_chat/groupMessage/groupMessage.vue | 45 ++++++- pages_chat/groupSend/groupSend.vue | 2 +- pages_chat/quickReply/quickReply.vue | 4 +- 11 files changed, 180 insertions(+), 43 deletions(-) diff --git a/api/api.js b/api/api.js index cfb8e76..20bc648 100644 --- a/api/api.js +++ b/api/api.js @@ -550,6 +550,12 @@ const api = { delGroupSendMsg(data){ return request('/expertAPI/delGroupSendMsg', data, 'post', false); }, + patientDetail(data){ + return request('/expertAPI/patientDetail', data, 'post', false); + }, + toAddNickname(data){ + return request('/expertAPI/toAddNickname', data, 'post', false); + }, } export default api \ No newline at end of file diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue index add78d4..54db3e4 100644 --- a/components/tabBar/tabBar.vue +++ b/components/tabBar/tabBar.vue @@ -127,17 +127,14 @@ } // 页面跳转 - uni.switchTab({ + uni.redirectTo({ url: item.pagePath, fail: () => { // 如果页面不存在,使用navigateTo uni.navigateTo({ url: item.pagePath, fail: () => { - uni.showToast({ - title: '页面开发中', - icon: 'none' - }); + } }); } diff --git a/pages/index/index.vue b/pages/index/index.vue index d6de956..f1ced9d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -480,14 +480,7 @@ }) }; - // Tab切换事件 - const onTabChange = (data) => { - console.log('Tab切换:', data); - uni.showToast({ - title: `切换到${data.item.text}`, - icon: 'none' - }); - }; + // 切换实用指南标签页 const switchGuideTab = (index) => { diff --git a/pages_app/groupEdit/groupEdit.vue b/pages_app/groupEdit/groupEdit.vue index 5f5d88b..b707750 100644 --- a/pages_app/groupEdit/groupEdit.vue +++ b/pages_app/groupEdit/groupEdit.vue @@ -160,7 +160,7 @@ return } api.groupUpdate({ - uuid: groupUuid.value, + group_uuid: groupUuid.value, name: groupName.value, patient_uuid: members.value.map(m => m.uuid).join(','), }).then(res => { diff --git a/pages_app/patientDetail/patientDetail.vue b/pages_app/patientDetail/patientDetail.vue index 24e5664..dd9c257 100644 --- a/pages_app/patientDetail/patientDetail.vue +++ b/pages_app/patientDetail/patientDetail.vue @@ -20,17 +20,21 @@ - + - aa - + {{ patientInfo.realName || '未知' }} + + + 昵称:{{nickname }} + + 年龄:{{ patientDetail.age || '未知' }} + + 民族:{{ patientInfo.nationName || '未知' }} - 昵称:Android - 年龄:23民族:未知 地区: - 内蒙古自治区呼伦贝尔市莫力达瓦达斡尔族自治旗 + {{ fullAddress }} @@ -39,7 +43,7 @@ 分组 - 分组了,分组2 + {{ group.name }} @@ -53,15 +57,15 @@ 电话号码 - 18012345600 + {{ patientInfo.mobile || '未设置' }} 患者病史 - {{ historyText }} - {{ showAllHistory ? '收起' : '展开全部' }} + {{ patientDetail.medicalHistoryContent }} + {{ showAllHistory ? '收起' : '展开全部' }} @@ -83,21 +87,105 @@ diff --git a/pages_app/patientMsg/patientMsg.vue b/pages_app/patientMsg/patientMsg.vue index 99c4627..bf2f187 100644 --- a/pages_app/patientMsg/patientMsg.vue +++ b/pages_app/patientMsg/patientMsg.vue @@ -96,6 +96,7 @@