修改首页患者列表布局
This commit is contained in:
parent
6ed45b630f
commit
36608c7555
@ -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 {
|
||||||
|
|||||||
@ -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 class="btns">
|
|
||||||
<text>调压趋势</text>
|
|
||||||
<text>调压记录</text>
|
|
||||||
<text class="add">新增任务</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<view class="btns">
|
||||||
|
<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>
|
</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,111 +96,53 @@ let cutNav = (type) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.patient_list {
|
.patient_list {
|
||||||
background-color: #e0e0e0;
|
background-color: #ededed;
|
||||||
padding: 15rpx;
|
padding-top: 20rpx;
|
||||||
font-size: 24rpx;
|
:deep(.item) {
|
||||||
color: #a3a5a6;
|
padding: 0;
|
||||||
.item {
|
font-size: 24rpx;
|
||||||
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 {
|
flex-wrap: wrap;
|
||||||
display: flex;
|
font-size: 28rpx;
|
||||||
line-height: 40rpx;
|
color: #333;
|
||||||
// justify-content: space-between;
|
view {
|
||||||
.img {
|
width: 50%;
|
||||||
display: flex;
|
margin-bottom: 10rpx;
|
||||||
align-items: center;
|
&:last-child { width: 100%; }
|
||||||
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 {
|
.red {
|
||||||
display: flex;
|
font-weight: bold;
|
||||||
flex-wrap: wrap;
|
color: rgb(255, 21, 21);
|
||||||
line-height: 40rpx;
|
|
||||||
margin: 20rpx 0;
|
|
||||||
view {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.stress {
|
}
|
||||||
display: flex;
|
.btns {
|
||||||
border-radius: 12rpx;
|
display: flex;
|
||||||
padding: 22rpx;
|
// gap: 15rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
justify-content: space-between;
|
||||||
|
button {
|
||||||
|
padding: 0 20rpx;
|
||||||
|
}
|
||||||
|
text {
|
||||||
background-color: #f8f9fa;
|
background-color: #f8f9fa;
|
||||||
justify-content: space-around;
|
border-radius: 12rpx;
|
||||||
|
flex: 1;
|
||||||
|
padding: 16rpx 12rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 22rpx;
|
|
||||||
line-height: 40rpx;
|
|
||||||
.start {
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.current {
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #20c997;
|
|
||||||
}
|
|
||||||
.type {
|
|
||||||
font-size: 26rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.btns {
|
.add {
|
||||||
display: flex;
|
background-color: #007bff;
|
||||||
gap: 15rpx;
|
color: #ffffff;
|
||||||
margin-top: 20rpx;
|
|
||||||
text {
|
|
||||||
background-color: #f8f9fa;
|
|
||||||
border-radius: 12rpx;
|
|
||||||
flex: 1;
|
|
||||||
padding: 16rpx 12rpx;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.add {
|
|
||||||
background-color: #007bff;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user