修改首页患者列表布局
This commit is contained in:
parent
6ed45b630f
commit
36608c7555
@ -28,7 +28,7 @@ const clickMenu = (value) => {
|
||||
}
|
||||
switch (value) {
|
||||
case 0:
|
||||
wx.navigateTo({
|
||||
uni.navigateTo({
|
||||
url:"/pages/patient/patientList"
|
||||
})
|
||||
|
||||
@ -94,6 +94,11 @@ const logout = async() => {
|
||||
<button class="feedback_btn">软件使用反馈</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>
|
||||
<!-- 登录弹出框 -->
|
||||
<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;
|
||||
line-height: 95rpx;
|
||||
background-color: #fff;
|
||||
text-align-last: left;
|
||||
}
|
||||
.logout_btn {
|
||||
font-size: 30rpx;
|
||||
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 {
|
||||
|
||||
@ -1,10 +1,14 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { onLoad } from "@dcloudio/uni-app"
|
||||
import { getPatientList } from "@/services/patient"
|
||||
let active = ref('all')
|
||||
let cutNav = (type) => {
|
||||
active.value = type
|
||||
}
|
||||
|
||||
onLoad(() => {
|
||||
getPatientList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -26,54 +30,29 @@ let cutNav = (type) => {
|
||||
<wd-search placeholder="住院号/病人名称/医生" hide-cancel />
|
||||
</view>
|
||||
<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">
|
||||
<text>已完成</text>
|
||||
<text>住院号:000000</text>
|
||||
<text>2020-12-22</text>
|
||||
<text>手术次数:1</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="user_info">
|
||||
<view class="img">
|
||||
<image src="/static/patient.png"></image>
|
||||
</view>
|
||||
<view class="user">
|
||||
<view>
|
||||
<view class="name">林莲英</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>患者姓名:xxx</view>
|
||||
<view>手机号码:11111111111</view>
|
||||
<view>植入物品牌:索菲萨</view>
|
||||
<view>原发病:小脑但脂瘤</view>
|
||||
<view class="red">当前压力:110</view>
|
||||
<view>初始压力:110</view>
|
||||
<view>脑积水类型:交通性,高压性</view>
|
||||
</view>
|
||||
<view class="btns">
|
||||
<text>调压趋势</text>
|
||||
<text>调压记录</text>
|
||||
<text class="add">新增任务</text>
|
||||
</view>
|
||||
</view>
|
||||
<button size="mini" plain="true">医生共享</button>
|
||||
<button size="mini" plain="true">调压趋势</button>
|
||||
<button size="mini" plain="true">手术详情</button>
|
||||
<button size="mini" plain="true">一键调压</button>
|
||||
</view>
|
||||
|
||||
</wd-card>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -97,6 +76,7 @@ let cutNav = (type) => {
|
||||
left: 0;
|
||||
top: 0;
|
||||
background-color: #fff;
|
||||
z-index: 10;
|
||||
.nav {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
@ -116,100 +96,43 @@ let cutNav = (type) => {
|
||||
}
|
||||
}
|
||||
.patient_list {
|
||||
background-color: #e0e0e0;
|
||||
padding: 15rpx;
|
||||
background-color: #ededed;
|
||||
padding-top: 20rpx;
|
||||
:deep(.item) {
|
||||
padding: 0;
|
||||
font-size: 24rpx;
|
||||
color: #a3a5a6;
|
||||
.item {
|
||||
background-color: #fff;
|
||||
overflow: hidden;
|
||||
border-radius: 10rpx;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 15rpx;
|
||||
.top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #d4edda;
|
||||
padding: 20rpx;
|
||||
color: #155724;
|
||||
text:first-of-type {
|
||||
background: rgba(21, 87, 36, 0.1);
|
||||
padding: 5rpx 12rpx;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
display: flex;
|
||||
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;
|
||||
line-height: 40rpx;
|
||||
margin: 20rpx 0;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
view {
|
||||
width: 50%;
|
||||
margin-bottom: 10rpx;
|
||||
&:last-child { width: 100%; }
|
||||
}
|
||||
}
|
||||
.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;
|
||||
.red {
|
||||
font-weight: bold;
|
||||
}
|
||||
.current {
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #20c997;
|
||||
}
|
||||
.type {
|
||||
font-size: 26rpx;
|
||||
color: rgb(255, 21, 21);
|
||||
}
|
||||
}
|
||||
.btns {
|
||||
display: flex;
|
||||
gap: 15rpx;
|
||||
margin-top: 20rpx;
|
||||
// gap: 15rpx;
|
||||
padding: 20rpx;
|
||||
justify-content: space-between;
|
||||
button {
|
||||
padding: 0 20rpx;
|
||||
}
|
||||
text {
|
||||
background-color: #f8f9fa;
|
||||
border-radius: 12rpx;
|
||||
@ -224,5 +147,4 @@ let cutNav = (type) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user