Compare commits
4 Commits
156ea85b83
...
3604336a0f
| Author | SHA1 | Date | |
|---|---|---|---|
| 3604336a0f | |||
| 3d30b5973e | |||
| 8b54bac4c1 | |||
| 30db79641a |
6
App.vue
6
App.vue
@ -31,6 +31,10 @@ onLaunch(() => {
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="scss">
|
||||||
/*每个页面公共css */
|
/*每个页面公共css */
|
||||||
|
.main {
|
||||||
|
min-height: 95vh;
|
||||||
|
background: linear-gradient(to top, #f2f8ff 0%, #e7f0fd 100%);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
23
pages.json
23
pages.json
@ -7,23 +7,28 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"pages": [
|
"pages": [
|
||||||
{
|
|
||||||
"path": "pages/patient/patientList",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "患者列表"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "个人中心"
|
"navigationBarTitleText": "个人中心"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/patient/addTask",
|
"path": "pages/patient/patientFbDetail/patientFbDetail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "新增任务"
|
"navigationBarTitleText": "反馈详情"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/patient/patientFbList/patientFbList",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "患者反馈"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/patient/patientList/patientList",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "患者列表"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,7 @@ const logout = async() => {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<view class="home">
|
<view class="home main">
|
||||||
<!-- 头部 -->
|
<!-- 头部 -->
|
||||||
<view class="header shadow" @tap="showLogin">
|
<view class="header shadow" @tap="showLogin">
|
||||||
<template v-if="userStore.isLogin">
|
<template v-if="userStore.isLogin">
|
||||||
@ -114,9 +114,7 @@ const logout = async() => {
|
|||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.home{
|
.home{
|
||||||
height: 95vh;
|
padding: 20rpx;
|
||||||
padding: 30rpx;
|
|
||||||
background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
|
|
||||||
.shadow {
|
.shadow {
|
||||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
|
||||||
border: 1rpx solid #e8f2ff;
|
border: 1rpx solid #e8f2ff;
|
||||||
|
|||||||
@ -1,7 +0,0 @@
|
|||||||
<script setup>
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<template>
|
|
||||||
患者-新增任务
|
|
||||||
</template>
|
|
||||||
<style lang="scss" scoped></style>
|
|
||||||
69
pages/patient/patientFbDetail/patientFbDetail.vue
Normal file
69
pages/patient/patientFbDetail/patientFbDetail.vue
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<script setup></script>
|
||||||
|
<template>
|
||||||
|
<view class="box main">
|
||||||
|
<wd-card>
|
||||||
|
<view class="head">
|
||||||
|
<image src="/static//logo.png"></image>
|
||||||
|
<view class="info">
|
||||||
|
<view>
|
||||||
|
<text class="adorn">陈程城</text>
|
||||||
|
<text>男</text>
|
||||||
|
<text>25</text>
|
||||||
|
</view>
|
||||||
|
<view>住院号/ID:123456</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</wd-card>
|
||||||
|
<wd-card>
|
||||||
|
<template #title>
|
||||||
|
<view class="title">病情描述</view>
|
||||||
|
</template>
|
||||||
|
<view class="content">
|
||||||
|
<view>xxxxx</view>
|
||||||
|
<view>提示:1.病人的状态描述,是否出现头疼,呕吐,嗜睡等以上症状.2.病人行为描述:是否出现走路不稳,大小便失禁等方面概述</view>
|
||||||
|
</view>
|
||||||
|
<template #footer>
|
||||||
|
</template>
|
||||||
|
</wd-card>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.box{
|
||||||
|
padding-top: 20rpx;
|
||||||
|
.head {
|
||||||
|
display: flex;
|
||||||
|
padding: 20rpx;
|
||||||
|
gap: 20rpx;
|
||||||
|
align-items: center;
|
||||||
|
color: #000;
|
||||||
|
image {
|
||||||
|
width: 100rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1rpx solid #d4d4d4;
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
font-size: 24rpx;
|
||||||
|
>view {
|
||||||
|
display: flex;
|
||||||
|
gap: 30rpx;
|
||||||
|
align-items: flex-end;
|
||||||
|
}
|
||||||
|
.adorn {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 32rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
color: #333;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
:first-child {
|
||||||
|
padding: 15rpx 0;
|
||||||
|
border-top: 1rpx solid #d4d4d4;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -3,8 +3,53 @@
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<!-- 病人反馈 -->
|
<!-- 病人反馈 -->
|
||||||
病人反馈
|
<view class="fb_list main">
|
||||||
|
<wd-card custom-class="item" v-for="item in 9" :key="item">
|
||||||
|
<view class="title">
|
||||||
|
<view class="left">
|
||||||
|
<view>
|
||||||
|
姓名:xxx
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
ID:133456
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view>日期:2020-10-20</view>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
|
病人反馈信息啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
|
||||||
|
</view>
|
||||||
|
</wd-card>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.fb_list {
|
||||||
|
font-size: 26rpx;
|
||||||
|
padding-top: 20rpx;
|
||||||
|
:deep(.item) {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 20rpx;
|
||||||
|
color: #333;
|
||||||
|
border-bottom: 1px solid #e7e8e8;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
padding: 20rpx;
|
||||||
|
height: 123rpx;
|
||||||
|
line-height: 45rpx;
|
||||||
|
letter-spacing: 3rpx;
|
||||||
|
word-break: break-all;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -4,62 +4,64 @@ import { onLoad } from "@dcloudio/uni-app"
|
|||||||
import { getPatientList } from "@/services/patient"
|
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(() => {
|
onLoad(() => {
|
||||||
getPatientList()
|
getPatientList()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- 病人管理 -->
|
<!-- 病人管理 -->
|
||||||
<wd-watermark content="wot-design-uni"></wd-watermark>
|
<view class="main">
|
||||||
<wd-fab inactiveIcon="ellipsis" activeIcon="rollback">
|
<wd-watermark content="wot-design-uni"></wd-watermark>
|
||||||
<view class="fab">
|
<wd-fab inactiveIcon="ellipsis" activeIcon="rollback">
|
||||||
<view>调压趋势</view>
|
<view class="fab">
|
||||||
<view>新增任务</view>
|
<view>调压趋势</view>
|
||||||
<view>新增手术</view>
|
<view>新增任务</view>
|
||||||
|
<view>新增手术</view>
|
||||||
|
</view>
|
||||||
|
</wd-fab>
|
||||||
|
<view class="nav_bar">
|
||||||
|
<view class="nav">
|
||||||
|
<text @tap="cutNav('all')" :class="{ active: active === 'all' }">全部</text>
|
||||||
|
<text @tap="cutNav('week')" :class="{ active: active === 'week' }">本周</text>
|
||||||
|
<text @tap="cutNav('month')" :class="{ active: active === 'month' }">本月</text>
|
||||||
|
<text @tap="cutNav('custom')" :class="{ active: active === 'custom' }">自定义</text>
|
||||||
|
</view>
|
||||||
|
<wd-search placeholder="住院号/病人名称/医生" hide-cancel />
|
||||||
</view>
|
</view>
|
||||||
</wd-fab>
|
<view class="patient_list">
|
||||||
<view class="nav_bar">
|
<wd-card custom-class="item" v-for="value in 10" :key="value">
|
||||||
<view class="nav">
|
<view class="top">
|
||||||
<text @tap="cutNav('all')" :class="{active: active === 'all'}">全部</text>
|
|
||||||
<text @tap="cutNav('week')" :class="{active: active === 'week'}">本周</text>
|
|
||||||
<text @tap="cutNav('month')" :class="{active: active === 'month'}">本月</text>
|
|
||||||
<text @tap="cutNav('custom')" :class="{active: active === 'custom'}">自定义</text>
|
|
||||||
</view>
|
|
||||||
<wd-search placeholder="住院号/病人名称/医生" hide-cancel />
|
|
||||||
</view>
|
|
||||||
<view class="patient_list">
|
|
||||||
<wd-card custom-class="item" v-for="value in 10" :key="value">
|
|
||||||
<view class="top">
|
|
||||||
<text>住院号:000000</text>
|
<text>住院号:000000</text>
|
||||||
<text>2020-12-22</text>
|
<text>2020-12-22</text>
|
||||||
<text>手术次数:1</text>
|
<text>手术次数:1</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view>患者姓名:xxx</view>
|
<view>患者姓名:xxx</view>
|
||||||
<view>手机号码:11111111111</view>
|
<view>手机号码:11111111111</view>
|
||||||
<view>植入物品牌:索菲萨</view>
|
<view>植入物品牌:索菲萨</view>
|
||||||
<view>原发病:小脑但脂瘤</view>
|
<view>原发病:小脑但脂瘤</view>
|
||||||
<view class="red">当前压力:110</view>
|
<view class="red">当前压力:110</view>
|
||||||
<view>初始压力:110</view>
|
<view>初始压力:110</view>
|
||||||
<view>脑积水类型:交通性,高压性</view>
|
<view>脑积水类型:交通性,高压性</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btns">
|
<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>
|
||||||
<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>
|
</view>
|
||||||
|
|
||||||
</wd-card>
|
</wd-card>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.fab {
|
.fab {
|
||||||
view{
|
view {
|
||||||
background: #4d80f0;
|
background: #4d80f0;
|
||||||
width: 112rpx;
|
width: 112rpx;
|
||||||
height: 112rpx;
|
height: 112rpx;
|
||||||
@ -72,12 +74,14 @@ onLoad(() => {
|
|||||||
margin-top: 18rpx;
|
margin-top: 18rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav_bar {
|
.nav_bar {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
box-shadow: 0px 2px 5px #c5c5c5;
|
||||||
.nav {
|
.nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
@ -85,24 +89,27 @@ onLoad(() => {
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #6b7280;
|
color: #6b7280;
|
||||||
padding: 10rpx;
|
padding: 10rpx;
|
||||||
|
|
||||||
text {
|
text {
|
||||||
padding: 10rpx 16rpx;
|
padding: 10rpx 16rpx;
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
background: #3b82f6;
|
background: #3b82f6;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1rpx solid #3b82f6;
|
border: 1rpx solid #3b82f6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.patient_list {
|
.patient_list {
|
||||||
background-color: #ededed;
|
|
||||||
padding-top: 20rpx;
|
padding-top: 20rpx;
|
||||||
:deep(.item) {
|
:deep(.item) {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -110,30 +117,39 @@ onLoad(() => {
|
|||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
color: #155724;
|
color: #155724;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
||||||
view {
|
view {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
&:last-child { width: 100%; }
|
|
||||||
|
&:last-child {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.red {
|
.red {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: rgb(255, 21, 21);
|
color: rgb(255, 21, 21);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btns {
|
.btns {
|
||||||
display: flex;
|
display: flex;
|
||||||
// gap: 15rpx;
|
// gap: 15rpx;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
text {
|
text {
|
||||||
background-color: #f8f9fa;
|
background-color: #f8f9fa;
|
||||||
border-radius: 12rpx;
|
border-radius: 12rpx;
|
||||||
@ -141,6 +157,7 @@ onLoad(() => {
|
|||||||
padding: 16rpx 12rpx;
|
padding: 16rpx 12rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add {
|
.add {
|
||||||
background-color: #007bff;
|
background-color: #007bff;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user