修改首页患者列表布局

This commit is contained in:
chenhaizhao 2025-12-30 15:29:38 +08:00
parent 6ed45b630f
commit 36608c7555
2 changed files with 82 additions and 136 deletions

View File

@ -28,7 +28,7 @@ const clickMenu = (value) => {
} }
switch (value) { switch (value) {
case 0: case 0:
wx.navigateTo({ uni.navigateTo({
url:"/pages/patient/patientList" url:"/pages/patient/patientList"
}) })
@ -94,6 +94,11 @@ const logout = async() => {
<button class="feedback_btn">软件使用反馈</button> <button class="feedback_btn">软件使用反馈</button>
<!-- 退出登录 --> <!-- 退出登录 -->
<button v-if="userStore.isLogin" class="logout_btn" type="warn" @tap="logout">退出登录</button> <button v-if="userStore.isLogin" class="logout_btn" type="warn" @tap="logout">退出登录</button>
<view class="bottom shadow">
<view></view>
<view></view>
<view>我的</view>
</view>
</view> </view>
<!-- 登录弹出框 --> <!-- 登录弹出框 -->
<wd-popup v-model="showModel" :close-on-click-modal="false" position="bottom" custom-style="border-radius: 20rpx 20rpx 0 0;"> <wd-popup v-model="showModel" :close-on-click-modal="false" position="bottom" custom-style="border-radius: 20rpx 20rpx 0 0;">
@ -190,11 +195,30 @@ const logout = async() => {
height: 95rpx; height: 95rpx;
line-height: 95rpx; line-height: 95rpx;
background-color: #fff; background-color: #fff;
text-align-last: left;
} }
.logout_btn { .logout_btn {
font-size: 30rpx; font-size: 30rpx;
height: 95rpx; height: 95rpx;
line-height: 95rpx; line-height: 95rpx;
text-align-last: left;
}
.bottom {
position: fixed;
bottom: 2rpx;
left: 0;
display: flex;
width: 100%;
height: 80rpx;
line-height: 80rpx;
text-align: center;
font-size: 28rpx;
view {
width: 33%;
border-right: 1px solid #dddddd;
&:last-child { border: none; }
}
} }
} }
.login_model { .login_model {

View File

@ -1,10 +1,14 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { onLoad } from "@dcloudio/uni-app"
import { getPatientList } from "@/services/patient"
let active = ref('all') let active = ref('all')
let cutNav = (type) => { let cutNav = (type) => {
active.value = type active.value = type
} }
onLoad(() => {
getPatientList()
})
</script> </script>
<template> <template>
@ -26,54 +30,29 @@ let cutNav = (type) => {
<wd-search placeholder="住院号/病人名称/医生" hide-cancel /> <wd-search placeholder="住院号/病人名称/医生" hide-cancel />
</view> </view>
<view class="patient_list"> <view class="patient_list">
<view class="item" v-for="value in 10" :key="value"> <wd-card custom-class="item" v-for="value in 10" :key="value">
<view class="top"> <view class="top">
<text>已完成</text>
<text>住院号000000</text> <text>住院号000000</text>
<text>2020-12-22</text>
<text>手术次数1</text>
</view> </view>
<view class="content"> <view class="content">
<view class="user_info"> <view>患者姓名xxx</view>
<view class="img"> <view>手机号码11111111111</view>
<image src="/static/patient.png"></image> <view>植入物品牌索菲萨</view>
</view> <view>原发病小脑但脂瘤</view>
<view class="user"> <view class="red">当前压力110</view>
<view> <view>初始压力110</view>
<view class="name">林莲英</view> <view>脑积水类型交通性高压性</view>
<view>手术时间</view>
</view>
<view>
<view>00000000000</view>
<view class="date">2020-12-22</view>
</view>
</view>
</view>
<view class="drug">
<view>植入物品牌</view>
<view>索菲萨</view>
<view>原发病</view>
<view>小脑但脂瘤</view>
</view>
<view class="stress">
<view>
<view>初始压力</view>
<view class="start">110</view>
</view>
<view>
<view>当前压力</view>
<view class="current">110</view>
</view>
<view>
<view>脑积水类型</view>
<view class="type">交通性高压性</view>
</view>
</view> </view>
<view class="btns"> <view class="btns">
<text>调压趋势</text> <button size="mini" plain="true">医生共享</button>
<text>调压记录</text> <button size="mini" plain="true">调压趋势</button>
<text class="add">新增任务</text> <button size="mini" plain="true">手术详情</button>
</view> <button size="mini" plain="true">一键调压</button>
</view>
</view> </view>
</wd-card>
</view> </view>
</template> </template>
@ -97,6 +76,7 @@ let cutNav = (type) => {
left: 0; left: 0;
top: 0; top: 0;
background-color: #fff; background-color: #fff;
z-index: 10;
.nav { .nav {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
@ -116,100 +96,43 @@ let cutNav = (type) => {
} }
} }
.patient_list { .patient_list {
background-color: #e0e0e0; background-color: #ededed;
padding: 15rpx; padding-top: 20rpx;
:deep(.item) {
padding: 0;
font-size: 24rpx; font-size: 24rpx;
color: #a3a5a6;
.item {
background-color: #fff;
overflow: hidden; overflow: hidden;
border-radius: 10rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
margin-bottom: 15rpx;
.top { .top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background-color: #d4edda; background-color: #d4edda;
padding: 20rpx; padding: 20rpx;
color: #155724; color: #155724;
text:first-of-type {
background: rgba(21, 87, 36, 0.1);
padding: 5rpx 12rpx;
border-radius: 5rpx;
}
} }
.content { .content {
display: flex;
padding: 20rpx; padding: 20rpx;
.user_info {
display: flex;
line-height: 40rpx;
// justify-content: space-between;
.img {
display: flex;
align-items: center;
justify-content: center;
width: 65rpx;
height: 65rpx;
border-radius: 50%;
margin-right: 18rpx;
background-color: #e9ecef;
image {
width: 40rpx;
height: 40rpx;
}
}
.user {
flex: 1;
> view {
display: flex;
justify-content: space-between;
}
.name {
font-weight: bold;
font-size: 32rpx;
color: #212529;
}
.date {
font-size: 26rpx;
font-weight: bold;
}
}
}
.drug {
display: flex;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 40rpx; font-size: 28rpx;
margin: 20rpx 0; color: #333;
view { view {
width: 50%; width: 50%;
margin-bottom: 10rpx;
&:last-child { width: 100%; }
} }
} .red {
.stress {
display: flex;
border-radius: 12rpx;
padding: 22rpx;
background-color: #f8f9fa;
justify-content: space-around;
text-align: center;
font-size: 22rpx;
line-height: 40rpx;
.start {
font-size: 28rpx;
font-weight: bold; font-weight: bold;
} color: rgb(255, 21, 21);
.current {
font-size: 28rpx;
font-weight: bold;
color: #20c997;
}
.type {
font-size: 26rpx;
} }
} }
.btns { .btns {
display: flex; display: flex;
gap: 15rpx; // gap: 15rpx;
margin-top: 20rpx; padding: 20rpx;
justify-content: space-between;
button {
padding: 0 20rpx;
}
text { text {
background-color: #f8f9fa; background-color: #f8f9fa;
border-radius: 12rpx; border-radius: 12rpx;
@ -224,5 +147,4 @@ let cutNav = (type) => {
} }
} }
} }
}
</style> </style>