This commit is contained in:
花有清香月有阴
2022-01-14 14:54:04 +08:00
parent 6d56043aa3
commit a386ffec68
3 changed files with 22 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
</div>
</AiTopFixed>
<template>
<template >
<AiCard v-for="(item, i) in datas" :key="i" @click.native="goDetail(item, 1)">
<template #custom>
<div class="card-top">
@@ -101,7 +101,7 @@ export default {
this.current = 1
this.getList()
})
},
created() {
this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory').then(() => {

View File

@@ -78,8 +78,10 @@ export default {
this.$http.post(`/app/appresident/detail?id=${this.id}`).then((res) => {
if (res.code == 0) {
this.data = res.data
this.$forceUpdate()
this.$nextTick(() => {
this.resident = res.data.resident
this.$forceUpdate()
})
}
})

View File

@@ -12,6 +12,8 @@
</u-form>
</div>
<div class="liness"></div>
<template v-if="datas.length > 0">
<AiCard v-for="(item, i) in datas" :ref="item.id" :key="i" @click.native="toAdd(item, 1)">
<template #custom>
@@ -37,7 +39,7 @@
<u-loadmore :status="loadmore" color="#999" font-size="24" margin-top="32" margin-bottom="80" />
</template>
<AiEmpty description="暂无数据" v-else></AiEmpty>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
<AiFixedBtn>
<div class="addBtn iconfont iconfont-iconfangda" @tap.stop="toAdd()" />
@@ -214,8 +216,10 @@ export default {
</script>
<style scoped lang="scss">
uni-page-body {
height: 100%;
}
.AppVillageDiscuss {
padding-bottom: 10px;
background: #f2f2f2;
::v-deep .AiCard {
@@ -231,7 +235,6 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
.u-form {
width: 100%;
@@ -264,6 +267,11 @@ export default {
}
}
.liness {
height: 16px;
background: #f5f5f5;
}
.avatar {
height: 64px;
width: 64px;
@@ -301,6 +309,13 @@ export default {
}
}
.emptyWrap {
background: #f5f5f5 !important;
margin: 0;
padding: 0;
box-sizing: border-box;
}
::v-deep.AiTopFixed {
.content {
padding: 0;