xinelu-doctor-app/pages/information/information.vue

184 lines
3.6 KiB
Vue
Raw Normal View History

2023-11-09 15:11:45 +08:00
<template>
<view class="app">
<!-- 7 -->
<view class="content">
<view class="information">
姓名{{list.patientName}}
</view>
<view class="information">
身份证号{{list.cardNo}}
</view>
<view class="information">
联系方式{{list.phone}}
</view>
<view class="information">
现住址{{list.address}}
</view>
</view>
<view class="Familybody">
<view class="">
问题简述:{{list.problemDescription}}
</view>
2023-11-09 17:31:36 +08:00
<view class="">
问题描述:{{list.situationDescription}}
</view>
2023-11-09 15:11:45 +08:00
<view class="">
患者个人情况说明:{{list.situationDescription}}
</view>
<view class="">
病历:{{list.medicalRecord}}
</view>
<view class="" v-if="status==2">
预约日期:{{list.appointmentDate}}
</view>
<view class="" v-if="status==2">
预约开始时间点{{list.appointmentStartTime}}
</view>
<view class="" v-if="status==2">
预约结束时间点:{{list.appointmentEndTime}}
</view>
</view>
2023-11-14 11:02:24 +08:00
2023-11-09 15:11:45 +08:00
<view class="add">附件文件
2023-11-14 11:02:24 +08:00
<view class="imageitem">
<image v-for="(item, index) in url" :key="index" :src="item" mode="" @click="clickImg"></image>
</view>
2023-11-09 15:11:45 +08:00
</view>
</view>
</template>
<script>
import {
consultationlnfo,
} from '@/api/seekadvicefrom/seekadvicefrom.js';
2023-11-14 11:02:24 +08:00
import baseurl from '@/api/baseurl.js'
2023-11-09 15:11:45 +08:00
export default {
data() {
return {
2023-11-14 11:02:24 +08:00
baseurl: '',
2023-11-09 15:11:45 +08:00
id: '',
list: [],
status: '',
2023-11-14 11:02:24 +08:00
fileUrls: [],
url: [],
2023-11-09 15:11:45 +08:00
}
},
onLoad(options) {
2023-11-14 11:02:24 +08:00
this.baseurl = baseurl;
2023-11-09 15:11:45 +08:00
this.id = options.item
this.status = uni.getStorageInfoSync('status')
this.info()
},
methods: {
2023-11-14 11:02:24 +08:00
clickImg() {
uni.previewImage({
urls: this.url, //需要预览的图片http链接列表多张的时候url直接写在后面就行了
current: '', // 当前显示图片的http链接默认是第一个
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
},
2023-11-09 15:11:45 +08:00
back() {
uni.navigateBack({
delta: 1
})
},
info() {
2023-11-14 11:02:24 +08:00
this.url = []
2023-11-09 15:11:45 +08:00
consultationlnfo(this.id).then(res => {
2023-11-14 11:02:24 +08:00
res.data.fileUrls.forEach(e => {
this.url.push(baseurl + e)
})
2023-11-09 15:11:45 +08:00
this.list = res.data
})
},
},
}
</script>
<style lang="scss">
.app {
width: 100%;
// margin: 20rpx auto;
height: 100%;
padding: 30rpx;
// background-color: red;
font-size: 35rpx;
// .title {
// font-size: 20px;
// text-align: center;
// height: 80rpx;
// border-bottom: 1rpx solid #f6f6f6;
// padding-top: 100rpx;
// position: fixed;
// width: 100%;
// background: white;
// z-index: 10;
// image {
// width: 20rpx;
// height: 30rpx;
// transform: rotate(180deg);
// position: absolute;
// left: 40rpx;
// bottom: 38rpx;
// }
// }
.Familybody {
padding: 30rpx;
width: 98%;
height: 600rpx;
background-color: #fff;
line-height: 120rpx;
margin: 20rpx auto;
}
.add {
padding: 30rpx;
width: 98%;
height: 600rpx;
background-color: #fff;
line-height: 120rpx;
2023-11-14 11:02:24 +08:00
// background-color: red;
// position: relative;
.imageitem {
width: 100%;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
align-items: center;
// position: absolute;
2023-11-09 15:11:45 +08:00
2023-11-14 11:02:24 +08:00
image {
display: inline-block;
// position: absolute;
// left: 0%;
// top: 20%;
width: 33%;
height: 200rpx;
}
2023-11-09 15:11:45 +08:00
}
2023-11-14 11:02:24 +08:00
2023-11-09 15:11:45 +08:00
}
.content {
width: 98%;
// height: 300rpx;
background-color: #fff;
margin: 20rpx auto;
padding: 30rpx;
.information {
line-height: 62rpx;
}
}
}
</style>