Files

253 lines
6.6 KiB
Vue
Raw Permalink Normal View History

2022-02-07 09:54:39 +08:00
<template>
2022-08-08 09:51:48 +08:00
<div class="DetailPeople" v-if="pageShow">
2022-02-07 09:54:39 +08:00
<div class="top">
2022-08-09 15:33:57 +08:00
<image v-if="resident.photo" :src="resident.photo" />
<image v-else src="./components/img/4.png" />
2022-08-09 10:59:46 +08:00
<div class="top-right">
<div class="top-right__top">
<div class="left">
2022-08-09 15:33:57 +08:00
<h2>{{ resident.name }}</h2>
2022-08-16 13:47:45 +08:00
<i v-if="resident.fileStatus === '1'">已注销</i>
2022-08-09 10:59:46 +08:00
</div>
2022-08-16 13:47:45 +08:00
<span v-if="resident.householdName === '1'">户主</span>
2022-08-09 10:59:46 +08:00
</div>
2022-08-16 13:47:45 +08:00
<div class="top-right__bottom" v-if="resident.residentLabelList">
<span v-for="(item, index) in resident.residentLabelList" :key="index">{{ item.labelName }}</span>
2022-08-09 10:59:46 +08:00
</div>
</div>
</div>
2022-02-07 09:54:39 +08:00
<div class="line"></div>
2022-03-11 09:05:36 +08:00
<div class="middle">
<div class="hint">个人基本信息</div>
<div class="contents">
<div class="item">
<span>籍贯</span>
2022-08-08 15:50:44 +08:00
<i>{{ data.resident && data.resident.birthplaceAreaName }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>身份证号</span>
2022-08-08 15:50:44 +08:00
<i>{{ data.resident && data.resident.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>民族</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.nation"> {{ $dict.getLabel('nation', data.resident.nation) }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>文化程度</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.education">{{ $dict.getLabel('education', data.resident.education) }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>婚姻状况</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.maritalStatus">{{ $dict.getLabel('maritalStatus', data.resident.maritalStatus) }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>政治面貌</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.politicsStatus">{{ $dict.getLabel('politicsStatus', data.resident.politicsStatus) }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>兵役状况</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.militaryStatus">{{ $dict.getLabel('militaryStatus', data.resident.militaryStatus) }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>宗教信仰</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.faithType">{{ $dict.getLabel('faithType', data.resident.faithType) }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>职业</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.job">{{ $dict.getLabel('job', data.resident.job) }}</i>
2022-02-07 09:54:39 +08:00
</div>
</div>
2022-03-11 09:05:36 +08:00
</div>
<div class="lines"></div>
<div class="bottom">
<div class="hint">联络信息</div>
<div class="contents">
<div class="item">
<span>联系方式</span>
2022-08-08 15:50:44 +08:00
<i class="phones" v-if="data.resident && data.resident.phone" @click="callPhone(data.resident.phone)">{{ data.resident.phone }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>现住址</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.currentAreaName">{{ data.resident.currentAreaName }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>现住详细地址</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.currentAddress">{{ data.resident.currentAddress }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>户籍地址</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.householdAreaName">{{ data.resident.householdAreaName }}</i>
2022-03-11 09:05:36 +08:00
</div>
<div class="item">
<span>户籍详细地址</span>
2022-08-08 15:50:44 +08:00
<i v-if="data.resident && data.resident.householdAddress">{{ data.resident.householdAddress }}</i>
2022-02-07 09:54:39 +08:00
</div>
</div>
</div>
</div>
</template>
<script>
2022-08-08 09:51:48 +08:00
export default {
name: 'DetailPeople',
appName: '家庭成员信息',
data() {
return {
id: '',
data: [],
2022-08-09 15:33:57 +08:00
resident: {},
2022-08-08 09:51:48 +08:00
pageShow: false
}
2022-02-07 09:54:39 +08:00
},
2022-08-08 09:51:48 +08:00
2022-08-09 15:33:57 +08:00
onLoad (o) {
2022-08-08 09:51:48 +08:00
this.id = o.id
this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => {
2022-08-09 15:33:57 +08:00
this.$loading()
2022-08-08 09:51:48 +08:00
this.getDetail()
})
2022-02-07 09:54:39 +08:00
},
2022-08-08 09:51:48 +08:00
methods: {
getDetail() {
this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => {
if (res.code == 0) {
2022-08-09 15:33:57 +08:00
this.resident = res.data.resident
2022-08-08 09:51:48 +08:00
this.data = res.data
this.pageShow = true
}
})
},
callPhone(phone) {
uni.makePhoneCall({ phoneNumber: phone })
}
}
}
2022-02-07 09:54:39 +08:00
</script>
<style scoped lang="scss">
.DetailPeople {
height: 100%;
background: #fff;
.top {
display: flex;
2022-08-09 10:59:46 +08:00
align-items: center;
padding: 48px 32px 32px;
background: #fff;
& > image {
width: 112px;
height: 112px;
margin-right: 24px;
border-radius: 50%;
2022-02-07 09:54:39 +08:00
}
2022-08-09 10:59:46 +08:00
.top-right {
flex: 1;
.top-right__bottom {
2022-02-07 09:54:39 +08:00
display: flex;
2022-08-09 10:59:46 +08:00
align-items: center;
flex-wrap: wrap;
color: #999999;
font-size: 28px;
span {
line-height: 1.4;
margin-right: 16px;
2022-03-17 16:06:49 +08:00
}
2022-08-09 10:59:46 +08:00
}
.top-right__top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
& > span {
color: #5AAD6A;
2022-02-07 09:54:39 +08:00
font-size: 32px;
}
2022-08-09 10:59:46 +08:00
.left {
display: flex;
align-items: center;
h2 {
margin-right: 16px;
color: #333;
font-size: 36px;
font-weight: 700;
}
i {
width: 88px;
height: 40px;
line-height: 40px;
text-align: center;
background: #FFECEF;
border-radius: 8px;
color: #FF4466;
font-size: 24px;
font-style: normal;
}
2022-02-07 09:54:39 +08:00
}
}
}
}
.line {
2022-08-18 13:46:53 +08:00
height: 10px;
2022-02-07 09:54:39 +08:00
background: #f5f5f5;
}
.middle,
.bottom {
2022-08-18 13:46:53 +08:00
padding: 0 32px 20px;
2022-02-07 09:54:39 +08:00
.hint {
2022-08-09 10:59:46 +08:00
height: 108px;
line-height: 108px;
font-weight: 700;
font-size: 32px;
color: #333333;
2022-02-07 09:54:39 +08:00
}
.contents {
2022-08-09 10:59:46 +08:00
.item {
display: flex;
line-height: 1.3;
padding: 14px 0;
font-size: 32px;
2022-08-08 14:49:33 +08:00
2022-08-09 10:59:46 +08:00
.phones {
color: #3d94fb;
}
2022-08-08 14:49:33 +08:00
2022-08-09 10:59:46 +08:00
span {
width: 190px;
flex-shrink: 1;
color: #999;
}
2022-08-08 14:49:33 +08:00
2022-08-09 10:59:46 +08:00
i {
flex: 1;
margin-left: 16px;
text-align: right;
color: #333;
font-style: normal;
}
2022-08-08 14:49:33 +08:00
}
2022-02-07 09:54:39 +08:00
}
}
.lines {
height: 4px;
background: #f5f5f5;
}
}
</style>