版本回退,并做好代码备份

This commit is contained in:
aixianling
2022-05-27 16:21:25 +08:00
parent 341a77efb4
commit c575f1c5bd
36 changed files with 4735 additions and 1152 deletions

View File

@@ -1,52 +1,72 @@
<template>
<div class="detail">
<div class="detail-header">
<div class="name">
<h2>张三<span>返乡人员</span></h2>
<p @click="call(info.phone)"><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</p>
</div>
<div class="idNumber">
<span>身份证号</span>
<span>420107197309172837</span>
</div>
<div class="phone">
<span>手机号码</span>
<span>13827263092</span>
</div>
<div class="address">
<span>详细地址</span>
<span>辛店镇北靳楼-北靳楼大学学生宿舍560</span>
</div>
</div>
<div class="detail-info">
<div class="title">
<h2>健康状况</h2>
<div class="detail-info__item">
<div class="left">
<h2>上报记录</h2>
<p>个人连续无异常上报<span>7</span>>天后自动解除风险</p>
<label>当前体温</label>
</div>
<div class="right">
<span>3</span>/<span>7</span>
<span :style="{color: info.temperature >= 37.3 ? '#FF4466' : '#42D784'}">{{ info.temperature }}</span>
</div>
</div>
<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">
<span :class="'status0'">异常</span>
<!-- :class="item.check ? 'img-active' : ''" -->
<img src="./components/down-icon.png" :class="checked == true ? '': 'img-active'" alt="" @click="putOn" />
</div>
</div>
<div class="item_info" v-if="checked">
<div class="items">
<label>当前健康状况</label>
<div>发烧乏力咳嗽</div>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>14天内是否接触新冠确诊或疑似患者</label>
</div>
<div class="right">
<span :style="{color: info.touchInFourteen === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>当前健康状况</label>
</div>
<div class="right">
<span :style="{color: !info.isHealth ? '#42D784' : '#FF4466'}">{{ info.healthName }}</span>
</div>
</div>
</div>
<div class="detail-info">
<h2>核酸检测信息</h2>
<div class="detail-info__item">
<div class="left">
<label>核酸检测日期</label>
</div>
<div class="right">
<span>{{ info.checkTime.split(' ')[0] }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>核酸检测结果</label>
</div>
<div class="right">
<span :style="{color: info.checkResult === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicRecentTestResult', info.checkResult) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>健康码状态</label>
</div>
<div class="right">
<span :style="{color: info.healthCode === '0' || info.healthCode === '1' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicHealthCode', info.healthCode) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>已接种疫苗次数</label>
</div>
<div class="right">
<span>{{ $dict.getLabel('epidemicVaccineTime', info.vaccine) }}</span>
</div>
</div>
<div class="detail-info__item detail-info__item--img">
<div class="left">
<label>本人健康码截图</label>
</div>
<div class="right">
<image :src="item.url" @click="preview(item.url)" v-for="(item, index) in info.checkPhoto" :key="index" />
</div>
</div>
</div>
@@ -55,19 +75,19 @@
<script>
export default {
appName:"上报记录",
appName:"上报详情",
data () {
return {
info: {},
checked: true,
pageShow: false
}
},
onLoad (query) {
this.$loading()
this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
this.getInfo(query.id)
})
this.getInfo(query.id)
},
methods: {
@@ -78,17 +98,6 @@
})
},
// 收起展开
putOn() {
this.checked = !this.checked
},
call(phone) {
uni.makePhoneCall({
phoneNumber: phone
})
},
getInfo (id) {
this.$instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
@@ -103,7 +112,13 @@
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
this.$nextTick(() => {
this.pageShow = true
})
}
this.$hideLoading()
})
},
@@ -122,146 +137,106 @@
.detail-header {
padding: 32px;
box-sizing: border-box;
background: #FFF;
background: #fff;
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 40px;
font-weight: 600;
}
.item-info {
.item-info__item {
display: flex;
align-items: center;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
image {
width: 32px;
height: 32px;
margin-right: 16px;
}
.name {
display: flex;
justify-content: space-between;
align-items: center;
h2 {
font-weight: 600;
font-size: 40px;
span {
font-weight: normal;
font-size: 26px;
padding: 4px 8px;
margin-left: 16px;
background: #FFF5F7;
color: #FF4466;
color: #333;
font-size: 28px;
}
}
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;
}
}
.detail-info {
margin-top: 24px;
.title {
padding: 0 32px;
background: #fff;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
color: #333;
}
.detail-info__item {
display: flex;
justify-content: space-between;
align-items: center;
background: #FFF;
padding: 32px;
box-sizing: border-box;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
&:last-child {
border: none;
}
.left {
h2 {
font-size: 38px;
color: #333333;
font-weight: 600;
}
p {
font-size: 26px;
display: flex;
line-height: 1.3;
max-width: 360px;
label {
position: relative;
color: #999999;
margin-top: 8px;
font-size: 32px;
}
}
.right {
display: flex;
color: #999999;
font-size: 28px;
span:first-child {
color: #4181FF;
max-width: 450px;
span {
color: #333333;
font-size: 32px;
text-align: right;
}
image {
width: 40px;
height: 40px;
}
}
}
.list {
.item {
.item_card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 26px 32px;
background: #FFF;
.left {
span:first-child {
display: inline-block;
width: 4px;
height: 24px;
background: #1365DD;
vertical-align: center;
margin-right: 12px;
}
}
.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;
}
.detail-info__item--img {
display: block;
img {
width: 48px;
height: 48px;
transition: all 0.3s ease-in-out;
transform: rotate(180deg);
vertical-align: bottom;
}
.right {
flex-wrap: wrap;
max-width: 100%;
margin-top: 34px;
.img-active {
transform: rotate(0deg);
}
}
}
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
.item_info {
padding: 16px 32px;
background: #FAFAFA;
.items {
display: flex;
justify-content: space-between;
align-items: center;
&:nth-of-type(3n) {
margin-right: 0;
}
}
}