This commit is contained in:
liuye
2021-12-24 17:55:57 +08:00
parent 3317e09dd9
commit 73ba48aa95
5 changed files with 14 additions and 6 deletions

View File

@@ -179,7 +179,8 @@ export default {
if (res.code == 0) {
this.$u.toast('提交成功')
setTimeout(() => {
uni.navigateBack({})
uni.navigateBack()
uni.$emit('update')
}, 600)
}
})

View File

@@ -168,6 +168,9 @@ export default {
'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
this.getBuilding()
})
uni.$on('update', () => {
this.getBuilding()
})
},
onShow() {
document.title = "以房找人"

View File

@@ -51,7 +51,7 @@ export default {
size: 10 * 1024 * 1024,
fileList: [],
numInfo: {},
params: {}
params: {},
}
},
computed: { ...mapState(['user']) },

View File

@@ -12,7 +12,7 @@
</AiTopFixed>
<div class="album-list">
<div class="item" v-for="(item, index) in list" :key="index" v-if="item.total" @click="toDetail(item)">
<img :src="item.url" alt="">
<img :src="`${cdn}/dvcp/album/album${item.type}.png`" alt="">
<p class="text">{{item.name}}</p>
<div class="tips">{{item.total}}</div>
</div>
@@ -30,7 +30,8 @@ export default {
return {
list: [],
areaId: '',
areaName: ''
areaName: '',
cdn: ''
}
},
computed: { ...mapState(['user']) },
@@ -41,6 +42,7 @@ export default {
uni.$on('updateList', () => {
this.getList()
})
this.cdn = this.$cdn.replace("/dvcp/h5","");
},
onShow() {
document.title = "乡村相册"
@@ -64,7 +66,7 @@ export default {
})
},
toDetail(item) {
uni.navigateTo({url: `./detail?type=${item.type}&areaId=${this.areaId}&title=${item.name}&titleImgUrl=${item.url}`})
uni.navigateTo({url: `./detail?type=${item.type}&areaId=${this.areaId}&title=${item.name}&titleImgUrl=${this.cdn}/dvcp/album/album${item.type}.png`})
},
},
onReachBottom() {

View File

@@ -75,7 +75,6 @@ export default {
},
watch: {},
onLoad() {
document.title = '居民活动'
this.$dict.load(['villageActivityStatus']).then(() => {
this.getList()
})
@@ -84,6 +83,9 @@ export default {
this.getList()
})
},
onShow() {
document.title = '居民活动'
},
mounted() {},
methods: {
getList() {