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 @@