9.26早上提交
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<!-- 顶部导航栏 -->
|
||||
<uni-nav-bar
|
||||
left-icon="left"
|
||||
title="患者消息"
|
||||
:title="title"
|
||||
@clickLeft="goBack"
|
||||
fixed
|
||||
color="#8B2316"
|
||||
@@ -12,10 +12,18 @@
|
||||
backgroundColor="#eee"
|
||||
>
|
||||
<template #right>
|
||||
<view class="nav-right">
|
||||
<view class="nav-right" v-if="activeTab === 'message'">
|
||||
<uni-icons type="search" size="24" color="#8B2316" @click="searchPatients"></uni-icons>
|
||||
<uni-icons type="staff" size="24" color="#8B2316" @click="managePatients" style="margin-left: 30rpx;"></uni-icons>
|
||||
</view>
|
||||
<view class="nav-right" v-else-if="activeTab === 'list'">
|
||||
<uni-icons type="search" size="24" color="#8B2316" @click="searchPatients"></uni-icons>
|
||||
<uni-icons type="plusempty" size="24" color="#8B2316" @click="goCode" style="margin-left: 30rpx;" ></uni-icons>
|
||||
</view>
|
||||
<view class="nav-right" v-else-if="activeTab === 'plan'" @click="showAddMenu">
|
||||
<view class="save-btn">保存</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
</uni-nav-bar>
|
||||
|
||||
@@ -167,10 +175,10 @@
|
||||
</scroll-view>
|
||||
|
||||
<!-- 悬浮添加按钮 -->
|
||||
<view class="floating-add-btn" @click="showAddMenu">
|
||||
<!-- <view class="floating-add-btn" @click="showAddMenu">
|
||||
<uni-icons type="plus" size="24" color="#ffffff"></uni-icons>
|
||||
<text class="btn-text">添加</text>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 添加菜单弹窗 -->
|
||||
<view class="add-menu-popup" v-if="showAddMenuFlag" @click="hideAddMenu">
|
||||
@@ -191,13 +199,11 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view
|
||||
<!-- 底部标签栏 -->
|
||||
<view class="tab-bar">
|
||||
<view class="tab-item" :class="{active: activeTab === 'message'}" @click="switchTab('message')">
|
||||
<text class="tab-text">患者消息</text>
|
||||
|
||||
</view>
|
||||
<view class="tab-item" :class="{active: activeTab === 'list'}" @click="switchTab('list')">
|
||||
<text class="tab-text">患者列表</text>
|
||||
@@ -223,7 +229,7 @@
|
||||
import dayjs from 'dayjs'
|
||||
import lineImg from "@/static/item_visitplan_fg.png"
|
||||
import ConversationList from './conversation-list/index.vue'
|
||||
|
||||
const title = ref('患者消息');
|
||||
const goPatientDetail = (uuid) => {
|
||||
navTo({
|
||||
url: `/pages_app/patientDetail/patientDetail?uuid=${uuid}`
|
||||
@@ -235,6 +241,11 @@
|
||||
url: `/pages_app/patientSetting/patientSetting?uuid=${uuid}`
|
||||
})
|
||||
}
|
||||
const goCode = () => {
|
||||
navTo({
|
||||
url: `/pages_app/myCode/myCode`
|
||||
})
|
||||
}
|
||||
// 仅保留年月日
|
||||
const formatYMD = (input) => {
|
||||
if (!input) return '';
|
||||
@@ -489,10 +500,9 @@
|
||||
|
||||
// 搜索患者
|
||||
const searchPatients = () => {
|
||||
uni.showToast({
|
||||
title: '搜索患者',
|
||||
icon: 'none'
|
||||
});
|
||||
navTo({
|
||||
url: `/pages_app/searchPatient/searchPatient`
|
||||
})
|
||||
};
|
||||
|
||||
// 管理患者
|
||||
@@ -519,15 +529,19 @@
|
||||
const switchTab = (tab) => {
|
||||
activeTab.value = tab;
|
||||
|
||||
|
||||
switch(tab) {
|
||||
case 'message':
|
||||
// 患者消息页面逻辑 - 刷新申请列表
|
||||
getApplyList();
|
||||
title.value = '患者消息';
|
||||
break;
|
||||
case 'list':
|
||||
title.value = '患者列表';
|
||||
// 显示患者列表
|
||||
break;
|
||||
case 'plan':
|
||||
title.value = '随访计划';
|
||||
// 随访计划页面 - 加载随访计划数据
|
||||
if (followUpList.value.length === 0) {
|
||||
getFollowUpList(true);
|
||||
@@ -618,6 +632,11 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.save-btn {
|
||||
font-size: 32rpx;
|
||||
color: #8b2316;
|
||||
font-weight: 500;
|
||||
}
|
||||
.content {
|
||||
background-color: #f5f5f5;
|
||||
height: 100vh;
|
||||
@@ -893,7 +912,7 @@
|
||||
.group-section {
|
||||
.group-header {
|
||||
padding: 20rpx 30rpx;
|
||||
background-color: #f8f8f8;
|
||||
background-color: #e4e4e4;
|
||||
font-size: 36rpx;
|
||||
color: #666666;
|
||||
font-weight: bold;
|
||||
@@ -1044,7 +1063,6 @@
|
||||
}
|
||||
|
||||
.plan-list{
|
||||
margin-top: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user