Files
dvcp_v2_wechat_app/src/mods/conv/AppHealthReport/Detail.vue

272 lines
6.6 KiB
Vue
Raw Normal View History

2022-02-15 11:42:13 +08:00
<template>
<div class="detail">
2022-05-25 17:09:28 +08:00
<div class="detail-header">
<div class="name">
<h2>张三<span>返乡人员</span></h2>
2022-05-26 15:27:17 +08:00
<p @click="call(info.phone)"><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</p>
2022-02-15 11:42:13 +08:00
</div>
2022-05-25 17:09:28 +08:00
<div class="idNumber">
<span>身份证号</span>
<span>420107197309172837</span>
2022-02-15 11:42:13 +08:00
</div>
2022-05-25 17:09:28 +08:00
<div class="phone">
<span>手机号码</span>
<span>13827263092</span>
</div>
<div class="address">
<span>详细地址</span>
<span>辛店镇北靳楼-北靳楼大学学生宿舍560</span>
2022-02-15 11:42:13 +08:00
</div>
</div>
2022-05-25 17:09:28 +08:00
2022-02-15 11:42:13 +08:00
<div class="detail-info">
2022-05-25 17:09:28 +08:00
<div class="title">
2022-02-15 11:42:13 +08:00
<div class="left">
2022-05-25 17:09:28 +08:00
<h2>上报记录</h2>
<p>个人连续无异常上报<span>7</span>>天后自动解除风险</p>
2022-02-15 11:42:13 +08:00
</div>
<div class="right">
2022-05-25 17:09:28 +08:00
<span>3</span>/<span>7</span>
2022-02-15 11:42:13 +08:00
</div>
</div>
2022-05-25 17:09:28 +08:00
<div class="list">
<div class="item">
<div class="item_card">
<div class="left">
<span></span><span>2020-07-20</span><span>自主上报</span>
</div>
<div class="right">
2022-05-26 11:26:14 +08:00
<span :class="'status0'">异常</span>
<!-- :class="item.check ? 'img-active' : ''" -->
<img src="./components/down-icon.png" :class="checked == true ? '': 'img-active'" alt="" @click="putOn" />
2022-05-25 17:09:28 +08:00
</div>
</div>
2022-05-26 11:26:14 +08:00
<div class="item_info" v-if="checked">
<div class="items">
<label>当前健康状况</label>
<div>发烧乏力咳嗽</div>
</div>
2022-05-25 17:09:28 +08:00
</div>
2022-02-15 11:42:13 +08:00
</div>
</div>
</div>
</div>
</template>
<script>
export default {
2022-05-25 17:09:28 +08:00
appName:"上报记录",
2022-02-15 11:42:13 +08:00
data () {
return {
info: {},
2022-05-26 11:26:14 +08:00
checked: true,
2022-02-15 11:42:13 +08:00
}
},
2022-05-26 15:27:17 +08:00
onLoad (query) {
this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
this.getInfo(query.id)
})
this.getInfo(query.id)
},
2022-02-15 11:42:13 +08:00
methods: {
preview (url) {
uni.previewImage({
urls: this.info.checkPhoto.map(v => v.url),
current: url
})
},
2022-05-26 11:26:14 +08:00
// 收起展开
putOn() {
this.checked = !this.checked
},
2022-05-26 15:27:17 +08:00
call(phone) {
uni.makePhoneCall({
phoneNumber: phone
})
},
2022-02-15 11:42:13 +08:00
getInfo (id) {
this.$instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
this.info.checkPhoto = JSON.parse(res.data.checkPhoto)
let healthName = ''
this.info.isHealth = false
res.data.health.split(',').forEach(v => {
if (v > 0) {
this.info.isHealth = true
}
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
}
})
},
call (phone) {
uni.makePhoneCall({
phoneNumber: phone
})
}
}
}
</script>
<style lang="scss">
.detail {
padding-bottom: 40px;
.detail-header {
padding: 32px;
2022-05-25 17:09:28 +08:00
box-sizing: border-box;
background: #FFF;
2022-02-15 11:42:13 +08:00
2022-05-25 17:09:28 +08:00
.name {
display: flex;
justify-content: space-between;
align-items: center;
h2 {
font-weight: 600;
font-size: 40px;
2022-02-15 11:42:13 +08:00
span {
2022-05-25 17:09:28 +08:00
font-weight: normal;
font-size: 26px;
padding: 4px 8px;
margin-left: 16px;
background: #FFF5F7;
color: #FF4466;
2022-02-15 11:42:13 +08:00
}
}
2022-05-25 17:09:28 +08:00
p {
font-size: 26px;
color: #4181FF;
}
}
.idNumber,
.phone,
.address {
color: #999999;
font-size: 26px;
margin-top: 8px;
span:first-child {
display: inline-block;
width: 130px;
vertical-align: top;
}
span:last-child {
display: inline-block;
width: calc(100% - 130px);
vertical-align: top;
}
}
.idNumber {
margin-top: 16px;
2022-02-15 11:42:13 +08:00
}
}
.detail-info {
margin-top: 24px;
2022-05-25 17:09:28 +08:00
.title {
2022-02-15 11:42:13 +08:00
display: flex;
justify-content: space-between;
2022-05-25 17:09:28 +08:00
align-items: center;
2022-05-26 11:26:14 +08:00
background: #FFF;
padding: 32px;
box-sizing: border-box;
2022-02-15 11:42:13 +08:00
.left {
2022-05-25 17:09:28 +08:00
h2 {
font-size: 38px;
color: #333333;
font-weight: 600;
}
p {
font-size: 26px;
2022-02-15 11:42:13 +08:00
color: #999999;
2022-05-25 17:09:28 +08:00
margin-top: 8px;
2022-02-15 11:42:13 +08:00
}
}
.right {
2022-05-26 11:26:14 +08:00
display: flex;
2022-05-25 17:09:28 +08:00
color: #999999;
font-size: 28px;
span:first-child {
color: #4181FF;
2022-02-15 11:42:13 +08:00
}
2022-05-26 11:26:14 +08:00
2022-02-15 11:42:13 +08:00
}
}
2022-05-25 17:09:28 +08:00
.list {
.item {
.item_card {
display: flex;
justify-content: space-between;
align-items: center;
2022-05-26 11:26:14 +08:00
padding: 26px 32px;
background: #FFF;
2022-05-25 17:09:28 +08:00
.left {
span:first-child {
display: inline-block;
width: 4px;
height: 24px;
background: #1365DD;
vertical-align: center;
margin-right: 12px;
}
2022-02-15 11:42:13 +08:00
}
2022-05-26 11:26:14 +08:00
.right {
span {
display: inline-block;
vertical-align: center;
margin-right: 16px;
padding: 4px 8px;
}
.status0 {
color: #FF4466;
background: #FFF5F7;
}
.status1 {
color: #1AAAFF;
background: #E8F6FF;
}
.status2 {
color: #42D784;
background: #ECFBF2;
}
img {
width: 48px;
height: 48px;
transition: all 0.3s ease-in-out;
transform: rotate(180deg);
vertical-align: bottom;
}
.img-active {
transform: rotate(0deg);
}
}
}
.item_info {
padding: 16px 32px;
background: #FAFAFA;
.items {
display: flex;
justify-content: space-between;
align-items: center;
}
2022-02-15 11:42:13 +08:00
}
}
}
}
}
</style>