BUG 29251

This commit is contained in:
aixianling
2022-04-28 11:16:07 +08:00
parent 0160293d16
commit 2c93a9e283

View File

@@ -1,14 +1,16 @@
<template> <template>
<div class="FamilyList"> <div class="FamilyList">
<div class="title"> <div class="title">
<div>户主列表({{list.length || 0}})</div> <div>户主列表({{ total }})</div>
<div v-if="list.length"> <div v-if="list.length">
<span style="font-size: 14px; color: #2979ff;" @click="changeType" v-if="edit">修改</span> <span style="font-size: 14px; color: #2979ff;" @click="changeType" v-if="edit">修改</span>
<span style="font-size: 14px; color: #2979ff;" @click="edit = true" v-else>取消</span> <span style="font-size: 14px; color: #2979ff;" @click="edit = true" v-else>取消</span>
</div> </div>
</div> </div>
<div class="seachObjs"> <div class="seachObjs">
<u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search> <u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false"
bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch"
@clear="handerClear"></u-search>
</div> </div>
<div class="main" v-if="list.length"> <div class="main" v-if="list.length">
<ul v-for="(item,index) in list" :key="index"> <ul v-for="(item,index) in list" :key="index">
@@ -48,6 +50,7 @@ export default {
data() { data() {
return { return {
list: [], list: [],
total: 0,
current: 1, current: 1,
userId: '', userId: '',
edit: true, edit: true,
@@ -68,8 +71,9 @@ export default {
}, },
getList() { getList() {
this.$http.post(`/app/appgirdmemberresident/listByGirdMember?current=${this.current}&girdMemberId=${this.userId}&girdId=${this.girdId}&name=${this.keyword}`).then((res) => { this.$http.post(`/app/appgirdmemberresident/listByGirdMember?current=${this.current}&girdMemberId=${this.userId}&girdId=${this.girdId}&name=${this.keyword}`).then((res) => {
if (res.code == 0) { if (res?.data) {
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
this.total = res.data.total
} }
}) })
}, },
@@ -138,55 +142,68 @@ export default {
font-size: 34px; font-size: 34px;
font-weight: 800; font-weight: 800;
} }
.main { .main {
padding-bottom: 112px; padding-bottom: 112px;
ul { ul {
padding-left: 32px; padding-left: 32px;
background-color: #fff; background-color: #fff;
li { li {
list-style-type: none; list-style-type: none;
.user { .user {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
padding-top: 24px; padding-top: 24px;
.checkbox { .checkbox {
margin-top: 20px; margin-top: 20px;
margin-right: 32px; margin-right: 32px;
width: 48px; width: 48px;
height: 48px; height: 48px;
} }
.info { .info {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
width: 100%; width: 100%;
.userImg { .userImg {
margin-right: 32px; margin-right: 32px;
width: 80px; width: 80px;
height: 80px; height: 80px;
border-radius: 50%; border-radius: 50%;
} }
.userInfo { .userInfo {
width: 100%; width: 100%;
padding-right: 32px; padding-right: 32px;
border-bottom: 1px solid #E4E5E6; border-bottom: 1px solid #E4E5E6;
.name { .name {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 32px; font-size: 32px;
margin-bottom: 8px; margin-bottom: 8px;
.user-name { .user-name {
font-weight: 800; font-weight: 800;
} }
.user-tel { .user-tel {
font-size: 26px; font-size: 26px;
color: #999999; color: #999999;
} }
} }
.idCard { .idCard {
margin-bottom: 16px; margin-bottom: 16px;
font-size: 26px; font-size: 26px;
color: #999999; color: #999999;
} }
.address { .address {
max-width: 100%; max-width: 100%;
word-break: break-all; word-break: break-all;
@@ -201,6 +218,7 @@ export default {
} }
} }
} }
.footer { .footer {
position: fixed; position: fixed;
left: 0px; left: 0px;
@@ -213,6 +231,7 @@ export default {
font-size: 36px; font-size: 36px;
color: #FFFFFF; color: #FFFFFF;
} }
.seachObjs { .seachObjs {
border-bottom: 2px solid #f5f5f5; border-bottom: 2px solid #f5f5f5;
border-top: 2px solid #f5f5f5; border-top: 2px solid #f5f5f5;