版本回退,并做好代码备份
This commit is contained in:
@@ -1,13 +1,48 @@
|
||||
<template>
|
||||
<div class="album">
|
||||
<div class="tips">请确保以下信息全部由本人填写,本人对所填写内容的真实性和完整性负责</div>
|
||||
|
||||
<div class="form-item__group">
|
||||
<div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>返乡人员姓名</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<input placeholder="请输入" v-model="form.name" disabled :maxlength="20"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>身份证号</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<input placeholder="请输入" v-model="form.idNumber" disabled :maxlength="20"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item__group">
|
||||
<div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>当前体温</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<input placeholder="请输入" v-model="form.temperature" :maxlength="20"/>
|
||||
<i>℃</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item form-item__imgs">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>个人健康状况(可多选)</h2>
|
||||
<h2>14天内是否接触新冠确诊或疑似患者</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiRadio style="width: 100%;" v-model="form.touchInFourteen" dict="epidemicTouchInFourteen"></AiRadio>
|
||||
@@ -18,7 +53,48 @@
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>当前状况</h2>
|
||||
<h2>当前健康状况(可多选)</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiCheckbox style="width: 100%;" v-model="form.health" dict="epidemicRecentHealth"></AiCheckbox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item__group">
|
||||
<div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>核酸检测日期</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<div class="ai-area" @click="isShowDate = true">
|
||||
<div class="ai-area__wrapper">
|
||||
<span class="label" v-if="form.checkTime">{{ form.checkTime }}</span>
|
||||
<i v-else>请选择</i>
|
||||
<u-icon name="arrow-right" color="#ddd"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item form-item__imgs">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>核酸检测结果</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiRadio style="width: 100%;" v-model="form.checkResult" dict="epidemicRecentTestResult"></AiRadio>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item form-item__imgs">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>健康码类型</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiRadio style="width: 100%;" v-model="form.healthCode" dict="epidemicHealthCode"></AiRadio>
|
||||
@@ -29,16 +105,26 @@
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>备注说明</h2>
|
||||
<h2>已接种疫苗次数</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<textarea placeholder="请补充说明健康监测情况" v-model="form.temperature"/>
|
||||
<AiRadio style="width: 100%;" v-model="form.vaccine" dict="epidemicVaccineTime"></AiRadio>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item form-item__imgs">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i style="margin-right: 8px"></i>
|
||||
<h2>本人健康码截图<span style="color: #999; font-size:14px;font-weight:normal;">(最多9张)</span></h2>
|
||||
</div>
|
||||
<div class="form-item__right" style="padding-left: 5px">
|
||||
<AiUploader v-model="form.checkPhoto" :limit="9" multiple></AiUploader>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker> -->
|
||||
<u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker>
|
||||
<div class="btn-wrapper">
|
||||
<div class="btn" hover-class="text-hover" @click="submit">提交</div>
|
||||
</div>
|
||||
@@ -49,7 +135,7 @@
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
appName:"上报今日状态",
|
||||
appName:"今日上报",
|
||||
data() {
|
||||
return {
|
||||
isShowDate: false,
|
||||
@@ -134,6 +220,10 @@ export default {
|
||||
return this.$toast('请选择已接种疫苗次数')
|
||||
}
|
||||
|
||||
// if (!this.form.checkPhoto.length) {
|
||||
// return this.$toast('请上传健康码截图')
|
||||
// }
|
||||
this.$loading()
|
||||
this.$instance.post(`/app/appepidemichealthreport/addOrUpdate`, {
|
||||
...this.form,
|
||||
openid: this.user.openid,
|
||||
@@ -148,6 +238,7 @@ export default {
|
||||
uni.navigateBack()
|
||||
}, 400)
|
||||
}
|
||||
this.$hideLoading()
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -260,7 +351,7 @@ export default {
|
||||
input {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
text-align: left;
|
||||
text-align: right;
|
||||
color: #333;
|
||||
padding-right: 10px;
|
||||
}
|
||||
@@ -270,21 +361,22 @@ export default {
|
||||
align-items: center;
|
||||
font-size: 32px;
|
||||
|
||||
// .u-input {
|
||||
// display: block;
|
||||
// width: 100%;
|
||||
// }
|
||||
|
||||
span {
|
||||
max-width: 400px;
|
||||
margin-right: 8px;
|
||||
color: #333333;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
i {
|
||||
margin-right: 8px;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.form-item__wrapper_input {
|
||||
display: block;
|
||||
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
.form-item__wrapper {
|
||||
border-bottom: none;
|
||||
@@ -309,10 +401,11 @@ export default {
|
||||
padding: 0 4px;
|
||||
font-weight: 600;
|
||||
font-size: 32px;
|
||||
color: #666666;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
&.form-item__imgs, &.form-item__textarea {
|
||||
.form-item__wrapper {
|
||||
display: block;
|
||||
@@ -323,7 +416,6 @@ export default {
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 90px;
|
||||
|
||||
}
|
||||
|
||||
.form-item__title {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>联系方式</h2>
|
||||
<h2>手机号码</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<input placeholder="请输入" type="number" v-model="form.phone" :maxlength="11"/>
|
||||
@@ -38,7 +38,7 @@
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>所属地区</h2>
|
||||
<h2>上报地区</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiAreaPicker class="ai-area" :areaId="$areaId" v-model="form.areaId" :fullName.sync="form.areaName">
|
||||
@@ -58,7 +58,7 @@
|
||||
<h2>详细地址</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<textarea auto-height v-model="form.address" :maxlength="500" placeholder="如住所、酒店、单位等"
|
||||
<textarea auto-height v-model="form.address" :maxlength="500" placeholder="请输入详细地址"
|
||||
placeholder-style="font-size: 16px;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -9,15 +9,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="home-list">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" >
|
||||
<div class="item-top" @click.stop="$linkTo('./Detail?id=' + item.id)">
|
||||
<div class="item" v-for="(item, index) in list" :key="index">
|
||||
<div class="item-top">
|
||||
<div class="item-top__left">
|
||||
<h2>{{ item.name }}<span :class="item.status == 1? 'status0':'status1'">返乡人员</span></h2>
|
||||
<!-- <p @click.stop="$linkTo('./UserInfo?id=' + item.id)" hover-class="text-hover">查看个人信息></p> -->
|
||||
<div>
|
||||
<p>登记于2021-10-15</p>
|
||||
<span :class="item.status == 1? 'status0':'status1'">异常</span>
|
||||
</div>
|
||||
<h2>{{ item.name }}</h2>
|
||||
<p @click.stop="$linkTo('./UserInfo?id=' + item.id)" hover-class="text-hover">查看个人信息></p>
|
||||
</div>
|
||||
<span v-if="item.status === '0'">健康数据异常</span>
|
||||
</div>
|
||||
@@ -42,40 +38,8 @@
|
||||
<AiEmpty v-if="list.length==0"/>
|
||||
</div>
|
||||
<div class="btn-wrapper">
|
||||
<div class="share" @click="show = true">分享</div>
|
||||
<div class="addBtn" @click="toReport" hover-class="text-hover">添加上报人员</div>
|
||||
<div class="btn" @click="toReport" hover-class="text-hover">添加上报人员</div>
|
||||
</div>
|
||||
|
||||
<u-popup v-model="show" mode="bottom" border-radius="30">
|
||||
<div class="shareBox">
|
||||
<h2>分享到:</h2>
|
||||
<div class="card">
|
||||
<div class="itemCard" @click="registerCode()">
|
||||
<img src="./components/code.png" alt="" class="imgs" />
|
||||
<div class="names">扫码登记</div>
|
||||
</div>
|
||||
<div class="itemCard" @click="invitation()">
|
||||
<img src="./components/wechat.png" alt="" class="imgs" />
|
||||
<div class="names">微信邀请</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="close" @click="show = false">取消</div>
|
||||
</div>
|
||||
</u-popup>
|
||||
|
||||
<u-popup v-model="showCode" mode="center" border-radius="14" width="90%" height="450px">
|
||||
<div class="showCode">
|
||||
<div class="qrCode">
|
||||
<img src="./components/code.png" alt="">
|
||||
</div>
|
||||
<h2>健康上报</h2>
|
||||
<p>请使用微信扫码,上报本人健康情况</p>
|
||||
<div class="btn">
|
||||
<div class="cancel" @click="showCode = false">取消</div>
|
||||
<div class="save" @click="savePoster">保存海报</div>
|
||||
</div>
|
||||
</div>
|
||||
</u-popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -91,8 +55,6 @@ export default {
|
||||
pageShow: false,
|
||||
current: 1,
|
||||
total: 0,
|
||||
show: false,
|
||||
showCode: false,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -119,18 +81,6 @@ export default {
|
||||
this.$linkTo('./AddUser')
|
||||
},
|
||||
|
||||
// 扫码登记
|
||||
registerCode() {
|
||||
this.show = false;
|
||||
this.showCode = true;
|
||||
},
|
||||
// 微信邀请
|
||||
invitation() {
|
||||
console.log('222');
|
||||
},
|
||||
// 保存海报
|
||||
savePoster() {},
|
||||
|
||||
getList() {
|
||||
|
||||
this.$instance.post(`/app/appepidemicreportmember/list?openId=${this.user.openId}`, null, {
|
||||
@@ -217,43 +167,17 @@ export default {
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
|
||||
.item-top__left {
|
||||
width: 100%;
|
||||
h2 {
|
||||
line-height: 44px;
|
||||
margin-bottom: 8px;
|
||||
color: #333;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
span {
|
||||
padding: 4px 8px;
|
||||
font-size: 26px;
|
||||
font-weight: normal;
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
p {
|
||||
color: #999999;
|
||||
font-size: 26px;
|
||||
}
|
||||
span {
|
||||
padding: 4px 8px;
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
.status0 {
|
||||
color: #FF4466;
|
||||
background: #FFF5F7;
|
||||
}
|
||||
.status1 {
|
||||
color: #1AAAFF;
|
||||
background: #E8F6FF;
|
||||
}
|
||||
.status2 {
|
||||
color: #42D784;
|
||||
background: #ECFBF2;
|
||||
|
||||
p {
|
||||
color: #999999;
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,101 +219,5 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 20px 32px !important;
|
||||
box-sizing: border-box;
|
||||
.addBtn,
|
||||
.share {
|
||||
height: 88px;
|
||||
line-height: 88px;
|
||||
text-align: center;
|
||||
}
|
||||
.share {
|
||||
width: 35%;
|
||||
border-radius: 16px;
|
||||
border: 1px solid #A0C0FF;
|
||||
}
|
||||
.addBtn {
|
||||
width: 60%;
|
||||
background: #4181FF;
|
||||
border-radius: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.shareBox {
|
||||
padding-top: 32px;
|
||||
box-sizing: border-box;
|
||||
h2 {
|
||||
padding: 0 32px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.card {
|
||||
display: flex;
|
||||
padding: 60px 32px 32px 32px;
|
||||
.itemCard {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
// width: 25%;
|
||||
img {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ::v-deep .u-popup .u-drawer .u-drawer-bottom {
|
||||
// bottom: 50px;
|
||||
// }
|
||||
.close {
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
border-top: 2px solid #EEEEEE;
|
||||
}
|
||||
}
|
||||
|
||||
.showCode {
|
||||
padding: 64px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
.qrCode {
|
||||
img {
|
||||
width: 320px;
|
||||
height: 320px;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
padding: 32px 0;
|
||||
}
|
||||
p {
|
||||
font-size: 32px;
|
||||
margin-bottom: 80px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.cancel,
|
||||
.save {
|
||||
width: 45%;
|
||||
text-align: center;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
border-radius: 40px;
|
||||
}
|
||||
.cancel {
|
||||
background: #EFF2F7;
|
||||
}
|
||||
.save {
|
||||
background: #383A49;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
134
src/mods/conv/AppHealthReport/UserInfo.vue
Normal file
134
src/mods/conv/AppHealthReport/UserInfo.vue
Normal file
@@ -0,0 +1,134 @@
|
||||
<template>
|
||||
<div class="userinfo" v-if="pageShow">
|
||||
<div class="cell-group">
|
||||
<div class="cell-item">
|
||||
<div class="cell-item__wrapper">
|
||||
<div class="left">
|
||||
<span>上报人姓名</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>{{ info.name }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell-item">
|
||||
<div class="cell-item__wrapper">
|
||||
<div class="left">
|
||||
<span>身份证号</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>{{ info.idNumber }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell-item">
|
||||
<div class="cell-item__wrapper">
|
||||
<div class="left">
|
||||
<span>手机号码</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>{{ info.phone }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell-item">
|
||||
<div class="cell-item__wrapper">
|
||||
<div class="left">
|
||||
<span>上报地区</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>{{ info.areaName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell-item">
|
||||
<div class="cell-item__wrapper">
|
||||
<div class="left">
|
||||
<span>详细地址</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>{{ info.address }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
appName:"个人信息",
|
||||
data () {
|
||||
return {
|
||||
info: {},
|
||||
pageShow: false
|
||||
}
|
||||
},
|
||||
|
||||
onLoad (query) {
|
||||
this.$loading()
|
||||
this.getInfo(query.id)
|
||||
},
|
||||
|
||||
methods: {
|
||||
getInfo (id) {
|
||||
this.$instance.post(`/app/appepidemicreportmember/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.info = res.data
|
||||
if (res.data.eventStatus > 1) {
|
||||
this.result = res.data.processList[0]
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.pageShow = true
|
||||
})
|
||||
}
|
||||
|
||||
this.$hideLoading()
|
||||
}).catch(() => {
|
||||
this.$hideLoading()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.userinfo {
|
||||
.cell-group {
|
||||
background: #fff;
|
||||
|
||||
.cell-item {
|
||||
padding-left: 32px;
|
||||
|
||||
.cell-item__wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 34px 32px 34px 0;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
|
||||
.left {
|
||||
span {
|
||||
color: #999999;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
max-width: 450px;
|
||||
text-align: right;
|
||||
span {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
.cell-item__wrapper {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 486 B |
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB |
Reference in New Issue
Block a user