This commit is contained in:
yanran200730
2022-08-09 15:33:57 +08:00
parent 0af5cf5cc8
commit 6ddbc2eafa
2 changed files with 10 additions and 24 deletions

View File

@@ -1,11 +1,12 @@
<template> <template>
<div class="DetailCard" v-if="pageShow"> <div class="DetailCard" v-if="pageShow">
<div class="top"> <div class="top">
<image src="./components/img/4.png" /> <image v-if="resident.photo" :src="resident.photo" />
<image v-else src="./components/img/4.png" />
<div class="top-right"> <div class="top-right">
<div class="top-right__top"> <div class="top-right__top">
<div class="left"> <div class="left">
<h2>卓作旺</h2> <h2>{{ resident.name }}</h2>
<i>已注销</i> <i>已注销</i>
</div> </div>
<span>户主</span> <span>户主</span>

View File

@@ -1,11 +1,12 @@
<template> <template>
<div class="DetailPeople" v-if="pageShow"> <div class="DetailPeople" v-if="pageShow">
<div class="top"> <div class="top">
<image src="./components/img/4.png" /> <image v-if="resident.photo" :src="resident.photo" />
<image v-else src="./components/img/4.png" />
<div class="top-right"> <div class="top-right">
<div class="top-right__top"> <div class="top-right__top">
<div class="left"> <div class="left">
<h2>卓作旺</h2> <h2>{{ resident.name }}</h2>
<i>已注销</i> <i>已注销</i>
</div> </div>
<span>户主</span> <span>户主</span>
@@ -21,24 +22,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <div class="top">
<div class="photos">
<img :src="data.resident.photo" alt="" v-if="data.resident && data.resident.photo" />
<img src="./components/img/44.png" alt="" v-else />
</div>
<div class="right">
<div class="rightTop">
<span class="names">{{ data.resident && data.resident.name }}<span class="fileStatuss" v-if="data.resident.fileStatus == 1">已注销</span></span>
<span class="householdNames" v-if="data.resident && data.resident.householdName == 1">户主</span>
<span class="householdNames" v-else>
{{ $dict.getLabel('householdRelation', data.resident && data.resident.householdRelation) }}
</span>
</div>
<div class="rightBottom" v-if="data.resident && data.resident.phone">{{ data.resident.phone }}</div>
</div>
</div> -->
<div class="line"></div> <div class="line"></div>
<div class="middle"> <div class="middle">
<div class="hint">个人基本信息</div> <div class="hint">个人基本信息</div>
@@ -120,22 +103,24 @@
return { return {
id: '', id: '',
data: [], data: [],
resident: {},
pageShow: false pageShow: false
} }
}, },
onLoad(o) { onLoad (o) {
this.id = o.id this.id = o.id
this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => { this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => {
this.$loading()
this.getDetail() this.getDetail()
}) })
}, },
methods: { methods: {
getDetail() { getDetail() {
this.$loading()
this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => { this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.resident = res.data.resident
this.data = res.data this.data = res.data
this.pageShow = true this.pageShow = true
} }